summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-07-26 10:51:15 +0200
committersils <sils@noreply.codeberg.org>2023-07-26 16:44:50 +0000
commit8c8eec2a76f373ddc461209a9a2134446c0a367e (patch)
tree5b1e3ddc058888bdf5df1e57a3e86c2b28136c61 /system
parentFix(system/services/etebase): Proxy ipv4 (diff)
downloadnixos-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.nix10
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;
+          '';
+        };
       };
     };
   };