2026-01-29 17:32:03 +01:00
|
|
|
etl.ludikevent.fr, intranet.ludikevent.fr, signature.ludikevent.fr, reservation.ludikevent.fr {
|
2026-01-15 18:04:01 +01:00
|
|
|
tls {
|
|
|
|
|
dns cloudflare KL6pZ-Z_12_zbnM2TtFDIsKM8A-HLPhU5GJJbKTW
|
|
|
|
|
}
|
2026-01-28 13:19:50 +01:00
|
|
|
|
2026-01-15 18:51:17 +01:00
|
|
|
root * {{ path }}/public
|
2026-01-15 18:04:01 +01:00
|
|
|
file_server
|
2026-01-15 18:51:17 +01:00
|
|
|
|
2026-01-28 13:19:50 +01:00
|
|
|
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"
|
2026-01-20 07:59:57 +01:00
|
|
|
|
2026-01-28 13:19:50 +01:00
|
|
|
@index_host host reservation.ludikevent.fr
|
|
|
|
|
header @index_host -X-Robots-Tag
|
2026-01-20 07:50:56 +01:00
|
|
|
|
2026-01-28 13:19:50 +01:00
|
|
|
handle_path /utm_reserve.js {
|
|
|
|
|
redir https://tools-security.esy-web.dev/script.js
|
2026-01-15 18:04:01 +01:00
|
|
|
}
|
2026-01-28 13:19:50 +01:00
|
|
|
handle_path /ts.js {
|
|
|
|
|
redir https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js
|
|
|
|
|
}
|
|
|
|
|
# --- BLOC HEADER AVEC CSP ---
|
|
|
|
|
header {
|
|
|
|
|
X-Content-Type-Options "nosniff"
|
|
|
|
|
X-Frame-Options "DENY"
|
|
|
|
|
Referrer-Policy "strict-origin-when-cross-origin"
|
2026-01-28 13:06:01 +01:00
|
|
|
|
2026-01-28 13:19:50 +01:00
|
|
|
# Injection des headers Cloudflare pour PHP
|
|
|
|
|
# Cela permet à PHP de les lire via $_SERVER['HTTP_CF_CONNECTING_IP'] etc.
|
|
|
|
|
CF-Connecting-IP {header.CF-Connecting-IP}
|
|
|
|
|
CF-IPCountry {header.CF-IPCountry}
|
|
|
|
|
CF-RegionCode {header.CF-RegionCode}
|
|
|
|
|
CF-IPCity {header.CF-IPCity}
|
|
|
|
|
X-Real-IP {remote_host}
|
|
|
|
|
}
|
|
|
|
|
handle_path /assets/* {
|
|
|
|
|
rewrite * /build{path}
|
|
|
|
|
}
|
|
|
|
|
# --- PHP FASTCGI ---
|
|
|
|
|
# Ici, Caddy transmet automatiquement tous les headers définis ci-dessus au socket PHP
|
|
|
|
|
php_fastcgi unix//run/php/php8.4-fpm.sock {
|
|
|
|
|
read_timeout 300s
|
|
|
|
|
write_timeout 300s
|
|
|
|
|
dial_timeout 100s
|
2026-01-28 13:06:01 +01:00
|
|
|
|
2026-01-28 13:19:50 +01:00
|
|
|
# Optionnel : Forcer explicitement certains paramètres FastCGI si nécessaire
|
|
|
|
|
env REMOTE_ADDR {header.CF-Connecting-IP}
|
2026-01-15 18:04:01 +01:00
|
|
|
}
|
|
|
|
|
}
|