feat(caddyfile): add spationautes and veloboomboom support
All checks were successful
jenkins-ci Build successful
All checks were successful
jenkins-ci Build successful
This commit is contained in:
78
Caddyfile
78
Caddyfile
@@ -323,3 +323,81 @@ onlyoffice.lucasroyer.fr {
|
||||
header_up X-Real-IP {remote_host}
|
||||
}
|
||||
}
|
||||
|
||||
spationautes.fr {
|
||||
# Server cache
|
||||
cache {
|
||||
ttl 24h
|
||||
stale 12h
|
||||
}
|
||||
# Security
|
||||
header {
|
||||
X-Frame-Options "DENY"
|
||||
X-XSS-Protection "1; mode=block"
|
||||
X-Content-Type-Options "nosniff"
|
||||
Referrer-Policy "strict-origin-when-cross-origin"
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||
}
|
||||
|
||||
# Errors
|
||||
handle_errors {
|
||||
# If error is 502, 503 or 504, show error.html without changing client URL
|
||||
@service_out expression {err.status_code} >= 502 && {err.status_code} <= 504
|
||||
|
||||
handle @service_out {
|
||||
root * /srv
|
||||
rewrite * /error.html
|
||||
file_server
|
||||
}
|
||||
}
|
||||
|
||||
# Compression
|
||||
encode zstd gzip
|
||||
|
||||
# Log
|
||||
log {
|
||||
output file /data/site-spationautes_access.log
|
||||
}
|
||||
|
||||
# Redirect
|
||||
reverse_proxy site-spationautes:80
|
||||
}
|
||||
|
||||
veloboomboom.internantes.ovh, veloboomboom.lucasroyer.fr {
|
||||
# Server cache
|
||||
cache {
|
||||
ttl 24h
|
||||
stale 12h
|
||||
}
|
||||
# Security
|
||||
header {
|
||||
X-Frame-Options "DENY"
|
||||
X-XSS-Protection "1; mode=block"
|
||||
X-Content-Type-Options "nosniff"
|
||||
Referrer-Policy "strict-origin-when-cross-origin"
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||
}
|
||||
|
||||
# Errors
|
||||
handle_errors {
|
||||
# If error is 502, 503 or 504, show error.html without changing client URL
|
||||
@service_out expression {err.status_code} >= 502 && {err.status_code} <= 504
|
||||
|
||||
handle @service_out {
|
||||
root * /srv
|
||||
rewrite * /error.html
|
||||
file_server
|
||||
}
|
||||
}
|
||||
|
||||
# Compression
|
||||
encode zstd gzip
|
||||
|
||||
# Log
|
||||
log {
|
||||
output file /data/site-veloboomboom_access.log
|
||||
}
|
||||
|
||||
# Redirect
|
||||
reverse_proxy site-veloboomboom:80
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user