-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdispatcher.conf
More file actions
81 lines (71 loc) · 2.13 KB
/
dispatcher.conf
File metadata and controls
81 lines (71 loc) · 2.13 KB
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
server {
listen 3001;
error_log /var/log/nginx/error.log;
sendfile off;
# tutorial static files
location ~ ^/(clientlib|tutorial)/ {
proxy_pass http://localhost:3007;
}
# tutorial micro-app
location ~ ^/tt($|_tracking|_history|/) {
set $h $http_host;
if ($http_ce_resource_host) {
set $h $http_ce_resource_host;
}
proxy_set_header CE-Resource-Host $h;
proxy_pass http://localhost:3007;
}
# siteserver (hostingsite) static files
location ~ ^/site(design|server)/ {
proxy_pass http://localhost:3005;
}
# ac micro-app
location ~ ^/ac(|-permissions|-resource-groups)($|/) {
set $h $http_host;
if ($http_ce_resource_host) {
set $h $http_ce_resource_host;
}
proxy_set_header CE-Resource-Host $h;
proxy_pass http://localhost:3005;
}
# account micro-app
location ~ ^/account($|/) {
set $h $http_host;
if ($http_ce_resource_host) {
set $h $http_ce_resource_host;
}
proxy_set_header CE-Resource-Host $h;
proxy_pass http://localhost:3005;
}
# mt micro-app
location ~ ^/($|mt) {
set $h $http_host;
if ($http_ce_resource_host) {
set $h $http_ce_resource_host;
}
proxy_set_header CE-Resource-Host $h;
proxy_pass http://localhost:3005;
}
# setupshop static files
location ~ ^/setupshop/ {
proxy_pass http://localhost:3006;
}
# cat micro-app
location ~ ^/cat($|_tracking|_history|/) {
set $h $http_host;
if ($http_ce_resource_host) {
set $h $http_ce_resource_host;
}
proxy_set_header CE-Resource-Host $h;
proxy_pass http://localhost:3006;
}
# cart micro-app
location ~ ^/cart($|_tracking|_history|/) {
set $h $http_host;
if ($http_ce_resource_host) {
set $h $http_ce_resource_host;
}
proxy_set_header CE-Resource-Host $h;
proxy_pass http://localhost:3006;
}
}