Files
ludikevent_crm/ansible/templates/caddy.j2

34 lines
913 B
Django/Jinja

intranet.ludikevent.fr, signature.ludikevent.fr, reservation.ludikevent.fr {
tls {
dns cloudflare KL6pZ-Z_12_zbnM2TtFDIsKM8A-HLPhU5GJJbKTW
}
root * {{ path }}/public
file_server
request_body {
max_size 100MB
}
# --- NO-INDEX MATCHER ---
@noindex_hosts host intranet.ludikevent.fr signature.ludikevent.fr
header @noindex_hosts X-Robots-Tag "noindex, nofollow"
# SUPPRIME le noindex sur la réservation (au cas où PHP ou un autre bloc l'ajouterait)
@index_host host reservation.ludikevent.fr
header @index_host -X-Robots-Tag
# --- BLOC HEADER AVEC CSP ---
header {
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
Referrer-Policy "strict-origin-when-cross-origin"
}
php_fastcgi unix//run/php/php8.3-fpm.sock {
read_timeout 300s
write_timeout 300s
dial_timeout 100s
}
}