forked from CCCHH/ansible-infra
mjolnir: deploy mjolnir using docker compose
Moving from mjolnir from nix-infra to ansible-infra. Also using native encryption now instead of the deprecated pantalaimon and having protectAllJoinedRooms set to true for easier and quicker usage.
This commit is contained in:
parent
db70d666d1
commit
fe647da3bf
7 changed files with 511 additions and 241 deletions
10
resources/chaosknoten/mjolnir/docker_compose/compose.yaml
Normal file
10
resources/chaosknoten/mjolnir/docker_compose/compose.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Links & Resources
|
||||
# https://github.com/matrix-org/mjolnir/blob/main/docs/setup_docker.md
|
||||
|
||||
services:
|
||||
mjolnir:
|
||||
image: docker.io/matrixdotorg/mjolnir:v1.11.0
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./mjolnir_data:/data
|
||||
- ./configs/config.yaml:/data/config/production.yaml:ro
|
||||
23
resources/chaosknoten/mjolnir/docker_compose/config.yaml.j2
Normal file
23
resources/chaosknoten/mjolnir/docker_compose/config.yaml.j2
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# https://github.com/matrix-org/mjolnir/blob/main/config/default.yaml
|
||||
|
||||
homeserverUrl: "https://matrix.hamburg.ccc.de"
|
||||
rawHomeserverUrl: "https://matrix.hamburg.ccc.de"
|
||||
# Mjolnir should be able to retrieve an access token itself
|
||||
encryption:
|
||||
use: true
|
||||
username: "moderation"
|
||||
password: {{ secret__mjolnir_matrix_user_password }}
|
||||
dataPath: "/data/storage"
|
||||
autojoinOnlyIfManager: true
|
||||
recordIgnoredInvites: true
|
||||
# The native encryption backend doesn't seem to support v12 rooms yet.
|
||||
# https://github.com/matrix-org/mjolnir/issues/641
|
||||
managementRoom: "#moderation-management-v11:hamburg.ccc.de"
|
||||
forwardMentionsToManagementRoom: false
|
||||
verboseLogging: false
|
||||
logLevel: "INFO"
|
||||
syncOnStartup: true
|
||||
verifyPermissionsOnStartup: true
|
||||
noop: false
|
||||
fasterMembershipChecks: false
|
||||
protectAllJoinedRooms: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue