-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf.template
54 lines (42 loc) · 1.05 KB
/
nginx.conf.template
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
events {}
http {
include mime.types;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream websocket {
server ${SYNC_SERVER_HOST}:${SYNC_SERVER_PORT};
}
server {
root /html;
location / {
index index.html;
}
location /static/* {
alias /static;
}
location /r/ {
try_files /room.html /room.html;
}
location /j {
try_files /join.html /join.html;
}
location /c {
try_files /create.html /html/create.html;
}
location /faq {
try_files /faq.html /faq.html;
}
location /ws {
proxy_pass http://websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
location /robots.txt {
try_files /robots.txt /robots.txt;
}
}
}