upstream his_lb { #server 192.168.0.84:30026; #server 101.133.235.176:31999; server 10.10.0.229:31180 weight=1 max_fails=1 fail_timeout=180s; server 10.10.0.229:31080 weight=1 max_fails=1 fail_timeout=180s; server 10.10.0.187:31180 weight=1 max_fails=1 fail_timeout=180s; server 10.10.0.187:31080 weight=1 max_fails=1 fail_timeout=180s; server 10.10.0.186:31180 weight=1 max_fails=1 fail_timeout=180s; server 10.10.0.186:31080 weight=1 max_fails=1 fail_timeout=180s; server 10.20.0.59:31180 weight=1 max_fails=1 fail_timeout=180s; server 10.20.0.59:31080 weight=1 max_fails=1 fail_timeout=180s; server 10.20.0.60:31180 weight=1 max_fails=1 fail_timeout=180s; server 10.20.0.60:31080 weight=1 max_fails=1 fail_timeout=180s; #healthcheck interval=5s; #max_fails=3 fail_timeout=60s; } server { listen 80; listen 443 ssl; #server_name testsocket.; server_name infocent.xx.com; # 前端打包好的dist目录文件 ssl_certificate /etc/nginx/cert/infocentpem; ssl_certificate_key /etc/nginx/cert/infocent.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1.1 TLSv1.2;# ssl_prefer_server_ciphers on; location / { proxy_pass http://his_lb; proxy_http_version 1.1; proxy_connect_timeout 400s; proxy_read_timeout 300s; proxy_send_timeout 120s; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }