diff options
author | sils <sils@sils.li> | 2023-07-26 10:51:15 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-11-18 19:32:47 +0100 |
commit | dd64ea856b13601eecea9116b178749002d00b95 (patch) | |
tree | b4ba968cf503454a120d744016d1a8f9b75080ee /system/services | |
parent | Fix(system/services/etebase): Proxy ipv4 (diff) | |
download | nixos-server-dd64ea856b13601eecea9116b178749002d00b95.tar.gz nixos-server-dd64ea856b13601eecea9116b178749002d00b95.zip |
Fix(system/services/etebase): Add proxy parameters
Diffstat (limited to '')
-rw-r--r-- | system/services/etebase/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/system/services/etebase/default.nix b/system/services/etebase/default.nix index 1b1a2f2..58d8b4b 100644 --- a/system/services/etebase/default.nix +++ b/system/services/etebase/default.nix @@ -18,7 +18,15 @@ "dav.vhack.eu" = { enableACME = true; forceSSL = true; - locations."/".proxyPass = "http://127.0.0.1:8001"; + locations."/" = { + proxyPass = "http://127.0.0.1:8001"; + 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-Host $server_name; + ''; + }; }; }; }; |