mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-21 22:03:39 -07:00
refactor location blocks
This commit is contained in:
parent
ebc2d55a01
commit
d99cbfd10d
1 changed files with 4 additions and 11 deletions
|
@ -36,18 +36,11 @@ server {
|
|||
|
||||
# The rules in this block are an adaptation of the rules
|
||||
# in the Nextcloud `.htaccess` that concern `/.well-known`.
|
||||
location /.well-known/carddav {
|
||||
location ^/.well-known/(caldav|carddav) {
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
}
|
||||
|
||||
# The rules in this block are an adaptation of the rules
|
||||
# in the Nextcloud `.htaccess` that concern `/.well-known`.
|
||||
location /.well-known/caldav {
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
}
|
||||
|
||||
# Let Nextcloud's API for `/.well-known` URIs handle all other
|
||||
|
||||
# Let Nextcloud's API for `/.well-known` URIs handle these
|
||||
# requests by passing them to the front-end controller.
|
||||
rewrite ^/.well-known/webfinger /index.php$uri redirect;
|
||||
rewrite ^/.well-known/nodeinfo /index.php$uri redirect;
|
||||
rewrite ^/.well-known/(webfinger|nodeinfo) /index.php$uri redirect;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue