Skip to content

Commit

Permalink
Merge pull request #4774 from nextcloud/enh/noid/fix-caddy-rewriting
Browse files Browse the repository at this point in the history
caddy: fix rewriting .well-known to remote.php
  • Loading branch information
szaimen authored Jun 6, 2024
2 parents f6d59d4 + 9d802f0 commit 8e75909
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 8e75909

Please sign in to comment.