-
Notifications
You must be signed in to change notification settings - Fork 3
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
websocket隔一段时间断开 #3
Comments
保活间隔时间设为0试试? |
不行,不到一分钟就自动断开了 |
可以发一下nginx配置吗,我试试 |
server { |
upstream electerm {
server 127.0.0.1:8880;
}
server {
listen 80;
server_name xxxxx;
location / {
proxy_pass http://electerm;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400; # 1 day timeout
proxy_send_timeout 86400; # 1 day timeout
}
} 试试这样看看可以不? |
应该是这个问题,参考上面的设置
|
还是1分钟左右ssh就断了,我换个服务器试试,那个服务器是v6机器,还用frp转发到内网服务了 |
我换了一台有ipv4的公网机器,用docker启动,不用nginx反代,ip端口访问,连上ssh后,什么都不操作,大概等5分钟也会自动断开 |
我试了,几个小时也没有断,也许有网络波动? |
Can you try this; Change this line to I had same issue, it seems SERVER value should be; |
求一个搭建教程。。。官方的看不懂 |
nginx反代docker部署的electerm,ssh连接上服务器后,过一会就自动断了,windows客户端版本没有这个问题,请问是缺什么配置吗?
The text was updated successfully, but these errors were encountered: