Skip to content

fix: clean up routes and unused matrix.service - #125

Merged
stephdl merged 3 commits into
mainfrom
fix-destroy-and-matrix-service
Nov 19, 2026
Merged

stephdl merged 3 commits into
mainfrom
fix-destroy-and-matrix-service

Conversation

@stephdl

@stephdl stephdl commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Two small fixes found while checking the README against the code. When the module was removed, only the Synapse and Element web routes were deleted, so the Cinny, matrix2acrobits and push routes stayed in Traefik. At boot, the Element web client started even when it was disabled, because of a leftover matrix.service unit.

The destroy-module step is now a placeholder, like in ns8-roundcubemail: since ns8-traefik 4.1.0, Traefik removes every route of a removed module on its own (NethServer/dev#7058). The matrix.service unit did nothing but pull Synapse and Element at boot, so I removed it. An update step removes its enable link on existing instances.

How to test

  • Install the module with Cinny and nethvoice_auth_url set, then run remove-module --no-preserve matrix1: no matrix1-*.yml file remains under the Traefik configs/ directory.
  • Update an existing instance with Element disabled and reboot the node: element-web.service stays inactive and systemctl --user status matrix.service reports the unit as not found.

The old step deleted only the synapse and element routes, so the
cinny, m2a and push routes stayed behind. Traefik now removes every
route of a removed module on its module-removed event.
The unit did nothing but pull element-web.service at boot, so Element
started even when it was disabled. An update step removes its enable
link on existing instances.
@stephdl stephdl self-assigned this Nov 19, 2026
@stephdl
stephdl merged commit 7ca850f into main Nov 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant