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:
Mohammed Al Sahaf 2026-03-21 04:58:03 +03:00 committed by Mohammed Al Sahaf
parent 610062e52f
commit f0763df128
No known key found for this signature in database

View File

@ -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"