Skip to content

Commit

Permalink
caddy: fix rewriting .well-known to remote.php
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Jun 6, 2024
1 parent f6d59d4 commit 9d802f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Containers/apache/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ https://{$ADDITIONAL_TRUSTED_DOMAIN}:443,

# Nextcloud
route {
rewrite /.well-known/carddav /remote.php/dav/
rewrite /.well-known/caldav /remote.php/dav/
header Strict-Transport-Security max-age=31536000;
reverse_proxy 127.0.0.1:8000
}
redir /.well-known/carddav /remote.php/dav/ 301
redir /.well-known/caldav /remote.php/dav/ 301

# TLS options
tls {
Expand Down

0 comments on commit 9d802f0

Please sign in to comment.