Update Service Discovery example for Caddy …

… in  reverse_proxy_configuration.rst

While the rewrite rules should work I guess, they still trigger a warning
on the admin page. Using 301 redirects make the warning go away.

Signed-off-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
This commit is contained in:
rusty-snake
2023-01-07 16:55:07 +00:00
committed by GitHub
parent 2744b73692
commit 590775b412

View File

@@ -142,8 +142,8 @@ Caddy
::
subdomain.example.com {
rewrite /.well-known/carddav /remote.php/dav
rewrite /.well-known/caldav /remote.php/dav
redir /.well-known/carddav /remote.php/dav 301
redir /.well-known/caldav /remote.php/dav 301
reverse_proxy {$NEXTCLOUD_HOST:localhost}
}