www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
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";
    }

}

 

posted on 2024-07-09 15:07  秦瑞It行程实录  阅读(8)  评论(0编辑  收藏  举报
www.cnblogs.com/ruiyqinrui