forked from OpenNeuroOrg/openneuro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
32 lines (26 loc) · 865 Bytes
/
nginx.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
# Default static nginx.conf
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
gzip on;
gzip_proxied any;
gzip_types text/html application/json text/css;
root /srv/app/dist;
# Return a well formed robots.txt
location /robots.txt {return 200 "User-agent: *\nAllow: /\n";}
location /index.html {
add_header Cache-Control 'max-age=0';
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload';
}
location /sw.js {
add_header Cache-Control 'max-age=0';
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload';
}
location / {
gzip_static on;
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload';
add_header Cache-Control 'max-age=31536000; public';
try_files $uri $uri/ /index.html;
}
}