Matrix: Difference between revisions

Dander (talk | contribs)
m expand on how to join the community on matrix
Dander (talk | contribs)
reword element web; don't show a very insecure configuration by default; remove ad
Line 19: Line 19:
If this isn't a problem for you, you can install them as usual, and upon evaluation, Nix will helpfully guide you on how to [https://nixos.org/manual/nixpkgs/stable/#sec-allow-insecure install insecure packages].  
If this isn't a problem for you, you can install them as usual, and upon evaluation, Nix will helpfully guide you on how to [https://nixos.org/manual/nixpkgs/stable/#sec-allow-insecure install insecure packages].  
=== Web clients ===
=== Web clients ===
 
There is a web version of the client [https://element.io/ Element], <code>element-web</code> on Nixpkgs, which you can use as a regular web application. See [https://nixos.org/nixos/manual/index.html#module-services-matrix-element-web the NixOS manual entry].<syntaxhighlight lang="nixos">
==== element-web ====
There is also a web version of [https://search.nixos.org/packages?query=element-web Element] which can be served using a web server. See [https://nixos.org/nixos/manual/index.html#module-services-matrix-element-web the NixOS manual entry].<syntaxhighlight lang="nixos">
{
{
   services.nginx.enable = true;
   services.nginx.enable = true;
Line 70: Line 68:
     settings.global = {
     settings.global = {
       # allow_registration = true;
       # allow_registration = true;
      # You will need this token when creating your first account.
      # registration_token = "A S3CR3T TOKEN";
       # server_name = yourDomainName;
       # server_name = yourDomainName;
       # port = yourPort;
       # port = yourPort;
       address = "::1";
       address = "::1";
       database_backend = "rocksdb";
       database_backend = "rocksdb";
       # See https://www.metered.ca/tools/openrelay
     
       turn_uris = [
       # See https://docs.conduit.rs/turn.html, and https://github.com/element-hq/synapse/blob/develop/docs/turn-howto.md for more details
        "turn:staticauth.openrelay.metered.ca:80?transport=udp"
       # turn_uris = [
        "turn:staticauth.openrelay.metered.ca:80?transport=tcp"
      #  "turn:your.turn.url?transport=udp"
       ];
      #  "turn:your.turn.url?transport=tcp"
       turn_secret = "openrelayprojectsecret";
       # ];
       # turn_secret = "your secret";
     };
     };
   };
   };