41 lines
1.8 KiB
Django/Jinja
41 lines
1.8 KiB
Django/Jinja
intranet.ludikevent.fr, signature.ludikevent.fr {
|
|
tls {
|
|
dns cloudflare KL6pZ-Z_12_zbnM2TtFDIsKM8A-HLPhU5GJJbKTW
|
|
}
|
|
|
|
root * {{ path }}/public
|
|
file_server
|
|
|
|
request_body {
|
|
max_size 100MB
|
|
}
|
|
|
|
header {
|
|
# Empêche l'indexation
|
|
X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"
|
|
|
|
# Content Security Policy (CSP) complète
|
|
# Ajout de Cloudflare Insights pour le monitoring de performance
|
|
Content-Security-Policy "default-src 'self'; \
|
|
script-src 'self' 'unsafe-inline' https://sentry.esy-web.dev https://chat.esy-web.dev https://auth.esy-web.dev https://static.cloudflareinsights.com; \
|
|
connect-src 'self' https://sentry.esy-web.dev https://chat.esy-web.dev https://auth.esy-web.dev https://cloudflareinsights.com; \
|
|
frame-src 'self' https://chat.esy-web.dev https://auth.esy-web.dev; \
|
|
style-src 'self' 'unsafe-inline' https://chat.esy-web.dev; \
|
|
img-src 'self' data: https://chat.esy-web.dev; \
|
|
font-src 'self' data:; \
|
|
frame-ancestors 'none';"
|
|
|
|
# Autres headers de sécurité
|
|
Permissions-Policy "accelerometer=(), autoplay=(), camera=(), clipboard-write=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), usb=(), vr=(), screen-wake-lock=(), xr-spatial-tracking=(), bluetooth=(), ambient-light-sensor=(), battery=(), gamepad=(), notifications=(), push=()"
|
|
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
|
|
env HTTP_PROXY ""
|
|
}
|
|
}
|