33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
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;
|
|
add_header Cross-Origin-Opener-Policy "same-origin" always;
|
|
add_header Cross-Origin-Embedder-Policy "require-corp" always;
|
|
add_header Cross-Origin-Resource-Policy "same-origin" 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;
|
|
}
|
|
}
|