From ff350c8c7a1aef639d0e9b5878a8b7bbe61ca9dc Mon Sep 17 00:00:00 2001 From: hoellen Date: Sun, 3 Jan 2021 14:02:27 +0100 Subject: [PATCH] Revert .well-known redirects This reverts commit 3a26ffb087f7d4a91afa18158b8031714f208bf0. --- nextcloud/rootfs/nginx/sites-enabled/nginx.conf | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/nextcloud/rootfs/nginx/sites-enabled/nginx.conf b/nextcloud/rootfs/nginx/sites-enabled/nginx.conf index ddc4470..4a6bdf7 100644 --- a/nextcloud/rootfs/nginx/sites-enabled/nginx.conf +++ b/nextcloud/rootfs/nginx/sites-enabled/nginx.conf @@ -1,13 +1,3 @@ -map $http_x_forwarded_port $nc_port { - default "$http_x_forwarded_port"; - '' "$server_port"; -} - -map $http_x_forwarded_proto $nc_proto { - default "$http_x_forwarded_proto"; - '' "$scheme"; -} - server { listen 8888; root /nextcloud; @@ -36,11 +26,11 @@ server { rewrite ^/.well-known/webfinger /public.php?service=webfinger last; location = /.well-known/carddav { - return 301 $nc_proto://$host:$nc_port/remote.php/dav; + return 301 https://$host/remote.php/dav; } location = /.well-known/caldav { - return 301 $nc_proto://$host:$nc_port/remote.php/dav; + return 301 https://$host/remote.php/dav; } location / {