- Add favicon.png link and apple-touch-icon in base.html.twig - Add theme-color meta tag (#fabf04) - Add pwa_dev and pwa_prod Makefile commands - Add PWA asset generation step in Ansible playbook after cache clear - Update Caddy static paths for favicon.png, marker.png, manifest.json, sw.js Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
56 lines
1.3 KiB
Django/Jinja
56 lines
1.3 KiB
Django/Jinja
ticket.e-cosplay.fr {
|
|
tls {
|
|
dns cloudflare {{ cloudflare_api_token }}
|
|
}
|
|
|
|
@static path /logo.png /favicon.ico /favicon.png /marker.png /manifest.json /sw.js /build/* /uploads/*
|
|
handle @static {
|
|
root * /var/www/e-ticket/public
|
|
file_server
|
|
}
|
|
|
|
handle_path /stats/* {
|
|
rewrite * {uri}
|
|
reverse_proxy https://tools-security.esy-web.dev {
|
|
header_up Host tools-security.esy-web.dev
|
|
}
|
|
}
|
|
|
|
handle /assets/perf.js {
|
|
rewrite * /beacon.min.js
|
|
reverse_proxy https://static.cloudflareinsights.com {
|
|
header_up Host static.cloudflareinsights.com
|
|
}
|
|
}
|
|
|
|
@maintenance file /var/www/e-ticket/public/.update
|
|
handle @maintenance {
|
|
root * /var/www/e-ticket/public
|
|
rewrite * /maintenance.html
|
|
file_server {
|
|
status 503
|
|
}
|
|
}
|
|
|
|
handle {
|
|
root * /var/www/e-ticket/public
|
|
php_fastcgi localhost:4578 localhost:4579 {
|
|
root /app/public
|
|
lb_policy round_robin
|
|
trusted_proxies private_ranges
|
|
}
|
|
file_server
|
|
try_files {path} /index.php?{query}
|
|
}
|
|
|
|
encode gzip
|
|
|
|
header {
|
|
-Server
|
|
}
|
|
|
|
log {
|
|
output file /var/log/caddy/ticket.e-cosplay.fr.log
|
|
}
|
|
}
|