mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
7656e84c20
settings.js (which injects SERVER_URL into the browser) was served without Cache-Control headers, causing Cloudflare and other reverse proxies to cache the old value indefinitely. Additionally, when SERVER_LOCK is enabled, the persisted server URL in localStorage was never compared against the current window.SERVER_URL, so same-browser sessions kept using the old server even after settings.js was updated. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
837 B
Plaintext
31 lines
837 B
Plaintext
server {
|
|
listen 9180;
|
|
listen [::]:9180;
|
|
sendfile on;
|
|
default_type application/octet-stream;
|
|
|
|
gzip on;
|
|
gzip_http_version 1.1;
|
|
gzip_disable "MSIE [1-6]\.";
|
|
gzip_min_length 256;
|
|
gzip_vary on;
|
|
gzip_proxied expired no-cache no-store private auth;
|
|
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
gzip_comp_level 9;
|
|
|
|
location ${PUBLIC_PATH} {
|
|
alias /usr/share/nginx/html/;
|
|
try_files $uri $uri/ /index.html =404;
|
|
}
|
|
|
|
location ${PUBLIC_PATH}settings.js {
|
|
alias /etc/nginx/conf.d/settings.js;
|
|
add_header Cache-Control "no-store";
|
|
}
|
|
|
|
location ${PUBLIC_PATH}/settings.js {
|
|
alias /etc/nginx/conf.d/settings.js;
|
|
add_header Cache-Control "no-store";
|
|
}
|
|
}
|