ci-13
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
Havoc420Mac 2025-04-06 11:06:40 +08:00
parent 3a7ac8ccc6
commit 39e22582f7
2 changed files with 3 additions and 4 deletions

View File

@ -72,7 +72,7 @@ jobs:
password: Havocantelope420
port: '22'
script: |
docker pull ghcr.io/catface-cn/catface_backend_go:latest
docker pull ${{ env.REGISTRY }}/${{ secrets.GHCR_USER }}/${{ env.IMAGE_NAME }}:${{ steps.branch_name.outputs.tag }}
docker stop catface_backend_go || true
docker rm catface_backend_go || true
docker run -d --name catface_backend_go -p 20201:20201 ghcr.io/catface-cn/catface_backend_go:latest
docker run -d --name catface_backend_go -p 20201:20201 ${{ env.REGISTRY }}/${{ secrets.GHCR_USER }}/${{ env.IMAGE_NAME }}:${{ steps.branch_name.outputs.tag }}

View File

@ -9,7 +9,7 @@ HttpServer:
TrustProxies: #设置gin可以信任的代理服务器(例如 nginx 前置代理服务器),详情参见文档https://www.yuque.com/xiaofensinixidaouxiang/bkfhct/vmobe7
IsOpen: 1 # 可选值0 或者 1,如果 go 服务是被 nginx 代理,建议该值设置为 1将 nginx 代理及机器的ip添加到 ProxyServerList 列表
ProxyServerList:
- "113.44.68.213" # nginx 代理服务器ip地址
- "101.201.61.151" # nginx 代理服务器ip地址
# - "192.168.10.2"
Token:
@ -22,7 +22,6 @@ Token:
IsCacheToRedis: 0 #用户token是否缓存到redis, 如果已经正确配置了redis,建议设置为1, 开启redis缓存token1=用户token缓存到redis; 0=token只存在于mysql
Redis:
# Host: "113.44.68.213" # 服务器本地调用。 开发时也在本地启动一个。
Host: "127.0.0.1"
Port: 6379
Auth: ""