-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
29 lines (24 loc) · 745 Bytes
/
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
server {
listen 8080;
listen [::]:8080;
server_name your-app-name.com;
location / {
proxy_pass http://your-tier-api-name.internal/;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
listen 8080;
listen [::]:8080;
server_name www.your-app-name.com;
location / {
proxy_pass http://your-tier-api-name.internal/;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}