#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
client_max_body_size 100M;
#配置请求体缓存区大小, 不配的话)
client_body_buffer_size 100M;
#(设置客户端请求体最大值)
fastcgi_intercept_errors on;
keepalive_timeout 60;
#企业号停用静态页面
server {
#监听端口
listen 21000;
#监听域名或ip
server_name wfy.jsfy.gov.cn;
location /wecourt-enterprise/ {
alias /data/index/;
}
}
server {
#监听端口
listen 21001;
#监听域名或ip
server_name localhost;
#wecourt-outer-parties服务
location /wecourt-outer-parties {
proxy_pass http://wecourtOuterParties;
}
location /wecourt-gateway/ {
proxy_pass http://47.97.159.225:19093/;
}
location /wecourt-enterprise/ {
alias /data/index/;
}
}
server {
#监听端口
listen 21004;
#监听域名或ip
server_name wfyfgxcx.jsfy.gov.cn;
#静态页面查看pdf
location /build/ {
alias /opt/miniapp/staticResource/build/;
}
location /pdfview/ {
alias /opt/miniapp/staticResource/pdfview/;
}
location /cmaps/ {
alias /opt/miniapp/staticResource/cmaps/;
}
location /images/ {
alias /opt/miniapp/staticResource/images/;
}
#政务微信公文浏览静态页面
location /zwvx/readoc {
alias /opt/miniapp/wecourt-outer-zwvx/zwvx/readoc/;
}
#政务微信消息阅读静态页面
location /zwvx/readmsg {
alias /opt/miniapp/wecourt-outer-zwvx/zwvx/readmsg/;
}
#wecourt-outer-judge集群服务
location /wecourt-outer-judge {
proxy_read_timeout 60;
proxy_pass http://wecourtOuterJudge;
}
#0930oagw测试
location /oagw {
proxy_read_timeout 60;
proxy_pass http://oagw;
}
#wecourt-outer-govwechat-api集群服务
location /govwechat {
proxy_pass http://wecourtOuterGovwechatApi;
}
location /wecourt-outer-filesync-oss2ftp/ {
proxy_pass http://116.62.135.147:11001/wecourt-outer-filesync-oss2ftp/;
}
#wecourt-currency-service集群服务
location /currency {
proxy_pass http://wecourtCurrencyService;
}
#微执行
location /case/{
proxy_pass http://222.190.111.146:15000/channel/Rm2wKNoleG/case/;
}
#dbtoss
location /dbtoss/{
proxy_pass http://222.190.111.146:15000/channel/Rm2wKNoleG/dbtoss/;
}
#0930oagw测试
location /dbToss/{
proxy_pass http://222.190.111.146:15000/channel/Rm2wKNoleG/dbToss/;
}
}
#wecourt-outer-judge集群服务
upstream wecourtOuterJudge {
server 116.62.135.147:21003;
server 47.97.213.166:21003;
}
#0930oagw测试
upstream oagw {
server 116.62.135.147:21003;
server 47.97.213.166:21003;
}
#wecourt-outer-parties集群服务
upstream wecourtOuterParties{
server 47.98.40.212:21002;
server 47.98.37.232:21002;
}
#wecourt-outer-govwechat-api集群服务
upstream wecourtOuterGovwechatApi{
server 47.97.159.225:18091;
server 47.98.40.212:18091;
}
#wecourt-currency-service集群服务
upstream wecourtCurrencyService{
server 47.97.159.225:18092;
server 47.98.40.212:18092;
}
}