mirror of
https://github.com/nextcloud/documentation.git
synced 2026-04-04 14:59:00 +07:00
Clean up Caddy proxy example
It's incorrect to use `reverse_proxy` for the dav paths because Caddy does not support paths in proxy addresses. Using a rewrite is the correct solution. Was also pointed out here: https://github.com/nextcloud/documentation/pull/5894#issuecomment-772874944
This commit is contained in:
committed by
backportbot[bot]
parent
6db5807b39
commit
bcfa51187c
@@ -128,11 +128,10 @@ 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}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user