-
Notifications
You must be signed in to change notification settings - Fork 133
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
无法实现nginx的反向代理 #34
Comments
https://pypi.org/project/webssh/ +---------+ http +--------+ ssh +-----------+ Nginx config examplelocation / { |
老哥实现了nginx的反向代理了吗 |
可以先将/web/dist/index.html(需要先用npm把网页资源编译好才会有)中引用的css和js等全部改为相对路径,如href="/static/xxx"改为href="./static/xxx",然后使用nginx配置地址转发,我用的url前缀是/jrohywebssh/,配置如下,实测命令行和文件上传下载都没问题。 `
` |
webssh写的静态文件 引用是用绝对路径。
nginx没法配置反向代理
static 可能在多个平台上被引用,又不能直接在写/static跳转。
go程序没整过,可以重新打包一个,采用相对路径的吗?
python也有一个webssh,也是用websocket传递的,可以配置在nginx后,
但是它没有文件上传功能
The text was updated successfully, but these errors were encountered: