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

不支持npm反向代理? #28

Closed
sse8-dev opened this issue Apr 4, 2024 · 5 comments
Closed

不支持npm反向代理? #28

sse8-dev opened this issue Apr 4, 2024 · 5 comments

Comments

@sse8-dev
Copy link

sse8-dev commented Apr 4, 2024

docker方式安装,用http方式的IP+端口,访问没有问题,npm域名反向ssl证书代理无法连接,提示:“连接服务器失败,请点击工具栏上的“连接”图标重试”,但是web界面的主题内容已经显示出来了,不知道是什么原因,详见附件截图。
捕获

@sse8-dev
Copy link
Author

sse8-dev commented Apr 4, 2024

配置文件设置forceWss为true没有作用;
尝试手动设置自签名证书,npm设置https代理,提示服务器可以连接上了。
捕获

@TransparentLC
Copy link
Owner

forceWss 这个选项已经取消了(#24)不知道你用的是这里的 Dockerfile 还是 Docker Hub 上的版本?如果是前者的话修改它不会有影响,会根据访问前端页面使用的是 http 还是 https 来选择使用 ws 或 wss。

因为你用的是自签名证书,我觉得也许是因为默认不被信任所以建立 wss 连接的时候被浏览器掐掉了。如果可以的话请附上
浏览器开发者工具“网络”部分的截图。

@sse8-dev
Copy link
Author

sse8-dev commented Apr 5, 2024

多谢解答。用自签名证书正常了,用http方式不正常。我用的是docker hub上的镜像。尝试用本站Dockerfile,出现如下提示:
捕获

@TransparentLC
Copy link
Owner

我试了一下,Dockerfile 是可以正常使用的。

@sse8-dev
Copy link
Author

sse8-dev commented Apr 6, 2024

好的,多谢。先继续使用自签名证书。后面有机会用ubuntu测试一下。

@sse8-dev sse8-dev closed this as completed Apr 6, 2024
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

2 participants