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

客服系统用 http 访问可以, 用https 域名就提示 wss报错 #587

Open
1 task
lovealo opened this issue Jan 13, 2022 · 2 comments
Open
1 task
Assignees
Labels
help-wanted 帮助 v7 Version 7 Related Issue

Comments

@lovealo
Copy link

lovealo commented Jan 13, 2022

用https 域名就提示 wss报错

现在行为

图片

图片

ng配置

server{
listen 80;
listen 443;
server_name kf.qay.com;

    ssl on;
    ssl_certificate   cert/qay.com.pem;
    ssl_certificate_key  cert/qay.com.key;
    ssl_session_timeout 30m;
    ssl_ciphers ECDHE-RSA-AES128-ULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;

    location / {
            # 传递请求头
            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 X-Forwarded-Proto $scheme;
            proxy_pass http://172.18.0.251:8035/;


    }

    # 代理WebScoket
    location /socket.io {
            # WebScoket 支持
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "Upgrade";
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $host;
            proxy_http_version 1.1;
            proxy_pass http://172.18.0.251:8036;
    }

}

预期行为

操作系统

  • Linux()

解决方案

@lovealo lovealo added the bug 软件缺陷 label Jan 13, 2022
@hailiang-wang
Copy link
Member

参考:#414

@hailiang-wang hailiang-wang added help-wanted 帮助 and removed bug 软件缺陷 labels Jan 13, 2022
@hailiang-wang
Copy link
Member

有什么进展吗?

@hailiang-wang hailiang-wang added the v7 Version 7 Related Issue label Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted 帮助 v7 Version 7 Related Issue
Projects
None yet
Development

No branches or pull requests

3 participants