-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
登录时后台时登录失败,Request failed with status code 502 #16
Comments
502 的意思是后端 API 服务没有启动,或者你 nginx 转发IP 写错了。 |
重启就是先停止,在启动。 docker-compose down, 然后再执行 docker-compose up -d |
如果后端部署成功了还是提示 502, 那么就可能是你后端的容器暴露的端口没有开放,在防火墙上开一下 6789 这个端口。 |
我的防火墙是禁用的,大佬还有什么别的方向吗 |
解决这个问题了,需要修改MySQLDns的那个地址,改成自己服务器自己的地址 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GPT-3 or GPT-4
GPT-3.5
操作系统
Linux
Bug 描述 📝
大佬你好,我是在虚拟机上用docker部署的,安装部署过程中没有报错,登录时报错了,前端移动端我都试过了,报同样的错误
重现步骤 🕹
我是在虚拟机上用docker部署的,安装运行过程中都没有报错,登录后台时报错了
你的应用配置信息
Listen = "0.0.0.0:5678"
#ProxyURL = "http://172.22.11.200:7777"
ProxyURL = "http://127.0.0.1:7777"
MysqlDns = "root:12345678@tcp(172.28.173.76:3307)/chatgpt_plus?charset=utf8mb4&parseTime=True&loc=Local"
StaticDir = "./static"
StaticUrl = "http://localhost:8080/static"
[Session]
Driver = "cookie"
SecretKey = "8k0c67y2or1n7kbmn1w1c86ygqscguoktuf9t524jm64ls585z8uibpdssiy128s"
Name = "CHAT_PLUS_SESSION"
Path = "/"
Domain = ""
MaxAge = 86400
Secure = false
HttpOnly = false
SameSite = 2
[Manager]
Username = "admin"
Password = "admin_1234"
[Redis]
Host = "localhost"
Port = 6379
Password = ""
系统版本是centos 7,内核是3.10.0-1062.el7.x86_64,内存为8G,cpu为2核,硬盘容量128G
The text was updated successfully, but these errors were encountered: