Skip to content

Commit

Permalink
Merge pull request #664 from panos/master
Browse files Browse the repository at this point in the history
caddy2: removed unknown tls directive
spantaleev authored Oct 5, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 00f224b + 8370ee0 commit 14c23c5
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions examples/caddy2/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
matrix.DOMAIN.tld {

tls {$CADDY_TLS}

@identity {
path /_matrix/identity/*
}
@@ -97,10 +94,7 @@ matrix.DOMAIN.tld:8448 {
}

dimension.DOMAIN.tld {

tls {$CADDY_TLS}

header {
header {
# Enable HTTP Strict Transport Security (HSTS) to force clients to always connect via HTTPS
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
# Enable cross-site filter (XSS) and tell browser to block detected attacks
@@ -127,9 +121,6 @@ dimension.DOMAIN.tld {
}

element.DOMAIN.tld {

tls {$CADDY_TLS}

header {
# Enable HTTP Strict Transport Security (HSTS) to force clients to always connect via HTTPS
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
@@ -153,4 +144,4 @@ element.DOMAIN.tld {
header_up X-Forwarded-TlsCipher {tls_cipher}
header_up X-Forwarded-HttpsProto {proto}
}
}
}

0 comments on commit 14c23c5

Please sign in to comment.