diff options
author | sils <sils@sils.li> | 2023-07-26 10:51:15 +0200 |
---|---|---|
committer | sils <sils@noreply.codeberg.org> | 2023-07-26 16:44:50 +0000 |
commit | 8c8eec2a76f373ddc461209a9a2134446c0a367e (patch) | |
tree | 5b1e3ddc058888bdf5df1e57a3e86c2b28136c61 /system | |
parent | Fix(system/services/etebase): Proxy ipv4 (diff) | |
download | nixos-server-8c8eec2a76f373ddc461209a9a2134446c0a367e.tar.gz nixos-server-8c8eec2a76f373ddc461209a9a2134446c0a367e.zip |
Fix(system/services/etebase): Add proxy parameters
Diffstat (limited to 'system')
-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; + ''; + }; }; }; }; |