fix config for nginx

This commit is contained in:
Glenn Y. Rolland 2024-05-05 19:05:33 +02:00
parent 9996951e64
commit 8ed5bd4eb5

View file

@ -1,2 +1,15 @@
rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ permanent; location = /robots.txt {
rewrite ^/\.well-known/caldav https://$server_name/remote.php/dav/ permanent; allow all;
log_not_found off;
access_log off;
}
location = /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
location = /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}
location /.well-known/acme-challenge { }