fix option name for location config
This commit is contained in:
parent
c58f1ff9af
commit
1d7f21f2bf
1 changed files with 6 additions and 6 deletions
|
|
@ -154,12 +154,12 @@ in
|
|||
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";
|
||||
};
|
||||
extraConfig = ''
|
||||
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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue