This commit is contained in:
Stefan Wieczorek
2022-04-19 07:58:37 +02:00
parent a70c63db55
commit ece6ff3cee
2 changed files with 92 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
#{"rootDirectory":"","phpVersion":"8.0"}
#{"rootDirectory":"public","phpVersion":"8.0"}
server {
listen 80;
listen [::]:80;
@@ -16,21 +16,16 @@ server {
rewrite ^ https://$host$uri permanent;
}
location ~ /.well-known {
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;
auth_basic off;
allow all;
}
{{settings}}
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 / {
rewrite ^ /index.php;
}
@@ -46,7 +41,7 @@ server {
try_files $uri $uri/ /index.php?$args;
index index.php index.html;
location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) {
location ~ ^\/(?:index|setup-nextcloud|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) {
include fastcgi_params;
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
set $path_info $fastcgi_path_info;