mirror of
https://github.com/rommapp/docs.git
synced 2026-04-20 01:04:29 +08:00
improve Caddy config docs
TLS with Caddy does not require providing the cert and key files. Also, the removal of `Server` header does not add any security nor is it being does for other servers.
This commit is contained in:
parent
610062e52f
commit
f0763df128
@ -13,12 +13,10 @@ http://romm.mysite.com {
|
||||
### Caddy + TLS (HTTPS)
|
||||
|
||||
```caddyfile
|
||||
https://romm.mysite.com {
|
||||
tls mysite.com.crt mysite.com.key # Certificate and key files
|
||||
|
||||
romm.mysite.com {
|
||||
encode zstd gzip
|
||||
|
||||
header * {
|
||||
header {
|
||||
Strict-Transport-Security "max-age=31536000;"
|
||||
X-XSS-Protection "1; mode=block"
|
||||
X-Frame-Options "SAMEORIGIN"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user