reverse proxy to gitea

This commit is contained in:
2026-02-16 13:21:11 +00:00
parent d7393e1419
commit 11ad0b5a83
2 changed files with 14 additions and 0 deletions

View File

@@ -98,6 +98,18 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /gitea {
return 301 /radio/;
}
location /gitea/ {
proxy_pass http://$GITEA_HOST:$GITEA_HTTPS_PORT/;
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;
}
}
}