Sfoglia il codice sorgente

Merge pull request #664 from panos/master

caddy2: removed unknown tls directive
pull/666/head
Slavi Pantaleev 5 anni fa
committed by GitHub
parent
commit
14c23c52bb
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 2 aggiunte e 11 eliminazioni
  1. +2
    -11
      examples/caddy2/Caddyfile

+ 2
- 11
examples/caddy2/Caddyfile Vedi File

@@ -1,7 +1,4 @@
matrix.DOMAIN.tld { matrix.DOMAIN.tld {

tls {$CADDY_TLS}

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


dimension.DOMAIN.tld { dimension.DOMAIN.tld {

tls {$CADDY_TLS}

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


element.DOMAIN.tld { element.DOMAIN.tld {

tls {$CADDY_TLS}

header { header {
# Enable HTTP Strict Transport Security (HSTS) to force clients to always connect via HTTPS # Enable HTTP Strict Transport Security (HSTS) to force clients to always connect via HTTPS
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" 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-TlsCipher {tls_cipher}
header_up X-Forwarded-HttpsProto {proto} header_up X-Forwarded-HttpsProto {proto}
} }
}
}

Caricamento…
Annulla
Salva