mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-21 11:06:09 +02:00
Update nginx.conf
Solving issue: Your web server is not properly set up to resolve "/.well-known/webfinger" Referencing: https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html Tested, warning message disappeared
This commit is contained in:
parent
59391c541b
commit
fe2082f203
1 changed files with 14 additions and 5 deletions
|
@ -77,12 +77,21 @@ http {
|
|||
# Uncomment it if you're planning to use this app.
|
||||
#rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
|
||||
|
||||
location = /.well-known/carddav {
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
}
|
||||
location ^~ /.well-known {
|
||||
# The following 6 rules are borrowed from `.htaccess`
|
||||
|
||||
location = /.well-known/caldav {
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
location = /.well-known/carddav {
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
}
|
||||
location = /.well-known/caldav {
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
}
|
||||
# Anything else is dynamically handled by Nextcloud
|
||||
location ^~ /.well-known {
|
||||
return 301 $scheme://$host/index.php$uri;
|
||||
}
|
||||
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# set max upload size
|
||||
|
|
Loading…
Add table
Reference in a new issue