【新增】https证书配置

This commit is contained in:
Valuebai 2021-05-14 18:09:57 +08:00
parent f8ddf992b0
commit ff3a209c03
1 changed files with 24 additions and 0 deletions

View File

@ -288,5 +288,29 @@ http {
# access_log /usr/local/nginx/logs/host.access.404.log log404;
}
# 配置https
server {
listen 443 ssl http2;
server_name www.flowmoney.top;
ssl_certificate /root/.acme.sh/flowmoney.top/flowmoney.top.csr;
ssl_certificate_key /root/.acme.sh/flowmoney.top/flowmoney.top.key;
charset utf-8;
root /usr/share/nginx/html;
# "/" 启用反向代理
# 即打开网址的默认页面http://flowmoney.top/
location / {
# 这里没有设置的话会默认读取nignx自带的展示html配置路径
# /usr/share/nginx/html/ 这个路径也可以上传自己的html文件
}
location /static {
alias /root/Text-Auto-Summarization/static;
index index.html index.htm;
}
location /TextSummarization {
proxy_pass http://text_nlp;
}
}
}