CMS:Nextcloud fixes related to #15

This commit is contained in:
2021-04-14 14:54:05 +02:00
parent f27c55336e
commit dabb32845d
2 changed files with 32 additions and 6 deletions

View File

@@ -28,13 +28,14 @@ location = /robots.txt {
access_log off;
}
location = /.well-known/carddav {
return 301 $scheme://$host:$server_port/remote.php/dav;
}
location = /.well-known/caldav {
return 301 $scheme://$host:$server_port/remote.php/dav;
location ^~ /.well-known {
location = /.well-known/carddav { return 301 /remote.php/dav/; }
location = /.well-known/caldav { return 301 /remote.php/dav/; }
location ^~ /.well-known { return 301 /index.php$uri; }
try_files $uri $uri/ =404;
}
location / {
rewrite ^ /index.php;
}
@@ -80,4 +81,14 @@ location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$ {
try_files $uri /index.php$request_uri;
access_log off;
}
## Reverse proxy Config for 'Files High Performance Back-end'
#FHPBlocation ^~ /push/ {
#FHPB proxy_http_version 1.1;
#FHPB proxy_set_header Upgrade $http_upgrade;
#FHPB proxy_set_header Connection "Upgrade";
#FHPB proxy_set_header Host $host;
#FHPB proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#FHPB}
#endConf