Skip to content
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

[BUG] #183

Open
free521521521 opened this issue May 4, 2024 · 2 comments
Open

[BUG] #183

free521521521 opened this issue May 4, 2024 · 2 comments

Comments

@free521521521
Copy link

通过 docker 将vocechat 安装在本地 CentOS 上,本地访问没问题。
当我使用域名+端口的方式从外网访问,页面灰色持续弹出:
getInitialized: Failed to fetch
getLoginConfig: Failed to fetch
getServer: Failed to fetch

Screenshot 2024-05-05 at 03 58 16

我防火墙开了端口,路由器做了转发,都校对过没问题了。且用同网络下另一台 nas 新建 docker 也一样。

@RoeWade
Copy link

RoeWade commented May 5, 2024

用 Chorme 开发者工具(F12)看一下,网络里是否存在不同域的请求,导致了请求失败。

@free521521521
Copy link
Author

发现了在反向代理中:

    if ($scheme = http) {
        return 301 https://$host$request_uri; 

没有提现https的端口,修改成:

    if ($scheme = http) {
        return 301 https://$host:端口$request_uri; 

问题解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants