-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
58 lines (47 loc) · 1.07 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
server {
listen 80;
server_name frontend;
port_in_redirect off;
include mime.types;
types {
application/javascript mjs;
}
location = / {
return 302 /static/lecture/;
}
location /files {
alias /usr/share/nginx/htmlsecuredfiles;
secure_link $arg_md5,$arg_expires;
secure_link_md5 "$secure_link_expires$uri ${FAILS_STATIC_SECRET}";
if ($secure_link = "") { return 403; }
if ($secure_link = "0") { return 410; }
}
location /config {
root /usr/share/nginx/html;
}
location /static/app {
root /usr/share/nginx/html;
index index.html
try_files $uri /index.html;
}
location /static/lecture {
root /usr/share/nginx/html;
index index.html
try_files $uri /index.html;
}
location /static/experimental/app {
root /usr/share/nginx/html;
index index.html
try_files $uri /index.html;
}
location /static/experimental/lecture {
root /usr/share/nginx/html;
index index.html
try_files $uri /index.html;
}
location /static/oss {
root /usr/share/nginx/html;
index attribution.txt
try_files $uri /attribution.txt;
}
}