Repository navigation
fix: clean up routes and unused matrix.service - #125
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
nethvoice_auth_urlset, then runremove-module --no-preserve matrix1: nomatrix1-*.ymlfile remains under the Traefikconfigs/directory.element-web.servicestays inactive andsystemctl --user status matrix.servicereports the unit as not found.