From d93277c9336cdacfe9b1b86cbdcfc6069175484f Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 4 Aug 2020 15:13:03 +0300 Subject: [PATCH] Move nextcloud to separate file --- modules/services.nix | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/modules/services.nix b/modules/services.nix index 7a85cdf..1ed4907 100644 --- a/modules/services.nix +++ b/modules/services.nix @@ -50,22 +50,6 @@ }; networking.firewall.trustedInterfaces = [ "eth0" ]; - services.nextcloud = { - enable = config.device == "AMD-Workstation"; - nginx.enable = true; - hostName = "nextcloud.balsoft.ru"; - config.adminpassFile = "/home/balsoft/nextcloud-admin"; - package = pkgs.nextcloud19; - https = true; - }; - services.nginx.enable = config.device == "AMD-Workstation"; - services.nginx.virtualHosts."nextcloud.balsoft.ru" = { - enableACME = true; - forceSSL = true; - locations."/".proxyWebsockets = true; - locations."~ ^\\/(?:build|tests|config|lib|3rdparty|templates|data)\\/".proxyWebsockets = true; - locations."~ ^\\/(?:index|remote|public|cron|core/ajax\\/update|status|ocs\\/v[12]|updater\\/.+|ocs-provider\\/.+|ocm-provider\\/.+)\\.php(?:$|\\/)".proxyWebsockets = true; - }; }