32 lines
1.0 KiB
Caddyfile
32 lines
1.0 KiB
Caddyfile
:80
|
|
|
|
root * /usr/share/caddy
|
|
|
|
@static path /assets/* /icons/* /manifest.webmanifest
|
|
handle @static {
|
|
header Cache-Control "public, max-age=31536000, immutable"
|
|
file_server
|
|
}
|
|
|
|
handle /service-worker.js {
|
|
header Cache-Control "no-cache, no-store, must-revalidate"
|
|
file_server
|
|
}
|
|
|
|
handle {
|
|
header Cache-Control "no-cache, no-store, must-revalidate"
|
|
try_files {path} /index.html
|
|
file_server
|
|
}
|
|
|
|
header {
|
|
Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://supa.supersamsev.ru; font-src 'self'; connect-src 'self' https://supa.supersamsev.ru wss://supa.supersamsev.ru https://fcm.googleapis.com; frame-ancestors 'none'; form-action 'self'; base-uri 'self'"
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
X-Content-Type-Options "nosniff"
|
|
X-Frame-Options "DENY"
|
|
Referrer-Policy "strict-origin-when-cross-origin"
|
|
X-XSS-Protection "0"
|
|
Cross-Origin-Opener-Policy "same-origin"
|
|
Service-Worker-Allowed "/"
|
|
}
|