antoniomika / sish

HTTP(S)/WS(S)/TCP Tunnels to localhost using only SSH.
https://ssi.sh
MIT License
3.98k stars 303 forks source link

URL string replacement in the returned HTML #289

Closed nczz closed 4 months ago

nczz commented 9 months ago

Hi, thank you for open-sourcing such a great project!

During my usage, I found that if the HTML content outputted by my program contains absolute paths instead of relative paths, the links in the resulting document will become invalid.

I would like to inquire if it would be possible to add a 'URL replacement' parameter and functionality, so that the HTML content can replace the current domain used for browsing?

antoniomika commented 4 months ago

Sorry for the delay.

I think this is out of scope for sish. You can use a reverse proxy such as Caddy or Nginx to do this.

Thanks for reaching out!