showdoc部署
作者:
octocat | 来源:发表于
2018-04-19 23:48 被阅读0次
步骤
git clone https://github.com/star7th/showdoc.git
cd showdoc
docker build -t showdoc ./
docker run -d --name showdoc -p 9001:80 showdoc
server {
listen 80;
server_name showdoc.xxx.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_connect_timeout 180;
proxy_read_timeout 180;
proxy_send_timeout 180;
proxy_pass http://127.0.0.1:9001/;
}
}
参考
本文标题:showdoc部署
本文链接:https://www.haomeiwen.com/subject/hetnkftx.html
网友评论