更新nginx配置

This commit is contained in:
whyour 2021-03-18 14:32:36 +08:00
parent c0bb6cddf4
commit f2f4bfbefd
2 changed files with 6 additions and 2 deletions

View File

@ -33,7 +33,11 @@ then
cp -fv ${JD_DIR}/docker/front.conf /etc/nginx/conf.d/front.conf
fi
echo -e "======================2. 更新源代码========================\n"
echo -e "======================2. 启动nginx========================\n"
nginx -c /etc/nginx/nginx.conf
echo
echo -e "======================3. 更新源代码========================\n"
bash ${JD_DIR}/git_pull.sh
echo

View File

@ -7,7 +7,7 @@ server {
root /jd/dist;
ssl_session_timeout 5m;
location /deploy {
location /api {
proxy_pass http://api;
}