mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-19 20:09:16 +00:00
Update nginx config for Nextcloud
This commit is contained in:
parent
f93d2f86df
commit
e84793be28
@ -21,17 +21,11 @@ server {
|
|||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
|
location = /.well-known/carddav { return 301 https://$host/remote.php/dav; }
|
||||||
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
|
location = /.well-known/caldav { return 301 https://$host/remote.php/dav; }
|
||||||
rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
|
|
||||||
|
|
||||||
location = /.well-known/carddav {
|
# Anything else is dynamically handled by Nextcloud
|
||||||
return 301 https://$host/remote.php/dav;
|
location ^~ /.well-known { return 301 https://$host/index.php$uri; }
|
||||||
}
|
|
||||||
|
|
||||||
location = /.well-known/caldav {
|
|
||||||
return 301 https://$host/remote.php/dav;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
rewrite ^ /index.php;
|
rewrite ^ /index.php;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user