Merge pull request #6242 from nextcloud/backport/6197/stable21

[stable21] Clean up Caddy proxy example
This commit is contained in:
Morris Jobke 2021-03-16 19:43:47 +01:00 committed by GitHub
commit 49f7fd66a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,16 +123,15 @@ or
rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ redirect;
rewrite ^/\.well-known/caldav https://$server_name/remote.php/dav/ redirect;
CADDY
Caddy
^^^^^
::
subdomain.example.com {
reverse_proxy /.well-known/carddav {$NEXTCLOUD_HOST:localhost}/remote.php/dav
rewrite /.well-known/carddav /remote.php/dav
rewrite /.well-known/caldav /remote.php/dav
reverse_proxy /.well-known/caldav {$NEXTCLOUD_HOST:localhost}/remote.php/dav
reverse_proxy * {$NEXTCLOUD_HOST:localhost}
reverse_proxy {$NEXTCLOUD_HOST:localhost}
}