diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index fc8026b..2b27814 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -42,8 +42,4 @@ jobs: password: ${{ secrets.SERVER_PWD }} # 服务器密码;需要去仓库的 settings/secrets/actions 去创建 port: ${{ secrets.SERVER_PORT }} # 服务器端口,默认22;需要去仓库的 settings/secrets/actions 去创建 script: | # 重启更新镜像 - docker rmi registry.cn-shanghai.aliyuncs.com/songxingguo/resume:latest -f - docker stop resume - docker rm resume - docker pull registry.cn-shanghai.aliyuncs.com/songxingguo/resume:latest - docker run -dp 8081:80 --add-host resume.songxingguo.com:172.17.0.2 --restart=always --name resume registry.cn-shanghai.aliyuncs.com/songxingguo/resume:latest + cd /root/deploy && ./deploy.sh diff --git a/nginx/web.conf b/nginx/web.conf deleted file mode 100644 index 3f0e125..0000000 --- a/nginx/web.conf +++ /dev/null @@ -1,12 +0,0 @@ -server { - listen 80; - server_name resume.songxingguo.com; - - location / { - proxy_pass http://129.204.188.48:8081/; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header REMOTE-HOST $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } -} \ No newline at end of file