fix: serve versioned HiCAD assets directly
This commit is contained in:
parent
96f2999d66
commit
e308142afd
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user