Add Gemma license gate and publish local model assets
Build and publish static assets / publish (push) Failing after 2s
Build and publish static assets / publish (push) Failing after 2s
This commit is contained in:
+27
-2
@@ -21,13 +21,38 @@ server {
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location ^~ /static/ {
|
||||
location = /static/wllama-gemma3-v1/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-v1/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-v1/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;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user