0
0
Fork 0
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:
markus 2021-02-25 16:00:58 +01:00 committed by GitHub
parent 59391c541b
commit fe2082f203
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,12 +77,21 @@ http {
# Uncomment it if you're planning to use this app. # Uncomment it if you're planning to use this app.
#rewrite ^/.well-known/webfinger /public.php?service=webfinger last; #rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
location = /.well-known/carddav { location ^~ /.well-known {
return 301 $scheme://$host/remote.php/dav; # The following 6 rules are borrowed from `.htaccess`
}
location = /.well-known/caldav { location = /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav; 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 # set max upload size