Feu d'jais on Nostr: #XMPP and #sysadmin people : I want to run 2 servers on 2 different machine at home. ...
#XMPP and #sysadmin people : I want to run 2 servers on 2 different machine at home.
Those machines have the same public IP address.
Let's name machine 1 "lantern" and machine 2 "zaun".
On lantern, I want to handle domain hello.com.
On zaun, I want to handle domain goodbye.com.
I redirected traffic from my router to lantern. So 5222, 5269, 5280 and 5281 are redirected to lantern.
lantern must know redirect traffic to. If it is for a hello.com domain, it must be handled by lantern XMPP server.
If it is for goodbye.com, it must redirect to XMPP of zaun machine.
How would you do that with Nginx ? I tried something with a stream block, so I listen on 5222 and 5269. I had to change #Prosody configuration to listen on other ports as Nginx couldn't have used them otherwise.
Thanks a lot. I hope I explained clearly 🙏
Retoots help a lot !
Those machines have the same public IP address.
Let's name machine 1 "lantern" and machine 2 "zaun".
On lantern, I want to handle domain hello.com.
On zaun, I want to handle domain goodbye.com.
I redirected traffic from my router to lantern. So 5222, 5269, 5280 and 5281 are redirected to lantern.
lantern must know redirect traffic to. If it is for a hello.com domain, it must be handled by lantern XMPP server.
If it is for goodbye.com, it must redirect to XMPP of zaun machine.
How would you do that with Nginx ? I tried something with a stream block, so I listen on 5222 and 5269. I had to change #Prosody configuration to listen on other ports as Nginx couldn't have used them otherwise.
Thanks a lot. I hope I explained clearly 🙏
Retoots help a lot !