This commit is contained in:
20
Caddyfile
Normal file
20
Caddyfile
Normal file
@@ -0,0 +1,20 @@
|
||||
:80 {
|
||||
# Set the root directory for the static site
|
||||
root * /usr/share/caddy
|
||||
|
||||
# Enable file server
|
||||
file_server
|
||||
|
||||
# Enable compression (gzip/zstd)
|
||||
encode gzip zstd
|
||||
|
||||
# Security headers (optional but recommended)
|
||||
header {
|
||||
# Enable HSTS
|
||||
Strict-Transport-Security "max-age=31536000;"
|
||||
# Disable MIME sniffing
|
||||
X-Content-Type-Options "nosniff"
|
||||
# XSS protection
|
||||
X-XSS-Protection "1; mode=block"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user