mirror of
https://github.com/hoellen/dockerfiles.git
synced 2026-10-15 04:52:20 +00:00
1 parent
ed47c8a632
commit
ff350c8c7a
1 file changed
+2
-12
@@ -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 / {
|
||||
|
||||
Reference in new issue
Block a user