This commit is contained in:
		
							parent
							
								
									3a7ac8ccc6
								
							
						
					
					
						commit
						39e22582f7
					
				@ -72,7 +72,7 @@ jobs:
 | 
				
			|||||||
          password: Havocantelope420
 | 
					          password: Havocantelope420
 | 
				
			||||||
          port: '22'
 | 
					          port: '22'
 | 
				
			||||||
          script: |
 | 
					          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 stop catface_backend_go || true
 | 
				
			||||||
            docker rm 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 }}
 | 
				
			||||||
@ -9,7 +9,7 @@ HttpServer:
 | 
				
			|||||||
  TrustProxies:                    #设置gin可以信任的代理服务器(例如 nginx 前置代理服务器),详情参见文档:https://www.yuque.com/xiaofensinixidaouxiang/bkfhct/vmobe7
 | 
					  TrustProxies:                    #设置gin可以信任的代理服务器(例如 nginx 前置代理服务器),详情参见文档:https://www.yuque.com/xiaofensinixidaouxiang/bkfhct/vmobe7
 | 
				
			||||||
    IsOpen: 1                      # 可选值(0 或者 1),如果 go 服务是被 nginx 代理,建议该值设置为 1,将 nginx 代理及机器的ip添加到 ProxyServerList 列表
 | 
					    IsOpen: 1                      # 可选值(0 或者 1),如果 go 服务是被 nginx 代理,建议该值设置为 1,将 nginx 代理及机器的ip添加到 ProxyServerList 列表
 | 
				
			||||||
    ProxyServerList:
 | 
					    ProxyServerList:
 | 
				
			||||||
      - "113.44.68.213"             # nginx 代理服务器ip地址
 | 
					      - "101.201.61.151"             # nginx 代理服务器ip地址
 | 
				
			||||||
      # - "192.168.10.2"
 | 
					      # - "192.168.10.2"
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
Token:
 | 
					Token:
 | 
				
			||||||
@ -22,7 +22,6 @@ Token:
 | 
				
			|||||||
  IsCacheToRedis: 0                #用户token是否缓存到redis, 如果已经正确配置了redis,建议设置为1, 开启redis缓存token,(1=用户token缓存到redis; 0=token只存在于mysql)
 | 
					  IsCacheToRedis: 0                #用户token是否缓存到redis, 如果已经正确配置了redis,建议设置为1, 开启redis缓存token,(1=用户token缓存到redis; 0=token只存在于mysql)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Redis:
 | 
					Redis:
 | 
				
			||||||
  # Host: "113.44.68.213"  # 服务器本地调用。 开发时也在本地启动一个。
 | 
					 | 
				
			||||||
  Host: "127.0.0.1"
 | 
					  Host: "127.0.0.1"
 | 
				
			||||||
  Port: 6379
 | 
					  Port: 6379
 | 
				
			||||||
  Auth: ""
 | 
					  Auth: ""
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user