From 9efa4091e9e977a53ee9d9b1017dfc8c72b84643 Mon Sep 17 00:00:00 2001 From: sils Date: Wed, 26 Jul 2023 10:20:49 +0200 Subject: Fix(system/services/etebase-server): Use nginx --- system/services/etebase/default.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'system/services/etebase') 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"; + }; + }; + }; + + } -- cgit 1.4.1