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 !
Published at
2023-12-21 18:42:55Event JSON
{
"id": "164b703751e2ceb3cb5acadb4a691b4f500e464a28e40cbea05b68ba6f8805f0",
"pubkey": "4338b3d446f7f0cd8259bafe13aabc91a0837785dc1a240ae25c268ba8c3e8d3",
"created_at": 1703184175,
"kind": 1,
"tags": [
[
"t",
"xmpp"
],
[
"t",
"sysadmin"
],
[
"t",
"prosody"
],
[
"proxy",
"https://eldritch.cafe/users/feudjais/statuses/111619878110225756",
"activitypub"
]
],
"content": "#XMPP and #sysadmin people : I want to run 2 servers on 2 different machine at home.\n\nThose machines have the same public IP address.\n\nLet's name machine 1 \"lantern\" and machine 2 \"zaun\".\n\nOn lantern, I want to handle domain hello.com.\nOn zaun, I want to handle domain goodbye.com.\n\nI redirected traffic from my router to lantern. So 5222, 5269, 5280 and 5281 are redirected to lantern.\n\nlantern must know redirect traffic to. If it is for a hello.com domain, it must be handled by lantern XMPP server.\nIf it is for goodbye.com, it must redirect to XMPP of zaun machine.\n\nHow 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.\n\nThanks a lot. I hope I explained clearly 🙏 \n\nRetoots help a lot !",
"sig": "8906a2605cf99963dd1077c1a2c253de87a3437658cc63d0579fb9248fbb7f23fff2bd4d429505795a86fa95a1c6afee288fa98ee403c4dbcd32501f3ee587cb"
}