ekzhang / sshx

Fast, collaborative live terminal sharing over the web
https://sshx.io
MIT License
5.99k stars 188 forks source link

How to self host the sshx server? #57

Closed edizeqiri closed 1 year ago

edizeqiri commented 1 year ago

Hi, I am currently trying to run the server locally.

What I did

docker build -t sshx .
docker run -p 8051:8051 sshx:latest

image

image

Issue is not only for WSL. Am I missing a step?

edizeqiri commented 1 year ago

I found it out.

if using nginx then or nginx proxy manager add this:

` location /sshx.SshxService/Channel { grpc_pass grpc://192.168.1.132:8051; }

Btw @ekzhang, can I make a pull request and add the documentation for selfhosting this with docker and nginx? I think this would safe a lot headache for someone else trying to selfhost it. `

ekzhang commented 1 year ago

192.168.0.0/16 is a local IP range

You're welcome to make PRs for the guide but I won't accept them unless the documentation is correct, safe, well-written, and considers all cases.

If you're not an expert on Nginx configuration and understand why grpc_pass is necessary I wouldn't recommend it.