Просмотр исходного кода

Apply suggestions from code review

Co-authored-by: Slavi Pantaleev <slavi@devture.com>
pull/2045/head
Shaleen Jain 3 лет назад
Родитель
Сommit
f11b50bb27
4 измененных файлов: 10 добавлений и 6 удалений
  1. +4
    -2
      roles/matrix-dendrite/defaults/main.yml
  2. +1
    -1
      roles/matrix-dendrite/templates/dendrite/dendrite.yaml.j2
  3. +4
    -2
      roles/matrix-synapse/defaults/main.yml
  4. +1
    -1
      roles/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 4
- 2
roles/matrix-dendrite/defaults/main.yml Просмотреть файл

@@ -43,6 +43,7 @@ matrix_dendrite_container_http_host_bind_address: ""
matrix_dendrite_container_https_host_bind_address: ""

# A list of extra arguments to pass to the container (`docker run` command)
# Also see `matrix_dendrite_container_arguments`
matrix_dendrite_container_extra_arguments: []

# matrix_dendrite_container_runtime_injected_arguments is a list of extra arguments to pass to the container.
@@ -114,6 +115,7 @@ matrix_dendrite_container_additional_volumes: []
# A list of appservice config files (in-container filesystem paths).
# This list gets populated dynamically based on Dendrite extensions that have been enabled.
# You may wish to use this together with `matrix_dendrite_container_additional_volumes` or `matrix_dendrite_container_extra_arguments`.
# Also see `matrix_dendrite_app_service_config_files_final`
matrix_dendrite_app_service_config_files: []

# matrix_dendrite_app_service_runtime_injected_config_files is a list of appservice config files.
@@ -121,10 +123,10 @@ matrix_dendrite_app_service_config_files: []
# If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
matrix_dendrite_app_service_runtime_injected_config_files: []

# matrix_dendrite_config_files holds the final list of config files to pass to the container.
# matrix_dendrite_app_service_config_files_final holds the final list of config files to pass to the container.
# You're not meant to override this variable.
# If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
matrix_dendrite_config_files: "{{ matrix_dendrite_app_service_config_files + matrix_dendrite_app_service_runtime_injected_config_files }}"
matrix_dendrite_app_service_config_files_final: "{{ matrix_dendrite_app_service_config_files + matrix_dendrite_app_service_runtime_injected_config_files }}"

# Enable exposure of metrics
matrix_dendrite_metrics_enabled: false


+ 1
- 1
roles/matrix-dendrite/templates/dendrite/dendrite.yaml.j2 Просмотреть файл

@@ -145,7 +145,7 @@ app_service_api:
disable_tls_validation: {{ matrix_dendrite_disable_tls_validation|to_json }}

# Appservice configuration files to load into this homeserver.
config_files: {{ matrix_dendrite_config_files|to_json }}
config_files: {{ matrix_dendrite_app_service_config_files_final|to_json }}

# Configuration for the Client API.
client_api:


+ 4
- 2
roles/matrix-synapse/defaults/main.yml Просмотреть файл

@@ -61,6 +61,7 @@ matrix_synapse_container_metrics_api_host_bind_port: ''
matrix_synapse_container_manhole_api_host_bind_port: ''

# A list of extra arguments to pass to the container
# Also see `matrix_synapse_container_arguments`
matrix_synapse_container_extra_arguments: []

# matrix_synapse_container_runtime_injected_arguments is a list of extra arguments to pass to the container.
@@ -334,6 +335,7 @@ matrix_synapse_additional_loggers: []
# A list of appservice config files (in-container filesystem paths).
# This list gets populated dynamically based on Synapse extensions that have been enabled.
# You may wish to use this together with `matrix_synapse_container_additional_volumes` or `matrix_synapse_container_extra_arguments`.
# Also see `matrix_synapse_app_service_config_files_final`
matrix_synapse_app_service_config_files: []

# matrix_synapse_app_service_runtime_injected_config_files is a list of appservice config files.
@@ -341,10 +343,10 @@ matrix_synapse_app_service_config_files: []
# If you'd like to inject your own arguments, see `matrix_synapse_app_service_config_files`.
matrix_synapse_app_service_runtime_injected_config_files: []

# matrix_synapse_config_files holds the final list of config files to pass to the container.
# matrix_synapse_app_service_config_files_final holds the final list of config files to pass to the container.
# You're not meant to override this variable.
# If you'd like to inject your own arguments, see `matrix_synapse_app_service_config_files`.
matrix_synapse_config_files: "{{ matrix_synapse_app_service_config_files + matrix_synapse_app_service_runtime_injected_config_files }}"
matrix_synapse_app_service_config_files_final: "{{ matrix_synapse_app_service_config_files + matrix_synapse_app_service_runtime_injected_config_files }}"

# This is set dynamically during execution depending on whether
# any password providers have been enabled or not.


+ 1
- 1
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 Просмотреть файл

@@ -1647,7 +1647,7 @@ room_prejoin_state:

# A list of application service config files to use
#
app_service_config_files: {{ matrix_synapse_config_files|to_json }}
app_service_config_files: {{ matrix_synapse_app_service_config_files_final|to_json }}

# Uncomment to enable tracking of application service IP addresses. Implicitly
# enables MAU tracking for application service users.


Загрузка…
Отмена
Сохранить