-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.conf.template
101 lines (75 loc) · 1.91 KB
/
default.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
server {
listen 80;
# BEGIN User-Service
location /user {
proxy_pass ${USER_URL};
proxy_http_version 1.1;
proxy_set_header Host $host;
}
location /token {
proxy_pass ${USER_URL};
proxy_http_version 1.1;
proxy_set_header Host $host;
}
location /snapshot {
proxy_pass ${USER_URL};
proxy_http_version 1.1;
proxy_set_header Host $host;
}
# END User-Service
# BEGIN Dynamic-Data
location ~* /v2/landscapes/[0-9a-z-]+/structure {
proxy_pass ${LANDSCAPE_URL};
proxy_http_version 1.1;
proxy_set_header Host $host;
}
location ~* /v2/landscapes/[0-9a-z-]+/dynamic {
proxy_pass ${TRACE_URL};
proxy_http_version 1.1;
proxy_set_header Host $host;
}
location ~* /v2/landscapes/[0-9a-z-]+/timestamps {
proxy_pass ${TIMESTAMPS_URL};
proxy_http_version 1.1;
proxy_set_header Host $host;
}
# END Dynamic-Data
# BEGIN Static-Data
location /v2/code {
proxy_pass ${CODE_SERV_URL};
proxy_http_version 1.1;
proxy_set_header Host $host;
}
# END Static-Data
# BEGIN Collab
location /room {
proxy_pass ${COLLABORATION_URL};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /socket.io {
proxy_pass ${COLLABORATION_URL};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# END Collab
# BEGIN VSCode
location /v2/ide/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass ${VSCODE_SERV_URL};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# END VSCode
# BEGIN Frontend
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html?/$request_uri;
}
# END Frontend
}