From dd64ea856b13601eecea9116b178749002d00b95 Mon Sep 17 00:00:00 2001 From: sils Date: Wed, 26 Jul 2023 10:51:15 +0200 Subject: Fix(system/services/etebase): Add proxy parameters --- system/services/etebase/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'system') 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; + ''; + }; }; }; }; -- cgit 1.4.1