1 Star 0 Fork 0

jack2zhang/wgmfops724

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
default.conf 71.20 KB
一键复制 编辑 原始数据 按行查看 历史
jack2zhang 提交于 2022-11-24 16:26 . nginx.conf.46
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858
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;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jack2zhang/wgmfops724.git
git@gitee.com:jack2zhang/wgmfops724.git
jack2zhang
wgmfops724
wgmfops724
master

搜索帮助