adjust nginx headers for forgejo subdomain

This commit is contained in:
Yisroel Baum 2026-04-08 23:41:14 +03:00
parent 247f411d01
commit c58f1ff9af
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -148,9 +148,18 @@ in
"git.${domainName}" = {
forceSSL = true;
enableACME = true;
extraConfig = ''
client_max_body_size 512M;
'';
locations = {
"/" = {
proxyPass = "http://localhost:3000";
proxySetHeader = {
Host = "$host";
X-Real-IP = "$remote_addr";
X-Forwarded-For = "$proxy_add_x_forwarded_for";
X-Forwarded-Proto = "https";
};
};
};
};