summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-07-26 10:20:49 +0200
committersils <sils@noreply.codeberg.org>2023-07-26 16:44:50 +0000
commit0bd8e3ded08094cd10782c246c2dbc13bdda6a96 (patch)
tree17f956abd3441305bce1e1df14c2f8d798fddd07
parentFix(system/impermanence): Add etebase-server (diff)
downloadnixos-server-0bd8e3ded08094cd10782c246c2dbc13bdda6a96.tar.gz
nixos-server-0bd8e3ded08094cd10782c246c2dbc13bdda6a96.zip
Fix(system/services/etebase-server): Use nginx
-rw-r--r--system/services/etebase/default.nix19
1 files changed, 18 insertions, 1 deletions
diff --git a/system/services/etebase/default.nix b/system/services/etebase/default.nix
index ee1dce5..a3ee2e3 100644
--- a/system/services/etebase/default.nix
+++ b/system/services/etebase/default.nix
@@ -4,7 +4,24 @@
     port = 8001;
     settings = {
       global.secret_file = "${config.age.secrets.etebase-server.path}";
-      allowed_hosts.allowed_host1 = "0.0.0.0";
+      allowed_hosts.allowed_host1 = "localhost";
     };
   };
+
+  services.nginx = {
+    enable = true;
+    recommendedTlsSettings = true;
+    recommendedOptimisation = true;
+    recommendedGzipSettings = true;
+    recommendedProxySettings = true;
+    virtualHosts = {
+      "dav.vhack.eu" = {
+        enableACME = true;
+        forceSSL = true;
+        locations."/".proxyPass = "http://[::1]:8001";
+      };
+    };
+  };
+
+
 }