Files
Ein Anderssono 214f3b5cbd
Build and publish static assets / publish (push) Successful in 8m21s
Show local AI activity feedback
2026-10-19 12:36:43 +02:00

66 lines
1.9 KiB
Plaintext

server {
listen 8080;
server_name _;
root /usr/share/nginx/html;
location = /healthz {
access_log off;
return 204;
}
location = /static/version.txt {
default_type text/plain;
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" always;
try_files $uri =404;
}
location = /static/version.json {
default_type application/json;
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" always;
add_header Cross-Origin-Resource-Policy "same-origin" always;
try_files $uri =404;
}
location = /static/wllama-gemma3-v2/manifest.json {
default_type application/json;
add_header Cache-Control "no-cache" always;
add_header Cross-Origin-Resource-Policy "same-origin" always;
try_files $uri =404;
}
location = /static/wllama-gemma3-v2/local-ai.js {
default_type application/javascript;
add_header Cache-Control "no-cache" always;
add_header Cross-Origin-Resource-Policy "same-origin" always;
try_files $uri =404;
}
location ~ ^/static/wllama-gemma3-v2/licenses/ {
types {
text/html html;
text/plain txt;
}
add_header Cache-Control "no-cache" always;
add_header Cross-Origin-Resource-Policy "same-origin" always;
try_files $uri =404;
}
location /static/ {
types {
application/wasm wasm;
application/javascript js mjs;
application/json json;
application/octet-stream onnx data gguf;
text/plain txt;
text/html html;
}
add_header Cache-Control "public, max-age=31536000, immutable" always;
add_header Cross-Origin-Resource-Policy "same-origin" always;
try_files $uri =404;
}
location / {
return 404;
}
}