summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2021-09-08 16:55:27 +0200
committerstuebinm2021-09-08 16:55:27 +0200
commit2766f272fc80f5613a161b9bf6c64aa7d3eb961b (patch)
tree81a031903eaaf403b9c858a680c98b3f2350f2c3
parent93647242416a66b929ef172c05d60cb2b0073749 (diff)
fix exneuland proxying
-rw-r--r--hosts/chaski/services/exneuland.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/hosts/chaski/services/exneuland.nix b/hosts/chaski/services/exneuland.nix
index a0c765a..3ec3451 100644
--- a/hosts/chaski/services/exneuland.nix
+++ b/hosts/chaski/services/exneuland.nix
@@ -20,7 +20,7 @@ in
{
services.nginx = {
enable = true;
- recommendedProxySettings = true;
+ recommendedProxySettings = false;
virtualHosts."exneuland.stuebinm.eu" = {
root = "${frontdrv}/dist";
locations."/_/".tryFiles = "/index.html =404";
@@ -30,6 +30,14 @@ in
proxyWebsockets = true;
extraConfig = ''
add_header Access-Control-Allow-Origin https://exneuland.stuebinm.eu;
+ proxy_pass_request_headers on;
+ 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;
+ proxy_set_header X-Forwarded-Host $http_host;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection $http_connection;
'';
};