Files
ai-spel-frontend/nginx/default.conf
T
Ein Anderssono aed6b15a20
Build and publish frontend / publish (push) Failing after 6s
Add browser-local Piper WebAssembly speech
2026-10-16 06:47:59 +02:00

27 lines
769 B
Plaintext

server {
listen 8080;
server_name _;
root /usr/share/nginx/html;
index index.html;
location = /healthz {
access_log off;
return 204;
}
location ^~ /tts/piper-wasm-v1/ {
types { application/wasm wasm; }
add_header Cache-Control "public, max-age=31536000, immutable" always;
try_files $uri =404;
}
location / {
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
add_header Cross-Origin-Embedder-Policy "require-corp" always;
try_files $uri $uri/ /index.html;
}
}