代码拉取完成,页面将自动刷新
upstream crm {
# server 192.168.18.105:6005;
server 192.168.18.115:6005;
}
upstream sygj-ewx {
server 192.168.18.109:3005;
server 192.168.18.119:3005;
server 192.168.18.193:3005;
#lankejun
}
upstream wechat-behavior-upload2youshu {
server 192.168.18.114:2705;
# zhaoxz & wenrc
}
upstream wechat-shop-internal {
server 192.168.18.154:8181;
server 192.168.18.144:8181;
#server 192.168.5.187:8181;
}
upstream jz-shoppingmall-operations-management {
server 192.168.18.245:8789;
}
upstream physicalmini-customer-session {
server 192.168.18.112:6010;
}
upstream wechat-immunity-miniprogram {
server 192.168.18.102:3001;
# server 192.168.18.112:3001;
}
upstream bi-front {
server 192.168.5.46:7272;
#server 192.168.5.43:7272;
}
upstream wechat-minicontent-back {
server 192.168.18.122:6005;
server 192.168.18.132:6005;
}
upstream wechat-behavior-advert {
server 192.168.18.103:2506;
server 192.168.18.113:2506;
}
upstream wechat-miniprogram-service {
server 192.168.18.103:2508;
server 192.168.18.113:2508;
server 192.168.18.109:2508;
#server 192.168.18.119:2508;
#keepalive 120;
}
upstream mkt-back {
#ip_hash;
server 192.168.18.181:9090;
server 192.168.18.191:9090;
}
upstream micro-mall-serve {
ip_hash;
server 192.168.18.103:8089;
server 192.168.18.113:8089;
server 192.168.18.106:8089;
server 192.168.18.116:8089;
}
upstream wechat-welfare-service {
ip_hash;
server 192.168.18.107:8501;
server 192.168.18.117:8501;
server 192.168.18.108:8501;
server 192.168.18.118:8501;
}
upstream wechat-shop-track {
ip_hash;
server 192.168.18.123:9799;
server 192.168.18.124:9799;
server 192.168.18.133:9799;
server 192.168.18.134:9799;
}
upstream wxserver {
#ip_hash;
server 192.168.5.45:8686;
server 192.168.5.46:8383;
}
upstream wgmf-config {
server 192.168.18.108:8686;
}
upstream appserver {
#ip_hash;
server 192.168.5.43:8383;
server 192.168.5.44:8383;
}
upstream wechat-service {
#ip_hash;
server 192.168.18.161:8585;
server 192.168.18.162:8585;
server 192.168.18.171:8585;
server 192.168.18.172:8585;
server 192.168.18.125:8585;
server 192.168.18.126:8585;
server 192.168.18.135:8585;
server 192.168.18.136:8585;
}
upstream wechat-pay {
#ip_hash;
server 192.168.18.123:9797;
server 192.168.18.124:9797;
server 192.168.18.133:9797;
server 192.168.18.134:9797;
}
upstream wechat-shop-back {
ip_hash;
server 192.168.18.123:9798 max_fails=3;
server 192.168.18.124:9798 max_fails=3;
server 192.168.18.133:9798 max_fails=3;
server 192.168.18.134:9798 max_fails=3;
server 192.168.18.137:9798 max_fails=3;
server 192.168.18.147:9798 max_fails=3;
server 192.168.18.186:9798 max_fails=3;
server 192.168.18.187:9798 max_fails=3;
server 192.168.18.196:9798 max_fails=3;
server 192.168.18.197:9798 max_fails=3;
keepalive 2000;
}
upstream wechat-health-test-back {
ip_hash;
server 192.168.18.124:4006;
server 192.168.18.134:4006;
}
upstream wechat-game-back {
ip_hash;
server 192.168.18.125:9091;
server 192.168.18.126:9091;
server 192.168.18.135:9091;
server 192.168.18.136:9091;
#server 192.168.18.145:9091;
#server 192.168.18.155:9091;
}
upstream wechat-propagate-back {
ip_hash;
server 192.168.18.125:9090;
server 192.168.18.126:9090;
server 192.168.18.135:9090;
server 192.168.18.136:9090;
server 192.168.18.145:9090;
server 192.168.18.155:9090;
}
upstream wechat-html {
ip_hash;
server 192.168.5.43:80;
server 192.168.5.46:7070;
}
upstream business-marketing {
server 192.168.5.46:7070;
}
upstream base-data-service {
#ip_hash;
server 192.168.18.148:9898;
server 192.168.18.149:9898;
server 192.168.18.158:9898;
server 192.168.18.159:9898;
}
upstream mkt-front {
server 192.168.5.43:7171;
server 192.168.5.46:7171;
}
upstream wechat-miniprogram-front {
server 192.168.18.127:7071;
server 192.168.18.137:7071;
}
upstream webstat {
ip_hash;
server 192.168.18.163:4001;
server 192.168.18.164:4001;
server 192.168.18.173:4001;
server 192.168.18.174:4001;
}
upstream bi-back {
#ip_hash;
server 192.168.18.108:8282;
server 192.168.18.118:8282;
server 192.168.18.107:8282;
server 192.168.18.117:8282;
}
upstream wechat-operation-back {
#ip_hash;
server 192.168.18.161:9595;
server 192.168.18.162:9595;
server 192.168.18.171:9595;
server 192.168.18.172:9595;
}
upstream msg-service {
#ip_hash;
server 192.168.18.148:8088;
server 192.168.18.158:8088;
}
upstream qiniuserver {
#ip_hash;
server 192.168.18.149:9384;
server 192.168.18.159:9384;
}
upstream wechat-miniprogram-back {
server 192.168.18.107:6001;
server 192.168.18.117:6001;
server 192.168.18.105:6001;
}
upstream wechat-micromallmini-service {
# server 192.168.18.102:3002;
server 192.168.18.112:3002;
}
upstream wechat-enterprise-service {
server 192.168.18.102:2505;
server 192.168.18.112:2505;
server 192.168.18.116:2505;
server 192.168.18.106:2505;
}
upstream promotion {
#ip_hash;
server 192.168.18.165:9595;
server 192.168.18.166:9595;
server 192.168.18.175:9595;
server 192.168.18.176:9595;
}
upstream promotion-online {
#ip_hash;
server 192.168.18.165:9696;
server 192.168.18.166:9696;
server 192.168.18.175:9696;
server 192.168.18.176:9696;
server 192.168.18.186:9696;
server 192.168.18.187:9696;
server 192.168.18.196:9696;
server 192.168.18.197:9696;
}
upstream app {
server 192.168.18.121:9191 weight=20;
server 192.168.18.131:9191 weight=20;
server 192.168.18.142:9191 weight=20;
server 192.168.18.152:9191 weight=20;
keepalive 32;
}
upstream app-manage {
server 192.168.18.121:9292;
server 192.168.18.131:9292;
keepalive 32;
}
upstream app-saler {
server 192.168.18.129:9393;
server 192.168.18.139:9393;
keepalive 32;
}
upstream culture {
server 192.168.18.157:9696;
}
server {
listen 80;
listen 443 ssl;
#ssl_certificate /etc/nginx/ssl/server.cer;
#ssl_certificate_key /etc/nginx/ssl/server.key;
#ssl_certificate /etc/nginx/ssl/scs1614840520844__.wgmf.com_server.crt;
#ssl_certificate_key /etc/nginx/ssl/scs1614840520844__.wgmf.com_server.key;
ssl_certificate /etc/nginx/ssl/wgmf.com_server.crt;
ssl_certificate_key /etc/nginx/ssl/wgmf.com_server.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
server_name crm.wgmf.com,wx.wgmf.com,data.wgmf.com,192.168.5.46,121.201.38.125;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
#add_header backendIP $upstream_addr;
#add_header backendCode $upstream_status;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location /status {
stub_status on;
access_log off;
allow 192.168.1.0/24;
allow 192.168.5.0/24;
allow 192.168.2.0/24;
deny all;
}
location ~ swagger-ui.html$
{
access_log /var/log/nginx/swagger-ui.log main;
# allow 192.168.2.0/24;
# allow 192.168.1.0/24;
allow 192.168.5.0/24;
deny all;
}
location / {
root /data/static;
access_log off;
}
location /shop-web {
root /data/static/shop-web;
access_log off;
}
location /shop-web/shop/superMember.html {
access_log /var/log/nginx/shop-cookie.log timed_combined;
return 301 https://wx.wgmf.com/wechat-html/html/redirect/redirect.html;
}
location /shop-web/shop/productIndex.html {
access_log /var/log/nginx/shop-cookie.log timed_combined;
return 301 https://wx.wgmf.com/wechat-html/html/redirect/redirect.html;
}
location /shop-web/shop/productList.html {
access_log /var/log/nginx/shop-cookie.log timed_combined;
return 301 https://wx.wgmf.com/wechat-html/html/redirect/redirect.html;
}
location /shop-web/shop/memberCenter.html {
access_log /var/log/nginx/shop-cookie.log timed_combined;
return 301 https://wx.wgmf.com/wechat-html/html/redirect/redirect.html;
}
location /shop-web/shop/productDetail.html {
access_log /var/log/nginx/shop-cookie.log timed_combined;
return 301 https://wx.wgmf.com/wechat-html/html/redirect/redirect.html;
}
#location /shop-web/shop/ {
#access_log /var/log/nginx/shop-cookie.log timed_combined;
#return 301 https://wx.wgmf.com/wechat-html/html/redirect/redirect.html;
#}
location /dist {
root /data/static;
access_log off;
}
location /crm {
access_log /var/log/nginx/crm.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#必须配置到这里才能在tomcat获取到
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://crm;
}
#-------------------------------------wechat-----------------------------------
location /wechat/appController.do {
gzip on;
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 20;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wxserver;
# proxy_pass http://wechat-service/wechat-service/;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
#-------------------------------------wechat-----------------------------------
location /wechat/ {
gzip on;
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 20;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
# proxy_pass http://wxserver;
proxy_pass http://wechat-service/wechat-service/;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
#-------------------------------------wechat-----------------------------------
location /wechat/webpage {
gzip on;
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 20;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
# proxy_pass http://wxserver;
#proxy_pass http://wechat-service/wechat-service/;
root /data/static/ ;
#index index.html index.htm;
}
#-------------------------------------wechattest-----------------------------------
location /wechattest {
access_log /var/log/nginx/wechattest.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://192.168.5.60:8555;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
#-------------------------------------webstat-----------------------------------
location /webstat {
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://webstat;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
location ^~ /mmopen {
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified- Since,Keep
-Alive,Origin,User-Agent,X-Requested-With' always;
proxy_pass http://thirdwx.qlogo.cn/mmopen;
}
#-------------------------------------wechat-propagate-back-----------------------------------
location /wechat-propagate-back {
access_log /var/log/nginx/wechat-propagate-back.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-propagate-back;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
#---------------------------------wechat-minicontent-back-----------------------------------
location /wechat-minicontent-back {
access_log /var/log/nginx/wechat-minicontent-back.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-minicontent-back;
}
#-----------------------------wechat-miniprogram-front-----------------------------------
location /wechat-miniprogram-front {
access_log /var/log/nginx/wechat-miniprogram-front.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-miniprogram-front;
}
location /physicalmini-customer-session {
access_log /var/log/nginx/physicalmini-customer-session.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://physicalmini-customer-session;
}
#-------------------------------------------wechatlog-----------------------------------------
location /wechatlog {
access_log /var/log/nginx/wechatlog.log timed_combined;
return 200;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
#-----------------------------------微信接入服务-----------------------------------------
location /wechat-service {
access_log /var/log/nginx/wechat-service.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-service;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
#--------------------------------------webstat-data-viewer--------------------------------------
location /webstat-data-viewer {
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://192.168.5.45:8585;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
#--------------------------------------wechat-ea-oauth--------------------------------------
location /wechat-ea-oauth {
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://192.168.18.248:8787;
}
# huiyuan fenxiao from xiang
location /wechat-eafx-oauth {
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://192.168.18.243:9797;
}
# add by zhangj from xiangyuqing
location /wechat-micromallmini-service {
access_log /var/log/nginx/wechat-micromallmini-service.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-micromallmini-service;
}
#------------------------------------wechat-pay----------------------------------------
location /wechat-pay {
access_log /var/log/nginx/wechat_pay.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-pay;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
#location ~ /nianhui/.*\.(mp3|swf|ttf|woff|map|jsp|gif|jpg|jpeg|png|bmp|swf|js|xls|html|htm|css|do|action)$ {
# access_log /var/log/nginx/access-nianhui-do.log main;
# error_log /var/log/nginx/error-nianhui-do.log warn;
# root /var/www/html;
# expires 1d;
# #proxy_redirect off;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $remote_addr;
# proxy_buffer_size 256k;
# proxy_buffers 4 256k;
# proxy_cache_valid 200 302 1h;
# }
#-------------------------------------wechat-shop-back-----------------------------------
location /wechat-shop-back {
access_log /var/log/nginx/wechat-shop-back.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 60;
proxy_send_timeout 60;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-shop-back;
add_header backendIP $upstream_addr;
add_header backendCode $upstream_status;
}
#-------------------------------------wechat-html-----------------------------------
location /wechat-html {
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 512k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-html;
}
location /wechat-member-html {
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 512k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-html;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
location /business-marketing {
#access_log /var/log/nginx/business-marketing.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 512k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://business-marketing;
}
location /wechat-behavior-upload2youshu {
access_log /var/log/nginx/wechat-behavior-upload2youshu.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 512k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-behavior-upload2youshu;
}
#----------------------------------------member-system-html------------------------------------
location /member-system-html {
#access_log /var/log/nginx/timed.log timed_combined;
root /usr/local/software/static;
}
#------------------------------------base-data-service-----------------------------------
location /base-data-service {
access_log /var/log/nginx/base-data.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
# proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://base-data-service;
}
#------------------------------------procrmserver-----------------------------------
location ~ /(procrmserver|crmserver) {
#access_log /var/log/nginx/timedgzip.log timed_combined;
access_log /var/log/nginx/base-data.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://appserver;
}
#---------------------------------------------------------------------------------------
location /crmserver-front {
#access_log /var/log/nginx/timedgzip.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://192.168.5.44:8383;
}
#------------------------------------wechat-game-back----------------------------------------
location /wechat-game-back {
access_log /var/log/nginx/wechat-game.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-game-back;
}
#------------------------------------bi----------------------------------------
location /bi {
rewrite ^(.*) http://data.wgmf.com/bi-front/html/loginNew.html break;
#rewrite ^(.*) http://data.wgmf.com/bi-back/html/login.html break;
#rewrite ^(.*) /bi-back/$1 break;
#access_log /var/log/nginx/test.log timed_combined;
#proxy_pass http://data.wgmf.com;
#proxy_pass http://data.wgmf.com/bi-back/html/login.html;
}
#------------------------------------bi-back----------------------------------------
location /bi-back {
access_log /var/log/nginx/bi-back.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 512k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://bi-back;
}
#------------------------------------wechat-operation-back----------------------------------------
location /wechat-operation-back {
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-operation-back;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
#------------------------------------base-data-service----------------------------------------
location /base-data-service/message {
#access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://msg-service/msg-service/message;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
location /msg-service {
access_log /var/log/nginx/msgtimed.log timed_combined;
deny 58.251.161.149;
#deny 192.168.5.246;
#allow 192.168.5.227;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://msg-service/msg-service;
}
#------------------------------------/base-data-service/sms----------------------------------------
location /base-data-service/sms {
access_log /var/log/nginx/sms.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://msg-service/msg-service/message;
}
#------------------------------------wechat-health-test-back-----------------------------------
location /wechat-health-test-back {
access_log /var/log/nginx/wechat-health-test-back.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-health-test-back;
}
#-----------------------------------------------qiniu---------------------------------------------------
location /qiniu {
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
#proxy_connect_timeout 30;
#proxy_send_timeout 30;
#proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
# proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://qiniuserver;
}
#-----------------------------------------------活动---------------------------------------------------
location /promotion/ {
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
#proxy_connect_timeout 30;
#proxy_send_timeout 30;
#proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://promotion;
}
location /promotion-online/ {
access_log /var/log/nginx/promotion-online.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
#proxy_connect_timeout 30;
#proxy_send_timeout 30;
#proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://promotion-online;
}
#-----------------------------------------wechat-shop-internal-----------------------------------
location /wechat-shop-internal/ {
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
#proxy_connect_timeout 30;
#proxy_send_timeout 30;
#proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-shop-internal;
}
#------------------------------------app-----------------------------------
location /app {
access_log /var/log/nginx/app.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 1024k;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 512k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 512k;
proxy_temp_file_write_size 512k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://app;
}
#------------------------------------app-manage-----------------------------------
location /app-manage {
access_log /var/log/nginx/app-manage.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 512k;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://app-manage;
}
#------------------------------------app-saler-----------------------------------
location /app-saler {
access_log /var/log/nginx/app-saler.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 512k;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://app-saler;
}
#-----------------------------------sygj-ewx-----------------------------------
# lankejun
location /sygj-ewx {
access_log /var/log/nginx/sygj-ewx.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 512k;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://sygj-ewx;
}
#------------------------------------wechat-lotterymini-customer-service-----------------------------------
location /wechat-lotterymini-customer-service {
access_log /var/log/nginx/wechat-lotterymini-customer-service.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://192.168.18.103:9695;
}
#add by zhangj from yaunli
#------------------------------------wgmf-config-----------------------------------
location /wgmf-config {
#access_log /var/log/nginx/timedgzip.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wgmf-config;
}
#add by zhangj from yaunli
#----------------------------------culture-----------------------------------
location /culture {
#access_log /var/log/nginx/wgmf-culture.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://culture;
}
# add by zhangj from xiangyuqing
#------------------------------------micro-mall-serve-----------------------------------
location /micro-mall-serve {
#access_log /var/log/nginx/timedgzip.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://micro-mall-serve;
}
#------------------------------------jz-markting-activities-management----------------------------------
location /jz-markting-activities-management {
#access_log /var/log/nginx/timedgzip.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://192.168.18.245:8504;
}
location /shtn {
#access_log /var/log/nginx/timedgzip.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://192.168.5.240:6001;
}
location /wechat-shop-track {
#access_log /var/log/nginx/timedgzip.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
#proxy_pass http://192.168.5.180:9799;
proxy_pass http://wechat-shop-track;
}
location /wechat-welfare-service {
#access_log /var/log/nginx/timedgzip.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-welfare-service;
}
location ^~ /mkt-front/ {
access_log /var/log/nginx/timedgzip.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://mkt-front;
}
location ^~ /mkt-back/ {
access_log /var/log/nginx/mkt-back.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host:$server_port;
#proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://mkt-back;
}
location ^~ /bi-front/ {
access_log /var/log/nginx/bi-front.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://bi-front;
}
location /wechat-enterprise-service {
access_log /var/log/nginx/wechat-enterprise-service.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-enterprise-service;
}
location /wechat-immunity-miniprogram {
access_log /var/log/nginx/wechat-immunity-miniprogram.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-immunity-miniprogram;
}
location /wechat-behavior-advert {
access_log /var/log/nginx/wechat-behavior-advert.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-behavior-advert;
}
location /wechat-miniprogram-service {
access_log /var/log/nginx/wechat-behavior-advert.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-miniprogram-service;
}
location /wechat-miniprogram-back {
access_log /var/log/nginx/wechat-miniprogram-back.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://wechat-miniprogram-back;
}
location /jz-shoppingmall-operations-management {
#access_log /var/log/nginx/tradestewardfrontend.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://jz-shoppingmall-operations-management;
}
location /backoffice-product-service {
#access_log /var/log/nginx/timedgzip.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
#proxy_pass http://192.168.5.115:9191;
proxy_pass http://192.168.18.177:4003;
}
location /qyh-salerank-message {
#access_log /var/log/nginx/timedgzip.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://192.168.18.247:2502;
}
location /sale-rank {
access_log /var/log/nginx/sale-rank.log timed_combined;
#gzip on;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://192.168.5.51:80;
#root /data/static/sale-rank;
}
}
upstream httpsqs_backend {
server 192.168.5.46:1220;
keepalive 128;
}
#------------------------------------1218端口----------------------------------------
server {
listen 1218;
server_name 192.168.5.46;
#charset koi8-r;
#access_log off;
location / {
allow 192.168.18.0/24;
allow 192.168.1.205;
allow 192.168.5.0/24;
allow 192.168.2.0/24;
allow 192.168.9.0/24;
allow 192.168.5.113;
allow 192.168.1.218;
allow 192.168.1.26;
allow 192.168.2.165;
deny all;
##access_log /var/log/nginx/timed.log timed_combined;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
proxy_http_version 1.1;
proxy_set_header Connection "";
client_body_buffer_size 256k;
proxy_connect_timeout 20;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
#proxy_pass http://192.168.5.46:1220;
proxy_pass http://httpsqs_backend;
#root /usr/share/nginx/html;
#index index.html index.htm;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。