-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
30 lines (26 loc) · 892 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
# production
server {
listen 80;
server_name covercrop-selector.org www.covercrop-selector.org;
root /usr/share/nginx/html/;
index index.html;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html
try_files $uri $uri/ $uri.html /index.html;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
}
# develop
server {
listen 80;
server_name develop.covercrop-selector.org;
root /usr/share/nginx/html/;
index index.html;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html
try_files $uri $uri/ $uri.html /index.html;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
}