【新增】https证书配置
This commit is contained in:
parent
f8ddf992b0
commit
ff3a209c03
24
nginx.conf
24
nginx.conf
|
@ -288,5 +288,29 @@ http {
|
||||||
# access_log /usr/local/nginx/logs/host.access.404.log log404;
|
# 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue