nginx配置ssl

在nginx.conf中的http节点内,添加如下参数,具体参数还请参考你的证书提供商


server {
       listen       443;
       server_name  domain;
       ssl                  on;
       ssl_certificate      domain.crt;
       ssl_certificate_key      domain.key;
       ssl_session_timeout  5m;
       ssl_protocols  SSLv3 TLSv1;
       ssl_ciphers  HIGH:!ADH:!EXPORT56:RC4+RSA:+MEDIUM;
       ssl_prefer_server_ciphers   on;
       location / {
           root   html;
           index  index.html index.htm;
       }
}

你可能感兴趣的:(nginx,centos,ssl,docker)