...
|
...
|
@@ -5,10 +5,10 @@ server{ |
|
|
error_log /Data/logs/nginx/union_error.log;
|
|
|
|
|
|
location ^~ /admin {
|
|
|
if ( $proxy_add_x_forwarded_for !~* "(218.94.77.166|218.94.75.50|218.94.75.58|106.39.86.*|106.38.38.*)" ) {
|
|
|
return 401;
|
|
|
break;
|
|
|
}
|
|
|
{% for item in yoho_office_ips %}
|
|
|
allow {{ item }};
|
|
|
{% endfor %}
|
|
|
deny all;
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://union_pools/union/admin;
|
|
|
proxy_set_header Host $host;
|
...
|
...
|
@@ -18,10 +18,10 @@ server{ |
|
|
}
|
|
|
|
|
|
location ^~ /union/admin {
|
|
|
if ( $proxy_add_x_forwarded_for !~* "(218.94.75.50|218.94.75.58|218.94.77.166|106.39.86.*|106.38.38.*)" ) {
|
|
|
return 401;
|
|
|
break;
|
|
|
}
|
|
|
{% for item in yoho_office_ips %}
|
|
|
allow {{ item }};
|
|
|
{% endfor %}
|
|
|
deny all;
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://union_pools/union/admin;
|
|
|
proxy_set_header Host $host;
|
...
|
...
|
|