fix: disable fnos web cache for live debugging
This commit is contained in:
@@ -7,3 +7,4 @@ services:
|
||||
- "${STORYFORGE_WEB_V4_DEV_PORT:-19192}:80"
|
||||
volumes:
|
||||
- ../../storyforge/web/storyforge-web-v4:/usr/share/nginx/html:ro
|
||||
- ./storyforge-fnos-web-v4.nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
|
||||
27
deploy/storyforge-fnos-web-v4.nginx.conf
Normal file
27
deploy/storyforge-fnos-web-v4.nginx.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location = /index.html {
|
||||
add_header Cache-Control "no-store";
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location = /assets/storyforge-runtime-config.js {
|
||||
add_header Cache-Control "no-store";
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location /assets/ {
|
||||
add_header Cache-Control "no-store";
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
add_header Cache-Control "no-store";
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user