-
Notifications
You must be signed in to change notification settings - Fork 58
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
域名应该怎么填写啊,我填公网IP会报错 #36
Comments
填 |
好的,谢谢 |
访问的时候,使用你服务器的公网IP。如果服务器还有安全策略的话,记得放行这个6001这个端口(TCP),比如阿里云的ECS安全组。然后服务器自身的防火墙也要放开这个端口,否则访问不了。 |
大佬,防火墙已经开了,是因为调后端接口时,直接请求的0.0.0.0,而不是我的公网IP |
实际上阿里云、腾讯云给你的公网IP并不是你服务器上某个网卡的真实IP,你的服务器应该只有一个内网IP,每次你访问公网IP的数据会转发到你的服务器的内网IP上,所以你直接监听公网地址是无效的。 项目配置
前端界面有一个设置 API 服务地址的地方,填上你的公网IP |
API试试这个分支:https://github.com/zaxtyson/Anime-API/tree/fix-engines 配置把 host 改成 0.0.0.0 应该就行了 |
好的,谢谢大佬 |
The text was updated successfully, but these errors were encountered: