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

通过docker部署,问了问题后,点新主题,下一次问题必定报错,按F5刷新或者一键重置页面,都不会出现这个问题。 大佬的线上版本不会有这个问题,一键部署也没有这个问题,不确定我的配置问题出在哪 #75

Closed
arvin915 opened this issue May 25, 2023 · 8 comments

Comments

@arvin915
Copy link

No description provided.

@arvin915 arvin915 changed the title 问了问题后,点新主题,下一次问题必定报错,按F5刷新或者一键重置页面,都不会出现这个问题。 大佬的线上版本不会有这个问题,一键部署也没有这个问题,不确定我的配置问题出在哪 通过docker部署,问了问题后,点新主题,下一次问题必定报错,按F5刷新或者一键重置页面,都不会出现这个问题。 大佬的线上版本不会有这个问题,一键部署也没有这个问题,不确定我的配置问题出在哪 May 25, 2023
@arvin915
Copy link
Author

企业微信截图_16850314519199

@adams549659584
Copy link
Owner

这样看不出什么,你的配置可以参考下 #71

@Stiggiee
Copy link

同样的问题,点击新主题后,必须要重置才能用,不然就报错

@arvin915
Copy link
Author

arvin915 commented May 26, 2023

location /sydney/ChatHub {
    proxy_pass http://127.0.0.1:8080;
    proxy_http_version                 1.1;
#    proxy_set_header Upgrade           $http_upgrade;
    if ($http_upgrade != "websocket") {
    set $http_connection "";
}
#    proxy_set_header Connection        $connection_upgrade;
    proxy_set_header Host              $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Host  $host;
    proxy_set_header X-Forwarded-Port  $server_port;
}

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.

    proxy_pass http://127.0.0.1:8080;
    proxy_set_header Host              $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Host  $host;
    proxy_set_header X-Forwarded-Port  $server_port;








        }

@arvin915
Copy link
Author

arvin915 commented May 26, 2023

#    proxy_set_header Upgrade           `$http_upgrade;`
#    proxy_set_header Connection        $connection_upgrade;

# 现有nginx配置不了这个,就用如下替换了
    if ($http_upgrade != "websocket") {
    set $http_connection "";
}

@adams549659584
Copy link
Owner

我的nginx 也就那些配置,看不出啥问题

@arvin915
Copy link
Author

我的nginx 也就那些配置,看不出啥问题

尝试用了apache做反向代理,一样的,我测试了一下,出现问题时,网络也没有请求,是不是在提交问题前前端有什么逻辑判断?

@arvin915
Copy link
Author

同样的问题,点击新主题后,必须要重置才能用,不然就报错

突发奇想,开无痕模式后,没问题了,你可以尝试下

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

3 participants