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