-
Notifications
You must be signed in to change notification settings - Fork 136
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不支持ssl连接吗? #42
Comments
502 Bad Gateway的话,是不是你反代没配置好? |
反向代理的配置我感觉是没有问题的 配置如下
|
你好,我遇到了相同的问题,以下是我的反代配置: upstream backend{
server localhost:8080;
}
server
{
server_name subdomain.tld;
charset UTF-8;
access_log /var/log/nginx/uWSGI_access.log;
error_log /var/log/nginx/uWSGI_error.log;
client_max_body_size 75M;
location / {
proxy_pass http://backend;
proxy_redirect off;
proxy_http_version 1.1;
proxy_buffering off;
proxy_connect_timeout 30s;
proxy_read_timeout 600s;
proxy_send_timeout 30s;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /static {
expires 30d;
autoindex on;
add_header Cache-Control private;
alias /home/ubuntu/project/static;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/subdomain.tld/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/subdomain.tld/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server
{
if ($host = subdomain.tld) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name subdomain.tld;
listen 80;
return 404; # managed by Certbot
}
将反向WebSocket 端口 更改成443 之后遇到了与 @a08381 相同的错误 |
I have 0 knowledge of kotlin language. Did a quick search through out the source repository and found this function definition: Seeing we are using the following API when establishing the websocket session: Wondering whether this could be the culprit? |
这么看起来的话,差不多就是我之前提的给ws反向连接添加一个tls_enabled配置就可以了 |
已在新版中添加支持 .如有BUG请reopen |
目前的配置文件如下:
The text was updated successfully, but these errors were encountered: