vocechat-web icon indicating copy to clipboard operation
vocechat-web copied to clipboard

[BUG]

Open free521521521 opened this issue 9 months ago • 1 comments

通过 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 也一样。

free521521521 avatar May 04 '24 20:05 free521521521

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

RoeWade avatar May 05 '24 04:05 RoeWade

发现了在反向代理中:

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

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

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

问题解决

free521521521 avatar May 31 '24 17:05 free521521521