admin.portal.yohobuy.com.conf
1.35 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
server {
listen 80;
server_name admin.portal.yohobuy.com;
#charset koi8-r;
access_log /Data/logs/nginx/access_admin.portal.yohobuy.com.log fenxi;
location ^~ /pfcms/ {
proxy_redirect off;
proxy_pass http://platform-cms/pfcms/;
proxy_set_header Host "admin.portal.yohobuy.com";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
location ^~ /platform/ {
proxy_redirect off;
proxy_pass http://yohobuy-platform/platform/;
#proxy_pass http://yohobuy-platform-gray/platform/;
proxy_set_header Host "admin.portal.yohobuy.com";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
location / {
{% for item in yoho_office_ips %}
allow {{ item }};
{% endfor %}
deny all;
proxy_redirect off;
proxy_pass http://yohobuy-portal;
#proxy_pass http://yohobuy-portal-gray;
proxy_set_header Host "admin.portal.yohobuy.com";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
}