2019-01-16 16:05:48 +00:00
# matrix-corporal is a reconciliator and gateway for a managed Matrix server.
2019-01-12 15:53:00 +00:00
# See: https://github.com/devture/matrix-corporal
2019-01-16 16:05:48 +00:00
matrix_corporal_enabled : true
2019-05-24 22:41:04 +00:00
# Controls whether the matrix-corporal container exposes its gateway HTTP port (tcp/41080 in the container).
#
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:41080"), or empty string to not expose.
matrix_corporal_container_http_gateway_host_bind_port : ''
# Controls whether the matrix-corporal container exposes its API HTTP port (tcp/41081 in the container).
#
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:41081"), or empty string to not expose.
matrix_corporal_container_http_api_host_bind_port : ''
2019-01-16 16:05:48 +00:00
2019-04-30 14:35:18 +00:00
# A list of extra arguments to pass to the container
matrix_corporal_container_extra_arguments : [ ]
2019-01-16 16:05:48 +00:00
# List of systemd services that matrix-corporal.service depends on
matrix_corporal_systemd_required_services_list : [ 'docker.service' ]
2019-01-12 15:53:00 +00:00
2020-04-17 19:26:55 +00:00
matrix_corporal_docker_image : "devture/matrix-corporal:1.9.0"
2019-06-10 11:23:51 +00:00
matrix_corporal_docker_image_force_pull : "{{ matrix_corporal_docker_image.endswith(':latest') }}"
2019-01-12 15:53:00 +00:00
matrix_corporal_base_path : "{{ matrix_base_data_path }}/corporal"
matrix_corporal_config_dir_path : "{{ matrix_corporal_base_path }}/config"
matrix_corporal_cache_dir_path : "{{ matrix_corporal_base_path }}/cache"
matrix_corporal_var_dir_path : "{{ matrix_corporal_base_path }}/var"
2019-02-28 09:51:09 +00:00
matrix_corporal_matrix_homeserver_domain_name : "{{ matrix_domain }}"
2019-01-16 16:05:48 +00:00
# Controls where matrix-corporal can reach your Synapse server (e.g. "http://matrix-synapse:8008").
# If Synapse runs on the same machine, you may need to add its service to `matrix_corporal_systemd_required_services_list`.
matrix_corporal_matrix_homeserver_api_endpoint : ""
# The shared secret between matrix-corporal and Synapse's shared-secret-auth password provider module.
# To use matrix-corporal, the shared-secret-auth password provider needs to be enabled and the secret needs to be identical.
matrix_corporal_matrix_auth_shared_secret : ""
# The shared secret for registering users with Synapse.
# Needs to be identical to Synapse's `registration_shared_secret` setting.
matrix_corporal_matrix_registration_shared_secret : ""
2019-01-12 15:53:00 +00:00
matrix_corporal_matrix_timeout_milliseconds : 45000
matrix_corporal_reconciliation_retry_interval_milliseconds : 30000
matrix_corporal_reconciliation_user_id_local_part : "matrix-corporal"
2020-03-24 14:41:24 +00:00
matrix_corporal_http_gateway_timeout_milliseconds : 60000
2019-01-12 15:53:00 +00:00
matrix_corporal_http_api_enabled : false
matrix_corporal_http_api_auth_token : ""
2020-03-24 14:41:24 +00:00
matrix_corporal_http_api_timeout_milliseconds : 15000
2019-01-12 15:53:00 +00:00
# Matrix Corporal policy provider configuration (goes directly into the configuration's `PolicyProvider` value)
matrix_corporal_policy_provider_config : ""
2019-01-25 14:58:20 +00:00
matrix_corporal_debug : false
2019-08-25 07:58:30 +00:00
# Default Corporal configuration template which covers the generic use case.
# You can customize it by controlling the various variables inside it.
#
# For a more advanced customization, you can extend the default (see `matrix_corporal_configuration_extension_json`)
# or completely replace this variable with your own template.
#
# The side-effect of this lookup is that Ansible would even parse the JSON for us, returning a dict.
# This is unlike what it does when looking up YAML template files (no automatic parsing there).
matrix_corporal_configuration_default : "{{ lookup('template', 'templates/config.json.j2') }}"
# Your custom JSON configuration for Corporal should go to `matrix_corporal_configuration_extension_json`.
# This configuration extends the default starting configuration (`matrix_corporal_configuration_default`).
#
# You can override individual variables from the default configuration, or introduce new ones.
#
# If you need something more special, you can take full control by
# completely redefining `matrix_corporal_configuration_default`.
#
# Example configuration extension follows:
#
# matrix_corporal_configuration_extension_json: |
# {
# "Matrix": {
# "TimeoutMilliseconds": 60000
# }
# }
matrix_corporal_configuration_extension_json : '{}'
matrix_corporal_configuration_extension : "{{ matrix_corporal_configuration_extension_json|from_json if matrix_corporal_configuration_extension_json|from_json is mapping else {} }}"
# Holds the final Corporal configuration (a combination of the default and its extension).
# You most likely don't need to touch this variable. Instead, see `matrix_corporal_configuration_default`.
matrix_corporal_configuration : "{{ matrix_corporal_configuration_default|combine(matrix_corporal_configuration_extension, recursive=True) }}"