nginx 配置

复制代码
events
{
    use epoll;
    worker_connections 65535;
}
http
{
    server {
        listen 80;
        server_name xxx.com;
        return 301 https://xxx.com;
    }
    server
        {
            listen 443;
            server_name xxx.com;
            ssl on;
            ssl_certificate /etc/letsencrypt/live/0src.com/fullchain.pem;
            ssl_certificate_key  /etc/letsencrypt/live/0src.com/privkey.pem;
            ssl_dhparam /etc/ssl/certs/dhparams.pem;
            ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
            ssl_ciphers HIGH:!aNULL:!MD5;
            charset utf-8;
        location / {
            proxy_pass http://127.0.0.1:8197;
        }
    }
}
复制代码

 

posted @   破冰Lab-Cookun  阅读(135)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示