Browse Source

Merge branch 'master' into element-call-integration

element-call-integration
Slavi Pantaleev 11 months ago
parent
commit
3ea1ea2f34
3 changed files with 20 additions and 2 deletions
  1. +9
    -1
      roles/custom/matrix-bot-draupnir/tasks/validate_config.yml
  2. +10
    -1
      roles/custom/matrix-synapse/defaults/main.yml
  3. +1
    -0
      roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 9
- 1
roles/custom/matrix-bot-draupnir/tasks/validate_config.yml View File

@@ -45,9 +45,17 @@
with_items: with_items:
- {'name': 'matrix_bot_draupnir_config_accessToken', when: "{{ matrix_bot_draupnir_pantalaimon_use }}"} - {'name': 'matrix_bot_draupnir_config_accessToken', when: "{{ matrix_bot_draupnir_pantalaimon_use }}"}
- {'name': 'matrix_bot_draupnir_config_accessToken', when: "{{ matrix_bot_draupnir_login_native }}"} - {'name': 'matrix_bot_draupnir_config_accessToken', when: "{{ matrix_bot_draupnir_login_native }}"}
- {'name': 'matrix_bot_draupnir_pantalaimon_use', when: "{{ matrix_bot_draupnir_config_experimentalRustCrypto }}"}
when: "item.when | bool and not (vars[item.name] == '' or vars[item.name] is none)" when: "item.when | bool and not (vars[item.name] == '' or vars[item.name] is none)"


- name: Fail when matrix_bot_draupnir_config_experimentalRustCrypto is enabled together with matrix_bot_draupnir_pantalaimon_use
ansible.builtin.fail:
msg: >-
Your configuration is trying to enable matrix_bot_draupnir_config_experimentalRustCrypto and matrix_bot_draupnir_pantalaimon_use at the same time.
These settings are mutually incompatible and therefore cant be used at the same time.
when:
- matrix_bot_draupnir_pantalaimon_use
- matrix_bot_draupnir_config_experimentalRustCrypto

- when: "matrix_bot_draupnir_pantalaimon_use == 'true' and matrix_bot_draupnir_pantalaimon_breakage_ignore == 'false'" - when: "matrix_bot_draupnir_pantalaimon_use == 'true' and matrix_bot_draupnir_pantalaimon_breakage_ignore == 'false'"
block: block:
- name: Inject warning if Pantalaimon is used together with Draupnir - name: Inject warning if Pantalaimon is used together with Draupnir


+ 10
- 1
roles/custom/matrix-synapse/defaults/main.yml View File

@@ -468,6 +468,13 @@ matrix_synapse_rc_federation:


matrix_synapse_federation_rr_transactions_per_room_per_second: 50 matrix_synapse_federation_rr_transactions_per_room_per_second: 50


# Controls the rate limit for delayed event management.
#
# This is only applied if `matrix_synapse_experimental_features_msc4140_enabled` is set to `true`.
matrix_synapse_rc_delayed_event_mgmt:
per_second: 1
burst_count: 20

# Controls the templates directory setting. # Controls the templates directory setting.
# #
# See: # See:
@@ -1265,7 +1272,9 @@ matrix_synapse_experimental_features_msc3266_enabled: true
# Delayed events are required for proper call (Element Call) participation signalling. # Delayed events are required for proper call (Element Call) participation signalling.
# If disabled it is very likely that you end up with stuck calls in Matrix rooms. # If disabled it is very likely that you end up with stuck calls in Matrix rooms.
# #
# Related to `matrix_synapse_max_event_delay_duration`
# Related to:
# - `matrix_synapse_max_event_delay_duration`
# - `matrix_synapse_rc_delayed_event_mgmt`
# #
# See https://github.com/matrix-org/matrix-spec-proposals/pull/4140 # See https://github.com/matrix-org/matrix-spec-proposals/pull/4140
matrix_synapse_experimental_features_msc4140_enabled: false matrix_synapse_experimental_features_msc4140_enabled: false


+ 1
- 0
roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 View File

@@ -2999,6 +2999,7 @@ experimental_features:


{% if matrix_synapse_experimental_features_msc4140_enabled %} {% if matrix_synapse_experimental_features_msc4140_enabled %}
max_event_delay_duration: {{ matrix_synapse_max_event_delay_duration | to_json }} max_event_delay_duration: {{ matrix_synapse_max_event_delay_duration | to_json }}
rc_delayed_event_mgmt: {{ matrix_synapse_rc_delayed_event_mgmt | to_json }}
{% endif %} {% endif %}


# vim:ft=yaml # vim:ft=yaml

Loading…
Cancel
Save