brtl
November 6, 2019, 5:21pm
1
I’m trying to set up a federation test using DNS.
Can one set up federation between two rocketchat servers on the same domain
If yes what would the SRV and TXT records look like?
1 Like
I think it is not currently possible.
Actually I updated the doc, adn read the code, and yes I’m pretty sure you can:)
Here is my PR for the doc:
# Federation
## Introduction
Rocket.Chat Federation allows servers to communicate with each other, with no limits to the number of servers connected.
We use industry standards, like DNS records, to keep the process as seamless as possible, and seek the most hassle-free communication between servers.
When enabling federation on your server, your server becomes part of the Rocket.Chat Federated Network, which allows it to find and exchange messages and files with other Federation-enabled Rocket.Chat servers.
## Features
- **Current**
- Invite users from remote servers
- Direct chats between servers
- Public, private and broadcast rooms with remote users from any number of servers
- Read receipts, notifications and alerts distributed to remote servers
- Mute/Unmute remote users
- Share files among servers
- **Confirmed Next Features**
This file has been truncated. show original
Hi. Did you managed to it? Or two servers in a single domain can not be federated?
I was checking in to see if you were able to get this working? I’m attempting the same thing but am having issues. I have added the SRV and TXT records to GoDaddy DNS.
I’m not sure if it’s a settings issue or related to one of these issues with the discovery service:
Just revisiting this again as I am getting pressure to have the federation functionality working.
Previously I managed to get one of my RocketChat servers testing successfully publishing details in DNS but I couldn’t get an almost identical server to successfully test the DNS settings.
I constantly get the following in the log:
I20200304-11:26:53.154(0) server.js:204 Federation ➔ dns.error { Error: failed [503] Service Unavailable at Object.exports.makeErrorByStatus (packages/http.js:176:…
opened 05:32AM - 20 Mar 20 UTC
closed 12:20AM - 17 Sep 20 UTC
In trying to unsuccessfully setup federation I noticed the error was consistentl… y "server.js:204 Federation ➔ dns.error Error: failed [503] Service Unavailable" regardless of setting changes. On research found out about the manual test using the api and got the same 503 response from the hub server, regardless of URL. Service down deliberately?
TXT Record ( Does GoDaddy Require the Public key to be split ? )
rocketchat-public-key.subdomain1.mydomain.app -----BEGIN PUBLIC KEY----- REDACTED -----END PUBLIC KEY-----
SRV Record
Service: _rocketchat
Protocol: _https
Name: subdomain1.mydomain.app
Target: subdomain1.mydomain.app
Priority: 1
Weight: 1
Port: 443
The DNS setup for sub domain 2 is the same except replacing subdomain1 with subdomain2. Does anyone have any suggestions ?
brtl
April 22, 2021, 3:39pm
6
Only one year late with my reply
No, I never got this working and gave up on federation.