fix: serve versioned HiCAD assets directly

This commit is contained in:
134 2026-07-13 15:43:07 +08:00
parent 5f15b99e7c
commit da5c0699dd

View File

@ -1,6 +1,24 @@
# Include inside the authenticated HiCAD HTTPS server block.
# Replace __AI_CAD_WS_PROXY_SECRET__ during deployment and chmod the rendered file 600.
location ^~ /vendor/zoo-modeling-app/assets/ {
root /var/www/ai-chatbot/public;
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable" always;
}
location ^~ /vendor/zoo-modeling-app/fonts/ {
root /var/www/ai-chatbot/public;
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable" always;
}
location = /vendor/zoo-modeling-app/kcl_wasm_lib_bg.wasm {
root /var/www/ai-chatbot/public;
try_files $uri =404;
add_header Cache-Control "public, max-age=3600" always;
}
location = /_hicad_zoo_ws_auth {
internal;
proxy_pass http://127.0.0.1:3125/api/ai-cad/zoo-ws-authorize;