ssbc / go-ssb-room

Room server implemented in Go
MIT License
185 stars 36 forks source link

how to change a room port? #292

Open ahdinosaur opened 2 years ago

ahdinosaur commented 2 years ago

hi, i'm keen to bring my room server https://butt.nz home, but when i do that i want to use a different port for the ssb connections (what is usually port 8008), since i'm limited to 1 ip address (when usually in the cloud each server has their own ip address).

i know how to do this from the server's perspective, but how would peers find the new server port?

i know for a pub, you can publish new pub announcement messages, but how does this work for rooms? do i need to send everyone a new invite so they store the new room address? would that even work?

cheers! :peach:

ahdinosaur commented 2 years ago

hmm, what if i private message all the members and tell them to redeem this new "invite":

net:butt.nz:8008~shs:S27Knie0xR53wW06B9XTJ0Vbc/pgSWp4ws39n7zViCU=:SSB+Room+PSK3TLYC2T86EHQCUHBUHASCASE18JBV24= 

where that invite has the new port. would that work?

staltz commented 2 years ago

I think there is an http endpoint that gives you the multiserver address, which includes the port of course. I'm on mobile now so I can't confirm this 100% but I believe the endpoint is there. If it's not, we should add it.

The room shouldn't send private messages because it has no feed, no replication algorithms (upload or download), etc.