fix option name for location config

This commit is contained in:
Yisroel Baum 2026-04-08 23:44:31 +03:00
parent c58f1ff9af
commit 1d7f21f2bf
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -154,12 +154,12 @@ in
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://localhost:3000"; proxyPass = "http://localhost:3000";
proxySetHeader = { extraConfig = ''
Host = "$host"; proxy_set_header Host $host;
X-Real-IP = "$remote_addr"; proxy_set_header X-Real-IP $remote_addr;
X-Forwarded-For = "$proxy_add_x_forwarded_for"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
X-Forwarded-Proto = "https"; proxy_set_header X-Forwarded-Proto $scheme;
}; '';
}; };
}; };
}; };