From 9867cd0938498c65d8868462bb37f860256d3278 Mon Sep 17 00:00:00 2001 From: hoellen Date: Sat, 4 Dec 2021 10:20:57 +0100 Subject: [PATCH] Remove nc_port --- rootfs/etc/nginx/conf.d/default.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/etc/nginx/conf.d/default.conf b/rootfs/etc/nginx/conf.d/default.conf index b220bc2..bac0953 100644 --- a/rootfs/etc/nginx/conf.d/default.conf +++ b/rootfs/etc/nginx/conf.d/default.conf @@ -31,9 +31,9 @@ server { } location /.well-known { - location = /.well-known/carddav { return 301 $nc_proto://$host:$nc_port/remote.php/dav; } - location = /.well-known/caldav { return 301 $nc_proto://$host:$nc_port/remote.php/dav; } - location ^~ /.well-known { return 301 $nc_proto://$host:$nc_port/index.php$uri; } + location = /.well-known/carddav { return 301 $nc_proto://$host/remote.php/dav; } + location = /.well-known/caldav { return 301 $nc_proto://$host/remote.php/dav; } + location ^~ /.well-known { return 301 $nc_proto://$host/index.php$uri; } try_files $uri $uri/ =404; }