platform.ufo.conf.j2
651 Bytes
server {
listen 80;
server_name admin.ufo.yohobuy.com;
#charset koi8-r;
access_log /Data/logs/nginx/access_admin.ufo.yohobuy.com.log fenxi;
# only allow for office access
{% for i in yoho_office_ips %}
allow {{ i }};
{% endfor %}
deny all;
location ^~ /ufoPlatform/ {
proxy_redirect off;
proxy_pass http://ufoplatform/ufoPlatform/;
proxy_set_header Host "admin.ufo.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";
}
}