Fix Gitea ROOT_URL for subdomain git.a-crm.controlsystem.kz

This commit is contained in:
2026-04-21 01:57:48 +05:00
parent aec030cb61
commit e75b074d0d
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -57,12 +57,14 @@ http {
# Gitea proxy
location /git/ {
set $gitea_backend gitea:3000;
proxy_pass http://$gitea_backend;
proxy_pass http://$gitea_backend/;
proxy_http_version 1.1;
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;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Prefix /git;
}
# Default - static files