server { listen 443 ssl; server_name huituan1.cn; root html; index index.html index.htm; # 这边用自己的秘钥 ssl_certificate /usr/local/nginx/conf/cert/5650392_huituan1.cn.pem; # 这边用自己秘钥 ssl_certificate_key /usr/local/nginx/conf/cert/5650392_huituan1.cn.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; #表示使用的加密套件的类型。 ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #表示使用的TLS协议的::类型。 ssl_prefer_server_ciphers on; location / { proxy_pass http://127.0.0.1:9001; }}
配置 https
https://segmentfault.com/a/1190000022673232