Nginx configuration to add server
# https配置腾讯云oss
server {
listen 443 ssl;
server_name img.heliuchu.cn;
root html;
index index.html index.htm;
#需要将cert-file-name.pem替换成已上传的证书文件的名称。
ssl_certificate /www/wwwroot/hlc-blog/blog-api/key/img.heliuchu.cn_bundle.crt;
#需要将cert-file-name.key替换已上传的证书密钥文件的名称。
ssl_certificate_key /www/wwwroot/hlc-blog/blog-api/key/img.heliuchu.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;
ssl_prefer_server_ciphers on;
location / {
proxy_pass https://200524blog-1258365399.cos.ap-guangzhou.myqcloud.com;
}
}