✨ feat(ansible/caddy): Ajoute 'no-transform' pour éviter la recompression par Cloudflare.
This commit is contained in:
@@ -3,19 +3,27 @@ www.e-cosplay.fr {
|
||||
dns cloudflare Kq_hpaH_ng-hAeGsJo6KhQb2TxYW1v6lRGE84aOR
|
||||
}
|
||||
root * {{ path }}/public
|
||||
encode zstd gzip br
|
||||
file_server
|
||||
|
||||
file_server {
|
||||
precompressed br gzip
|
||||
}
|
||||
|
||||
request_body {
|
||||
max_size 100MB
|
||||
}
|
||||
handle_path /ts.js {
|
||||
redir https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js
|
||||
redir https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js
|
||||
}
|
||||
handle_path /tp.widget.bootstrap.min.js.map {
|
||||
redir https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js.map
|
||||
redir https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js.map
|
||||
}
|
||||
header {
|
||||
-X-Robots-Tag
|
||||
# Added 'no-transform' to the Cache-Control header.
|
||||
# This is CRUCIAL when behind Cloudflare to discourage it from
|
||||
# stripping your Content-Encoding header or re-compressing your files,
|
||||
# ensuring your max-level static compressed files are delivered.
|
||||
Cache-Control "public, max-age=31536000, immutable, no-transform"
|
||||
Permissions-Policy "accelerometer=(), autoplay=(), encrypted-media=(), geolocation=(), gyroscope=(), magnetometer=(), midi=(), payment=(), publickey-credentials-get=(), usb=(), screen-wake-lock=(), xr-spatial-tracking=(), bluetooth=(), gamepad=()"
|
||||
Content-Security-Policy "base-uri 'self'; default-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; script-src 'self' 'unsafe-inline' https://www.e-cosplay.fr https://datas.e-cosplay.fr https://app.chatwoot.com https://*.cloudflareinsights.com https://storage.googleapis.com https://*.trustpilot.com; font-src 'self' https://fonts.gstatic.com;connect-src https://*.e-cosplay.fr https://*.cloudflareinsights.com https://fonts.googleapis.com https://widget.trustpilot.com/ https://challenges.cloudflare.com https://app.chatwoot.com; frame-src 'self' https://*.trustpilot.com https://app.chatwoot.com; worker-src 'self' blob:;"
|
||||
Cross-Origin-Embedder-Policy ""
|
||||
@@ -32,11 +40,10 @@ www.e-cosplay.fr {
|
||||
env HTTP_PROXY ""
|
||||
}
|
||||
}
|
||||
|
||||
datas.e-cosplay.fr {
|
||||
tls {
|
||||
dns cloudflare Kq_hpaH_ng-hAeGsJo6KhQb2TxYW1v6lRGE84aOR
|
||||
}
|
||||
reverse_proxy localhost:27502
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user