-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.local.conf
39 lines (39 loc) · 1.04 KB
/
nginx.local.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
server {
listen 80;
server_name _;
root /mnt/app/static/;
# Note, Cache-Control headers should be removed in production
location ^~ /static {
sendfile on;
sendfile_max_chunk 1m;
# Cache Prevention Start
proxy_ignore_headers Cache-Control;
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
if_modified_since off;
expires off;
etag off;
# Cache Prevention End
alias /mnt/app/static;
allow all;
}
location / {
sendfile on;
sendfile_max_chunk 1m;
# Cache Prevention Start
proxy_ignore_headers Cache-Control;
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
if_modified_since off;
expires off;
etag off;
# Cache Prevention End
tcp_nopush on;
keepalive_timeout 65;
alias /mnt/app/static/;
try_files $uri /index.html;
}
location /backend/ {
proxy_pass http://backend:3000/;
}
}