mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 04:37:36 +01:00
Add Config variable for Draupnir Hijack command
And also make the internal admin API be automatically activated when this capability is used.
This commit is contained in:
parent
9d3c031031
commit
3a92b63f98
@ -2747,6 +2747,8 @@ matrix_bot_draupnir_container_image_self_build: "{{ matrix_architecture not in [
|
||||
|
||||
matrix_bot_draupnir_container_network: "{{ matrix_addons_container_network }}"
|
||||
|
||||
matrix_bot_draupnir_admin_api_enabled: "{{ matrix_bot_draupnir_room_hijack_enabled }}"
|
||||
|
||||
matrix_bot_draupnir_container_additional_networks_auto: |-
|
||||
{{
|
||||
([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
|
||||
|
@ -75,6 +75,13 @@ matrix_bot_draupnir_raw_homeserver_url: ""
|
||||
# Its Exposed here because its common enough to be valid to expose.
|
||||
matrix_bot_draupnir_disable_server_acl: "false"
|
||||
|
||||
# Used to control if the Synapse Admin API is exposed internally to the containers and therefore giving Draupnir Access.
|
||||
matrix_bot_draupnir_admin_api_enabled: ""
|
||||
|
||||
# Controls if the draupnir room hijack command is activated or not. This also automatically enables the internal admin API
|
||||
# in the process of activation.
|
||||
matrix_bot_draupnir_room_hijack_enabled: "false"
|
||||
|
||||
# Default configuration template which covers the generic use case.
|
||||
# You can customize it by controlling the various variables inside it.
|
||||
#
|
||||
|
@ -138,7 +138,7 @@ admin:
|
||||
# (with enough permissions) to "make" a user an admin.
|
||||
#
|
||||
# This only works if a local user with enough admin permissions is present in the room.
|
||||
enableMakeRoomAdminCommand: false
|
||||
enableMakeRoomAdminCommand: {{ matrix_bot_draupnir_room_hijack_enabled | to_json }}
|
||||
|
||||
# Misc options for command handling and commands
|
||||
commands:
|
||||
|
Loading…
Reference in New Issue
Block a user