Files
ai-spel-frontend/nginx/default.conf
T
Ein Anderssono 0ecae41a78
Build and publish frontend / publish (push) Successful in 51s
Serve Piper worker with JavaScript MIME type
2026-10-16 06:55:24 +02:00

30 lines
828 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;
application/javascript js;
}
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;
}
}