vocechat-web
vocechat-web copied to clipboard
[BUG]
通过 docker 将vocechat 安装在本地 CentOS 上,本地访问没问题。 当我使用域名+端口的方式从外网访问,页面灰色持续弹出: getInitialized: Failed to fetch getLoginConfig: Failed to fetch getServer: Failed to fetch
我防火墙开了端口,路由器做了转发,都校对过没问题了。且用同网络下另一台 nas 新建 docker 也一样。
用 Chorme 开发者工具(F12)看一下,网络里是否存在不同域的请求,导致了请求失败。
发现了在反向代理中:
if ($scheme = http) {
return 301 https://$host$request_uri;
没有提现https的端口,修改成:
if ($scheme = http) {
return 301 https://$host:端口$request_uri;
问题解决