美文网首页
notify.conf

notify.conf

作者: zxk175 | 来源:发表于2020-03-28 12:34 被阅读0次
upstream notify {
    server well-notify:8010;
}

server {
    listen 80;
    listen [::]:80;
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name notify.zxk175.com;

    ssl_certificate     /opt/openresty/cert/notify.pem;
    ssl_certificate_key /opt/openresty/cert/notify.key;
    ssl_session_timeout 5m;
    ssl_session_cache shared:SSL:50m;
    ssl_ciphers "ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4:!DH:!DHE";
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
    ssl_stapling on;
    ssl_stapling_verify on;
    ssl_prefer_server_ciphers on;
    resolver 8.8.4.4 8.8.8.8 valid=300s;
    resolver_timeout 10s;

    location / {
        proxy_pass http://notify;
        include /opt/openresty/conf/common/proxy.conf;
        index index.jsp index.htm index.html;
    }

    error_page 404              /404.html;
    error_page 500 502 503 504  /50x.html;
}

server {
    listen 80;
    listen [::]:80;
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name well.zxk175.com;

    ssl_certificate     /opt/openresty/cert/well.pem;
    ssl_certificate_key /opt/openresty/cert/well.key;
    ssl_session_timeout 5m;
    ssl_session_cache shared:SSL:50m;
    ssl_ciphers "ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4:!DH:!DHE";
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
    ssl_stapling on;
    ssl_stapling_verify on;
    ssl_prefer_server_ciphers on;
    resolver 8.8.4.4 8.8.8.8 valid=300s;
    resolver_timeout 10s;

    location / {
        proxy_pass https://notify.zxk175.com/;

        proxy_set_header Host notify.zxk175.com;
        include /opt/openresty/conf/common/proxy-site.conf;
    }

    error_page 404              /404.html;
    error_page 500 502 503 504  /50x.html;
}

server {
    listen 80;
    listen [::]:80;
    server_name bd.zxk175.com;

    location / {
        proxy_pass https://www.baidu.com/;

        proxy_set_header Host www.baidu.com;
        include /opt/openresty/conf/common/proxy-site.conf;
    }

    error_page 404              /404.html;
    error_page 500 502 503 504  /50x.html;
}

相关文章

网友评论

      本文标题:notify.conf

      本文链接:https://www.haomeiwen.com/subject/krvjuhtx.html