From 6e33f203baeec307d1bd1e7e8d136c9bdacd23d3 Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Sun, 22 Jun 2025 18:30:03 +0200 Subject: [PATCH] feat: samcsamcsamc --- hosts/hitsugibune/nextcloud.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hosts/hitsugibune/nextcloud.nix b/hosts/hitsugibune/nextcloud.nix index 7caa1c3..d6b021a 100644 --- a/hosts/hitsugibune/nextcloud.nix +++ b/hosts/hitsugibune/nextcloud.nix @@ -42,7 +42,7 @@ recommendedProxySettings = true; recommendedTlsSettings = true; virtualHosts.${config.services.nextcloud.hostName} = { - forceSSL = false; + forceSSL = true; enableACME = true; listen = [ { @@ -71,16 +71,15 @@ ''; }; "^~ /.well-known" = { - priority = lib.mkForce 9000; extraConfig = '' absolute_redirect off; - location ~ ^/\\.well-known/(?:carddav|caldav)$ { + location ~ ^/\.well-known/(?:carddav|caldav)$ { return 301 /nextcloud/remote.php/dav; } - location ~ ^/\\.well-known/host-meta(?:\\.json)?$ { + location ~ ^/\.well-known/host-meta(?:\.json)?$ { return 301 /nextcloud/public.php?service=host-meta-json; } - location ~ ^/\\.well-known/(?!acme-challenge|pki-validation) { + location ~ ^/\.well-known/(?!acme-challenge|pki-validation) { return 301 /nextcloud/index.php$request_uri; } try_files $uri $uri/ =404;