adjust nginx headers for forgejo subdomain
This commit is contained in:
parent
247f411d01
commit
c58f1ff9af
1 changed files with 9 additions and 0 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue