Keep registration closed but generate invite and reset links for matrix server users.
  • Rust 94.5%
  • Jinja 5.1%
  • Dockerfile 0.4%
Find a file
2026-07-03 16:04:54 -07:00
assets invite and reset portal ansible role 2026-06-22 14:53:51 -07:00
defaults invite and reset portal ansible role 2026-06-22 14:53:51 -07:00
meta invite and reset portal ansible role 2026-06-22 14:53:51 -07:00
src fix ios element link 2026-07-03 16:04:54 -07:00
tasks uninstaller 2026-06-22 17:22:56 -07:00
templates invite and reset portal ansible role 2026-06-22 14:53:51 -07:00
.dockerignore invite and reset portal ansible role 2026-06-22 14:53:51 -07:00
.gitignore invite and reset portal ansible role 2026-06-22 14:53:51 -07:00
Cargo.lock invite and reset portal ansible role 2026-06-22 14:53:51 -07:00
Cargo.toml invite and reset portal ansible role 2026-06-22 14:53:51 -07:00
Dockerfile invite and reset portal ansible role 2026-06-22 14:53:51 -07:00
README.md readme 2026-06-23 13:04:47 -07:00
rust-toolchain.toml invite and reset portal ansible role 2026-06-22 14:53:51 -07:00

Matrix Invite Portal

Standalone Ansible role for the Matrix Invite Portal, a closed-registration onboarding portal for Matrix homeservers.

This repository is intended to be consumed as an external role by the main playbook, where it is installed as galaxy/matrix-invite-portal.

Usage

In the main playbook, install roles with:

just roles

The playbook's requirements.yml installs this role from:

- src: git+https://codeberg.org/microchipster/matrix-invite-portal.git
  version: main
  name: matrix-invite-portal

You can also install it directly with ansible-galaxy:

ansible-galaxy role install git+https://codeberg.org/microchipster/matrix-invite-portal.git -p roles/galaxy/ --force

Build source pinning

The role builds its Docker image from this repository by default.

  • matrix_invite_portal_container_image_self_build: true
  • matrix_invite_portal_container_image_self_build_repo_version: main

If you need to pin the build to a tag, branch, or commit SHA, override matrix_invite_portal_container_image_self_build_repo_version.

Key variables

The role is opt-in and expects a few explicit values in the consuming playbook:

  • matrix_invite_portal_enabled
  • matrix_invite_portal_admin_token
  • matrix_synapse_registration_shared_secret
  • matrix_invite_portal_synapse_admin_access_token for password reset flows that need Synapse admin API access

Refer to defaults/main.yml for the full list of supported variables.

Repository layout

  • tasks/ contains the Ansible install and uninstall logic.
  • templates/ contains systemd and environment templates used by the playbook.
  • src/ contains the Rust application for the invite portal.
  • assets/ contains bundled UI assets used by the application.