From 8103e7b0f48d3060062736a12d6940402c7bf34e Mon Sep 17 00:00:00 2001 From: Jimbo Date: Fri, 23 Aug 2024 01:05:44 -0400 Subject: [PATCH] Fix nextcloud --- configuration.nix | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/configuration.nix b/configuration.nix index ebf644a..901e41e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -148,22 +148,22 @@ in recommendedProxySettings = true; # Homepage HTML - virtualHosts = { - "${secrets.cornDomain}" = { + virtualHosts = { + "${secrets.cornDomain}" = { enableACME = true; addSSL = true; root = "/var/www/cornweb"; }; # non-free websites - "nonfree.${secrets.cornDomain}" = { + "nonfree.${secrets.cornDomain}" = { enableACME = true; forceSSL = true; root = "/var/www/non-free"; }; # websdr server - "websdr.${secrets.cornDomain}" = { + "websdr.${secrets.cornDomain}" = { enableACME = true; forceSSL = true; locations."/" = { @@ -172,20 +172,21 @@ in }; # Nextcloud Proxy - "cloud.${cornDomain}" = { + "cloud.${cornDomain}" = { enableACME = true; addSSL = true; locations."/" = { proxyWebsockets = true; - extraConfig = " - location /.well-known/carddav { + extraConfig = '' + location /.well-known/carddav { return 301 $scheme://$host/remote.php/dav; } location /.well-known/caldav { return 301 $scheme://$host/remote.php/dav; - }; - }; - }; + ''; + }; + }; + }; appendConfig = '' rtmp { server { @@ -214,9 +215,9 @@ in adminpassFile = "/nextcloud/password.txt"; }; settings = { - trusted_proxies = [ "127.0.0.1" ]; - trusted_domains = [ "cloud.${cornDomain}" ]; - overwriteprotocol = "https"; + trusted_proxies = [ "127.0.0.1" ]; + trusted_domains = [ "cloud.${cornDomain}" ]; + overwriteprotocol = "https"; }; # Get certificates for Coturn