huashengdun / webssh

:seedling: Web based ssh client
https://webssh.huashengdun.org/
MIT License
4.57k stars 1.3k forks source link

RFE: Support a configurable path/use relative paths #92

Closed macau23 closed 5 years ago

macau23 commented 5 years ago

I often have a reverse proxy https://proxy.example.com/appname/ which makes the app less discoverable, and allows use of a single ssl cert. I can't get this working with webssh, but other projects (like syncthing) work around this with relative paths to assets rather than absolute paths.

Maybe the paths could be configurable or relative to the assets (/ws/, etc.)

huashengdun commented 5 years ago

This may help you https://github.com/huashengdun/webssh/issues/88

macau23 commented 5 years ago

I added a slash at the end of proxy_pass and the X-Forwarded* headers and now it works. Thank you.