diff --git a/nixos/modules/services/misc/matrix-synapse.xml b/nixos/modules/services/misc/matrix-synapse.xml index 2f2ac27eeb9d..fbfa838b168b 100644 --- a/nixos/modules/services/misc/matrix-synapse.xml +++ b/nixos/modules/services/misc/matrix-synapse.xml @@ -14,9 +14,9 @@ This chapter will show you how to set up your own, self-hosted Matrix homeserver using the Synapse reference homeserver, and how to serve your own - copy of the Riot web client. See the + copy of the Element web client. See the Try - Matrix Now! overview page for links to Riot Apps for Android and iOS, + Matrix Now! overview page for links to Element Apps for Android and iOS, desktop clients, as well as bridges to other networks and other projects around Matrix. @@ -84,7 +84,7 @@ in { "m.homeserver" = { "base_url" = "https://${fqdn}"; }; "m.identity_server" = { "base_url" = "https://vector.im"; }; }; - # ACAO required to allow riot-web on any URL to request this json file + # ACAO required to allow element-web on any URL to request this json file in '' add_header Content-Type application/json; add_header Access-Control-Allow-Origin *; @@ -98,7 +98,7 @@ in { forceSSL = true; # Or do a redirect instead of the 404, or whatever is appropriate for you. - # But do not put a Matrix Web client here! See the Riot Web section below. + # But do not put a Matrix Web client here! See the Element web section below. locations."/".extraConfig = '' return 404; ''; @@ -171,17 +171,19 @@ Success! option until a better solution for NixOS is in place. -
- Riot Web Client +
+ Element (formerly known as Riot) Web Client - Riot Web is + Element Web is the reference web client for Matrix and developed by the core team at - matrix.org. The following snippet can be optionally added to the code before + matrix.org. Element was formerly known as Riot.im, see the + Element introductory blog post + for more information. The following snippet can be optionally added to the code before to complete the synapse installation with a web client served at - https://riot.myhostname.example.org and - https://riot.example.org. Alternatively, you can use the hosted - copy at https://riot.im/app, + https://element.myhostname.example.org and + https://element.example.org. Alternatively, you can use the hosted + copy at https://app.element.io/, or use other web clients or native client applications. Due to the /.well-known urls set up done above, many clients should fill in the required connection details automatically when you enter your @@ -191,14 +193,14 @@ Success! featureset. { - services.nginx.virtualHosts."riot.${fqdn}" = { + services.nginx.virtualHosts."element.${fqdn}" = { enableACME = true; forceSSL = true; serverAliases = [ - "riot.${config.networking.domain}" + "element.${config.networking.domain}" ]; - root = pkgs.riot-web.override { + root = pkgs.element-web.override { conf = { default_server_config."m.homeserver" = { "base_url" = "${config.networking.domain}"; @@ -212,13 +214,13 @@ Success! - Note that the Riot developers do not recommend running Riot and your Matrix + Note that the Element developers do not recommend running Element and your Matrix homeserver on the same fully-qualified domain name for security reasons. In the example, this means that you should not reuse the - myhostname.example.org virtualHost to also serve Riot, + myhostname.example.org virtualHost to also serve Element, but instead serve it on a different subdomain, like - riot.example.org in the example. See the - Riot + element.example.org in the example. See the + Element Important Security Notes for more information on this subject.