feat:增加Gitea代理

This commit is contained in:
2025-10-19 16:54:47 +08:00
parent a94d4f8fac
commit ef0ce9d8cd
2 changed files with 20 additions and 0 deletions

View File

@@ -39,6 +39,14 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /gitea/ {
proxy_pass http://host.docker.internal:8418/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /home-api/ {
proxy_pass http://host.docker.internal:8081/;
}