Skip to content

Commit

Permalink
update ssh password to key
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanmomo committed Jan 4, 2024
1 parent 878ed4b commit 220d05e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
with:
host: ${{ vars.DEV_SERVER_HOST }} #服务器ip地址
username: ${{ vars.DEV_SERVER_USERNAME }} #服务器ssh用户名
password: ${{ secrets.DEV_SSH_PRIVATE_KEY }} #服务器ssh密码
key: ${{ secrets.DEV_SSH_PRIVATE_KEY }} #服务器ssh私钥
port: ${{ vars.DEV_PORT }} # 服务器ssh端口(默认22)
script: |
cd /root/Official-website-backend
Expand All @@ -63,7 +63,7 @@ jobs:
with:
host: ${{ vars.PROD_SERVER_HOST }} #服务器ip地址
username: ${{ vars.PROD_SERVER_USERNAME }} #服务器ssh用户名
password: ${{ secrets.PROD_SSH_PRIVATE_KEY }} #服务器ssh密码
key: ${{ secrets.PROD_SSH_PRIVATE_KEY }} #服务器ssh私钥
port: ${{ vars.PROD_PORT }} # 服务器ssh端口(默认22)
script: |
cd /root/Official-website-backend
Expand Down
4 changes: 2 additions & 2 deletions deploy/docker-compose-dependency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ services:
image: nginx:stable-alpine
container_name: nginx
restart: always
networks:
- network
ports:
- 80:80
- 443:443
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- ./nginx.conf:/etc/nginx/nginx.conf
- ./conf:/etc/nginx/conf.d
- ./dist:/usr/share/nginx/html
- ./log:/var/log/nginx

networks:
Expand Down
2 changes: 1 addition & 1 deletion deploy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ http {
server_name _;

location / {
proxy_pass http://localhost:8080;
proxy_pass http://dl-backend:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit 220d05e

Please sign in to comment.