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;
|
||||
}
|
||||
|
||||
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
|
||||
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
|
||||
rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
|
||||
location = /.well-known/carddav { return 301 https://$host/remote.php/dav; }
|
||||
location = /.well-known/caldav { return 301 https://$host/remote.php/dav; }
|
||||
|
||||
location = /.well-known/carddav {
|
||||
return 301 https://$host/remote.php/dav;
|
||||
}
|
||||
|
||||
location = /.well-known/caldav {
|
||||
return 301 https://$host/remote.php/dav;
|
||||
}
|
||||
# Anything else is dynamically handled by Nextcloud
|
||||
location ^~ /.well-known { return 301 https://$host/index.php$uri; }
|
||||
|
||||
location / {
|
||||
rewrite ^ /index.php;
|
||||
|
Loading…
x
Reference in New Issue
Block a user