Authored by chunhua.zhang

add

# Interface FOR YOHO ERP SYSTEM
server {
listen 80;
server_name erp.yoho.yohoops.org;
# only allow local
include ./local.access.conf;
proxy_http_version 1.1;
proxy_set_header Connection "";
... ... @@ -15,13 +20,7 @@ server {
return 200;
}
# only allow local ip
allow 10.66.0.0/16;
allow 10.67.0.0/16;
allow 192.168.0.0/16;
allow 172.31.0.0/16;
allow 127.0.0.1;
deny all;
location /erp/ {
proxy_pass http://erpgateway/erp-gateway/erp/;
... ...
... ... @@ -7,8 +7,9 @@ server {
error_log /Data/logs/nginx/single.yohoops.org_error.log;
set $real_ip "";
set_by_lua_file $real_ip conf/setup.lua;
# only allow local
include ./local.access.conf;
if ( $request_method = HEAD ) {
return 200;
... ...