1.证书文件复制到conf目录下
2.nginx.conf文件增加配置
server {
listen 443 ssl;
server_name 网站域名;
ssl_certificate 5438854__yocogas.cn.pem;
ssl_certificate_key 5438854__yocogas.cn.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
root D:\WebSite\testweb;
index index.html index.htm;
}
location ^~/prod-api {
proxy_pass https://127.0.0.1/api;
}
}