mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-23 04:55:46 +00:00
Relocate enable_media_repo and make it configurable via matrix_synapse_enable_media_repo
.. although.. manual configuration is discouraged in most cases.
This commit is contained in:
parent
b842447047
commit
8cd7c1ec2f
@ -508,8 +508,8 @@ matrix_synapse_workers_pusher_workers_metrics_range_start: 19200
|
|||||||
# Adjusting this value manually is generally not necessary.
|
# Adjusting this value manually is generally not necessary.
|
||||||
matrix_synapse_federation_pusher_instances: []
|
matrix_synapse_federation_pusher_instances: []
|
||||||
|
|
||||||
# matrix_synapse_start_pushers controls if theh main Synapse process should push out notifications or if it should be left to pusher workers (see `matrix_synapse_federation_pusher_instances`).
|
# matrix_synapse_start_pushers controls if the main Synapse process should push out notifications or if it should be left to pusher workers (see `matrix_synapse_federation_pusher_instances`).
|
||||||
# This is allowed if workers are disabled, or if there are no pusher workers.
|
# This is enabled if workers are disabled, or if there are no pusher workers.
|
||||||
# Adjusting this value manually is generally not necessary.
|
# Adjusting this value manually is generally not necessary.
|
||||||
matrix_synapse_start_pushers: "{{ not matrix_synapse_workers_enabled or (matrix_synapse_workers_enabled_list | selectattr('type', 'equalto', 'pusher') | list | length > 0) }}"
|
matrix_synapse_start_pushers: "{{ not matrix_synapse_workers_enabled or (matrix_synapse_workers_enabled_list | selectattr('type', 'equalto', 'pusher') | list | length > 0) }}"
|
||||||
|
|
||||||
@ -529,7 +529,7 @@ matrix_synapse_workers_federation_sender_workers_metrics_range_start: 19400
|
|||||||
# Adjusting this value manually is generally not necessary.
|
# Adjusting this value manually is generally not necessary.
|
||||||
matrix_synapse_federation_sender_instances: []
|
matrix_synapse_federation_sender_instances: []
|
||||||
|
|
||||||
# matrix_synapse_send_federation controls if theh main Synapse process should send federation traffic or if it should be left to federation_sender workers (see `matrix_synapse_federation_sender_instances`).
|
# matrix_synapse_send_federation controls if the main Synapse process should send federation traffic or if it should be left to federation_sender workers (see `matrix_synapse_federation_sender_instances`).
|
||||||
# This is allowed if workers are disabled, or if there are no federation sender workers.
|
# This is allowed if workers are disabled, or if there are no federation sender workers.
|
||||||
# Adjusting this value manually is generally not necessary.
|
# Adjusting this value manually is generally not necessary.
|
||||||
matrix_synapse_send_federation: "{{ not matrix_synapse_workers_enabled or (matrix_synapse_workers_enabled_list | selectattr('type', 'equalto', 'federation_sender') | list | length > 0) }}"
|
matrix_synapse_send_federation: "{{ not matrix_synapse_workers_enabled or (matrix_synapse_workers_enabled_list | selectattr('type', 'equalto', 'federation_sender') | list | length > 0) }}"
|
||||||
@ -538,6 +538,11 @@ matrix_synapse_workers_media_repository_workers_count: "{{ matrix_synapse_worker
|
|||||||
matrix_synapse_workers_media_repository_workers_port_range_start: 18551
|
matrix_synapse_workers_media_repository_workers_port_range_start: 18551
|
||||||
matrix_synapse_workers_media_repository_workers_metrics_range_start: 19551
|
matrix_synapse_workers_media_repository_workers_metrics_range_start: 19551
|
||||||
|
|
||||||
|
# matrix_synapse_enable_media_repo controls if the main Synapse process should serve media repository endpoints or if it should be left to media_repository workers (see `matrix_synapse_workers_media_repository_workers_count`).
|
||||||
|
# This is enabled if workers are disabled, or if there are no media repository workers.
|
||||||
|
# Adjusting this value manually is generally not necessary.
|
||||||
|
matrix_synapse_enable_media_repo: "{{ not matrix_synapse_workers_enabled or (matrix_synapse_workers_enabled_list | selectattr('type', 'equalto', 'media_repository') | list | length > 0) }}"
|
||||||
|
|
||||||
# Disabled until https://github.com/matrix-org/synapse/issues/8787 is resolved.
|
# Disabled until https://github.com/matrix-org/synapse/issues/8787 is resolved.
|
||||||
# user_dir workers are deprecated since Synapse v1.59. This will be removed.
|
# user_dir workers are deprecated since Synapse v1.59. This will be removed.
|
||||||
# See: https://github.com/matrix-org/synapse/blob/v1.59.0/docs/upgrade.md#deprecation-of-the-synapseappappservice-and-synapseappuser_dir-worker-application-types
|
# See: https://github.com/matrix-org/synapse/blob/v1.59.0/docs/upgrade.md#deprecation-of-the-synapseappappservice-and-synapseappuser_dir-worker-application-types
|
||||||
|
@ -349,13 +349,6 @@ listeners:
|
|||||||
|
|
||||||
# c.f. https://github.com/matrix-org/synapse/tree/master/contrib/systemd-with-workers/README.md
|
# c.f. https://github.com/matrix-org/synapse/tree/master/contrib/systemd-with-workers/README.md
|
||||||
worker_app: synapse.app.homeserver
|
worker_app: synapse.app.homeserver
|
||||||
|
|
||||||
# thx https://oznetnerd.com/2017/04/18/jinja2-selectattr-filter/
|
|
||||||
# reduce the main worker's offerings to core homeserver business
|
|
||||||
{% if matrix_synapse_workers_enabled_list | selectattr('type', 'equalto', 'media_repository') | list | length > 0 %}
|
|
||||||
enable_media_repo: false
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
daemonize: false
|
daemonize: false
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -1017,6 +1010,7 @@ federation_rr_transactions_per_room_per_second: {{ matrix_synapse_federation_rr_
|
|||||||
# following if you are using a separate media store worker.
|
# following if you are using a separate media store worker.
|
||||||
#
|
#
|
||||||
#enable_media_repo: false
|
#enable_media_repo: false
|
||||||
|
enable_media_repo: {{ matrix_synapse_enable_media_repo | to_json }}
|
||||||
|
|
||||||
# Directory where uploaded images and attachments are stored.
|
# Directory where uploaded images and attachments are stored.
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user