-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
54 lines (45 loc) · 1.32 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
server {
listen 80;
listen 443;
###
# Edit server_name to change the server name for the usernamager
###
server_name usermanager.thunder.dev;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# due to docker link ngnix can resolve the container hostname
proxy_pass http://thunder-usermanager:80;
}
}
server {
listen 80;
listen 443;
###
# Edit server_name to change the server name for the harbourmaster
###
server_name harbourmaster.thunder.dev;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# due to docker link ngnix can resolve the container hostname
proxy_pass http://thunder-harbourmaster:80;
}
}
server {
listen 80;
listen 443;
###
# Edit server_name to change the server name for the controlcenter
###
server_name controlcenter.thunder.dev;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# due to docker link ngnix can resolve the container hostname
proxy_pass http://thunder-controlcenter:18040;
}
}