ekzhang / sshx

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

How to self host the sshx server? #57

Closed edizeqiri closed 10 months ago

edizeqiri commented 10 months 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 10 months 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 10 months 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.