Files
ludikevent_crm/ansible/templates/caddy.j2

40 lines
1.0 KiB
Django/Jinja

intranet.ludikevent.fr, signature.ludikevent.fr, reservation.ludikevent.fr {
tls {
dns cloudflare KL6pZ-Z_12_zbnM2TtFDIsKM8A-HLPhU5GJJbKTW
}
root * {{ path }}/public
file_server
# --- REWRITE INVISIBLE POUR LE SITE VISITEUR ---
@visitor_home {
host reservation.ludikevent.fr
path /
}
rewrite @visitor_home /reservation
# --- NO-INDEX ---
@noindex_hosts host intranet.ludikevent.fr signature.ludikevent.fr
header @noindex_hosts X-Robots-Tag "noindex, nofollow"
@index_host host reservation.ludikevent.fr
header @index_host -X-Robots-Tag
# --- HEADERS & PHP ---
header {
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
Referrer-Policy "strict-origin-when-cross-origin"
CF-Connecting-IP {header.CF-Connecting-IP}
X-Real-IP {remote_host}
}
handle_path /assets/* {
rewrite * /build{path}
}
php_fastcgi unix//run/php/php8.4-fpm.sock {
env REMOTE_ADDR {header.CF-Connecting-IP}
}
}