diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-13 15:34:09 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-13 20:13:58 +0200 |
commit | c33889e7e53386204dae25b1eed6b36aaf006b21 (patch) | |
tree | d8f37decdb4296d66259fa21b1a176c3d9a03f7b /system/services/etebase/default.nix | |
parent | refactor(modules): Ensure strict coherence to patterns (diff) | |
download | nixos-server-c33889e7e53386204dae25b1eed6b36aaf006b21.tar.gz nixos-server-c33889e7e53386204dae25b1eed6b36aaf006b21.zip |
refactor(modules/etesync): Move to a complete module
Diffstat (limited to '')
-rw-r--r-- | system/services/etebase/default.nix | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/system/services/etebase/default.nix b/system/services/etebase/default.nix deleted file mode 100644 index 5d0284f..0000000 --- a/system/services/etebase/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - config, - ... -}: { - services.etebase-server = { - enable = true; - port = 8001; - settings = { - global.secret_file = "${config.age.secrets.etebase-server.path}"; - allowed_hosts = { - allowed_host1 = "etebase.vhack.eu"; - allowed_host2 = "dav.vhack.eu"; - }; - }; - }; - - services.nginx = { - enable = true; - recommendedTlsSettings = true; - recommendedOptimisation = true; - recommendedGzipSettings = true; - recommendedProxySettings = true; - - virtualHosts = { - "etebase.vhack.eu" = { - enableACME = true; - forceSSL = true; - - locations = { - # TODO: Maybe fix permissions to use pregenerated static files which would - # improve performance. - #"/static" = { - # root = config.services.etebase-server.settings.global.static_root; - #}; - "/" = { - proxyPass = "http://127.0.0.1:${builtins.toString config.services.etebase-server.port}"; - }; - }; - serverAliases = [ - "dav.vhack.eu" - ]; - }; - }; - }; -} |