340 current 2025-10-11 23:47:35 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
@@ -104,20 +104,20 @@ in
|
|||||||
'';
|
'';
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:${toString cfg.port}";
|
proxyPass = "http://127.0.0.1:${toString cfg.port}";
|
||||||
extraConfig =
|
extraConfig = ''
|
||||||
"proxy_set_header Host $host;" +
|
proxy_set_header Host $host;
|
||||||
"proxy_set_header X-Real-IP $remote_addr;" +
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
"proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;"
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
;
|
'';
|
||||||
};
|
};
|
||||||
locations."/api" = {
|
locations."/api" = {
|
||||||
proxyPass = "http://127.0.0.1:${toString cfg.port}/api";
|
proxyPass = "http://127.0.0.1:${toString cfg.port}/api";
|
||||||
extraConfig =
|
extraConfig = ''
|
||||||
"proxy_set_header Host $host;" +
|
proxy_set_header Host $host;
|
||||||
"proxy_http_version 1.1;" +
|
proxy_http_version 1.1;
|
||||||
"proxy_set_header Upgrade $http_upgrade;" +
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
"proxy_set_header Connection upgrade;"
|
proxy_set_header Connection upgrade;
|
||||||
;
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user