chaos-jetzt / chaos-jetzt-nixfiles

5 stars 2 forks source link

Deploy MatrixJoinLink #42

Closed e1mo closed 2 months ago

e1mo commented 4 months ago

In the context of jetzt4 this was proposed as a solution to be able to invite to non-public rooms in the chaos.jetzt space via links.

Deployment needs the following:

  1. Create a user using matrix-synapse-register_new_matrix_user:
    • register_new_matrix_user --no-admin -u joinlink_bot -p ... -c <path to config> (must be the binary in the package because it fails to load multiple configs)
  2. Place the credentials in the secrets
  3. Deploy with services.matrix-synapse.settings.password_config.enabled = true;
    • Required because only_for_reauth requires that users did authenticate previously (aka. with enabled = true;) with their password.
  4. Deploy with [...].enabled = "only_for_reauth";
  5. Invite to the required rooms.