NethServer & Matrix-Synapse

Hi all,

Finally, I completed the first “Cahier” of “Cours NethServer-701” NethServer & Matrix-Synapse.

Matrix-Synapse runs on a LOCAL virtual machine and is accessible from the internet; you can use TOR to test the access. It is perfect for learning and testing.

The main NethServer (connected directly to the internet) is used as a gateway and redirects access and messaging to the LOCAL NethServer which runs Matrix-Synapse.

It’s full of details and explanations so that a newbee can install Matrix-Synapse and its clients: Element and, for the nostalgic, the last stable version (v1.6.8 from 3 jul 2020) of Riot. Even an advanced newbee can learn a few things about NethServer.

I have used nethserver-postgresql12 and rh-python36.

This Cahier is available free of charge at:

The next Cahier will explain the Communities and Rooms.

For conversion to another language, see Cours NethServer-101, 201, etc... Available in many languages

A big thank you to @capote for his support and encouragement.

All suggestions, comments, corrections, etc… are most welcome.

Enjoy and have fun.



Hi all,

Version 0.0.1 is now available.

  • I have secured the mail connection by using port 587.
  • I added a section to force new registrations to read and accept the “Terms of Use”.



. In /var/www/html/.well-known/matrix/server


{ "m.server": "matrix.FQDN:443" }


{ "m.server": "matrix.FQDN" }

Hi all,

Version 0.0.2 is now available.

  • Correction of the typo wpad to wap.
  • Removed port :443 in /var/www/html/.well-known/matrix/server to allow the Federation to see the site and thus allow connections and invitations from other Matrix servers.
  • Added some CNAME: wap & jitsi.
  • Added some aliases on the LOCAL server.
  • Removed the socat paragraph because it is not necessary.
  • Added RequestHeader set X-Forwarded-Proto “https” in /etc/httpd/conf.d/a_synapse.conf.
  • Added Synapse logging level section.
  • Changed display name “homeserver” from FQDN to chat.FQDN.
  • Added index.html file for redirection of requests starting with http[s]:[www].chat.FQDN.
  • Added to retrieve the Global Key from Cloudflare.
  • Complete verification by starting from the beginning with a new NethServer Cahier-03.