1,nginx配置
server {
listen 443 ssl;
server_name api.xiaochun.cloud;
ssl_certificate "/opt/api.xiaochun/api.xiaochun.pem";
ssl_certificate_key "/opt/api.xiaochun/api.xiaochun.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;