-
Notifications
You must be signed in to change notification settings - Fork 5
/
nginx.conf.erb
51 lines (42 loc) · 942 Bytes
/
nginx.conf.erb
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
40
41
42
43
44
45
46
47
48
49
50
51
set $index_path /app/dist;
root $index_path;
location = / {
root $index_path;
add_header Cache-Control no-store; #the server is hit each time the location is requested
expires 0;#not sure if needed
try_files /index.html =404;
}
location / {
root $index_path;
}
# v4 endpoint
location = /index.html {
root $index_path;
add_header Cache-Control no-store;
}
# v4 endpoint
location = /version {
root $index_path;
add_header Cache-Control no-store;
}
# v4 endpoint
# covers config.json and config.hostname.json requests as it is prefix.
location /config {
root $index_path;
add_header Cache-Control no-store;
}
# v4 endpoint
location /i18n {
root $index_path;
add_header Cache-Control no-store;
}
# v4 endpoint
location /home {
root $index_path;
add_header Cache-Control no-store;
}
# v4 endpoint
location /sites {
root $index_path;
add_header Cache-Control no-store;
}