2019-05-24 22:41:04 +00:00
# mxisd is a Federated Matrix Identity Server
# See: https://github.com/kamax-matrix/mxisd
2019-01-12 15:53:00 +00:00
matrix_mxisd_enabled : true
2019-01-16 16:05:48 +00:00
2019-08-15 06:36:04 +00:00
matrix_mxisd_docker_image : "kamax/mxisd:1.4.6"
2019-06-10 11:23:51 +00:00
matrix_mxisd_docker_image_force_pull : "{{ matrix_mxisd_docker_image.endswith(':latest') }}"
2019-01-12 15:53:00 +00:00
matrix_mxisd_base_path : "{{ matrix_base_data_path }}/mxisd"
matrix_mxisd_config_path : "{{ matrix_mxisd_base_path }}/config"
matrix_mxisd_data_path : "{{ matrix_mxisd_base_path }}/data"
2019-05-24 22:41:04 +00:00
# Controls whether the matrix-mxisd container exposes its HTTP port (tcp/8090 in the container).
#
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8090"), or empty string to not expose.
2019-10-22 07:57:16 +00:00
matrix_mxisd_container_http_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_mxisd_container_extra_arguments : [ ]
2019-01-16 16:05:48 +00:00
# List of systemd services that matrix-mxisd.service depends on
2019-10-22 07:57:16 +00:00
matrix_mxisd_systemd_required_services_list : [ 'docker.service' ]
2019-01-16 16:05:48 +00:00
# List of systemd services that matrix-mxisd.service wants
matrix_mxisd_systemd_wanted_services_list : [ ]
2019-01-12 15:53:00 +00:00
# Your identity server is private by default.
# To ensure maximum discovery, you can make your identity server
# also forward lookups to the central matrix.org Identity server
# (at the cost of potentially leaking all your contacts information).
# Enabling this is discouraged. Learn more here: https://github.com/kamax-io/mxisd/blob/master/docs/features/identity.md#lookups
matrix_mxisd_matrixorg_forwarding_enabled : false
# mxisd has serveral supported identity stores.
2019-01-16 16:05:48 +00:00
# One of them is storing identities directly in Synapse's database.
2019-01-12 15:53:00 +00:00
# Learn more here: https://github.com/kamax-matrix/mxisd/blob/master/docs/stores/synapse.md
2019-01-16 16:05:48 +00:00
matrix_mxisd_synapsesql_enabled : false
matrix_mxisd_synapsesql_type : ""
matrix_mxisd_synapsesql_connection : ""
# Setting up email-sending settings is required for using mxisd.
2019-02-28 09:51:09 +00:00
matrix_mxisd_threepid_medium_email_identity_from : "matrix@{{ matrix_domain }}"
2019-01-17 12:47:37 +00:00
matrix_mxisd_threepid_medium_email_connectors_smtp_host : ""
matrix_mxisd_threepid_medium_email_connectors_smtp_port : 587
matrix_mxisd_threepid_medium_email_connectors_smtp_tls : 1
matrix_mxisd_threepid_medium_email_connectors_smtp_login : ""
matrix_mxisd_threepid_medium_email_connectors_smtp_password : ""
2019-01-12 15:53:00 +00:00
2019-01-17 13:55:23 +00:00
# DNS overwrites are useful for telling mxisd how it can reach the homeserver directly.
# Useful when reverse-proxying certain URLs (e.g. `/_matrix/client/r0/user_directory/search`) to mxisd,
# so that mxisd can rewrite the original URL to one that would reach the homeserver.
matrix_mxisd_dns_overwrite_enabled : false
2019-02-28 09:51:09 +00:00
matrix_mxisd_dns_overwrite_homeserver_client_name : "{{ matrix_server_fqn_matrix }}"
2019-01-17 13:55:23 +00:00
matrix_mxisd_dns_overwrite_homeserver_client_value : "http://matrix-synapse:8008"
2019-03-07 12:16:48 +00:00
# Override the default email templates
2019-03-07 12:34:07 +00:00
# To use this, fill in the template variables with the full desired template as a multi-line YAML variable
#
2019-03-07 12:16:48 +00:00
# More info:
# https://github.com/kamax-matrix/mxisd/blob/master/docs/threepids/notification/template-generator.md
# https://github.com/kamax-matrix/mxisd/tree/master/src/main/resources/threepids/email
matrix_mxisd_threepid_medium_email_custom_templates_enabled : false
matrix_mxisd_threepid_medium_email_custom_invite_template : ""
matrix_mxisd_threepid_medium_email_custom_session_validation_template : ""
matrix_mxisd_threepid_medium_email_custom_unbind_fraudulent_template : ""
matrix_mxisd_threepid_medium_email_custom_matrixid_template : ""
2019-03-22 07:39:17 +00:00
# Controls whether the self-check feature should validate SSL certificates.
matrix_mxisd_self_check_validate_certificates : true
2019-10-21 18:06:57 +00:00
# Controls mxisd logging verbosity for troubleshooting.
#
# According to: https://github.com/kamax-matrix/mxisd/blob/master/docs/troubleshooting.md#increase-verbosity
2019-10-21 18:47:23 +00:00
matrix_mxisd_verbose_logging : false
2019-10-21 18:06:57 +00:00
2019-01-12 15:53:00 +00:00
# Default mxisd 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_mxisd_configuration_extension_yaml`)
# or completely replace this variable with your own template.
matrix_mxisd_configuration_yaml : |
2019-05-07 11:02:38 +00:00
#jinja2: lstrip_blocks: True
2019-01-12 15:53:00 +00:00
matrix :
2019-02-28 09:51:09 +00:00
domain : {{ matrix_domain }}
2019-01-12 15:53:00 +00:00
server :
2019-02-28 09:51:09 +00:00
name : {{ matrix_server_fqn_matrix }}
2019-01-12 15:53:00 +00:00
key :
path : /var/mxisd/sign.key
storage :
provider :
sqlite :
database : /var/mxisd/mxisd.db
2019-01-17 13:55:23 +00:00
{% if matrix_mxisd_dns_overwrite_enabled %}
dns :
overwrite :
homeserver :
client :
- name : {{ matrix_mxisd_dns_overwrite_homeserver_client_name }}
value : {{ matrix_mxisd_dns_overwrite_homeserver_client_value }}
{% endif %}
2019-01-12 15:53:00 +00:00
{% if matrix_mxisd_matrixorg_forwarding_enabled %}
forward :
servers : [ 'matrix-org' ]
{% endif %}
threepid :
medium :
email :
identity :
2019-01-17 12:47:37 +00:00
from : {{ matrix_mxisd_threepid_medium_email_identity_from }}
2019-01-12 15:53:00 +00:00
connectors :
smtp :
2019-01-17 12:47:37 +00:00
host : {{ matrix_mxisd_threepid_medium_email_connectors_smtp_host }}
port : {{ matrix_mxisd_threepid_medium_email_connectors_smtp_port }}
tls : {{ matrix_mxisd_threepid_medium_email_connectors_smtp_tls }}
login : {{ matrix_mxisd_threepid_medium_email_connectors_smtp_login }}
password : {{ matrix_mxisd_threepid_medium_email_connectors_smtp_password }}
2019-03-08 09:50:51 +00:00
{% if matrix_mxisd_threepid_medium_email_custom_templates_enabled %}
2019-03-07 12:16:48 +00:00
generators :
template :
{% if matrix_mxisd_threepid_medium_email_custom_invite_template %}
invite : '/var/mxisd/invite-template.eml'
{% endif %}
{% if matrix_mxisd_threepid_medium_email_custom_session_validation_template or matrix_mxisd_threepid_medium_email_custom_unbind_fraudulent_template %}
session :
{% if matrix_mxisd_threepid_medium_email_custom_session_validation_template %}
validation : '/var/mxisd/validate-template.eml'
{% endif %}
{% if matrix_mxisd_threepid_medium_email_custom_unbind_fraudulent_template %}
unbind :
frandulent : '/var/mxisd/unbind-fraudulent.eml'
{% endif %}
{% endif %}
{% if matrix_mxisd_threepid_medium_email_custom_matrixid_template %}
generic :
matrixId : '/var/mxisd/mxid-template.eml'
{% endif %}
2019-03-08 09:50:51 +00:00
{% endif %}
2019-01-12 15:53:00 +00:00
synapseSql :
enabled : {{ matrix_mxisd_synapsesql_enabled }}
type : {{ matrix_mxisd_synapsesql_type }}
connection : {{ matrix_mxisd_synapsesql_connection }}
matrix_mxisd_configuration_extension_yaml : |
# Your custom YAML configuration for mxisd goes here.
# This configuration extends the default starting configuration (`matrix_mxisd_configuration_yaml`).
#
# 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_mxisd_configuration_yaml`.
#
# Example configuration extension follows:
#
# ldap:
# enabled: true
# connection:
# host: ldapHostnameOrIp
# tls: false
# port: 389
2019-05-14 20:38:21 +00:00
# baseDNs: ['OU=Users,DC=example,DC=org']
2019-01-12 15:53:00 +00:00
# bindDn: CN=My Mxisd User,OU=Users,DC=example,DC=org
# bindPassword: TheUserPassword
2019-06-07 08:46:35 +00:00
matrix_mxisd_configuration_extension : "{{ matrix_mxisd_configuration_extension_yaml|from_yaml if matrix_mxisd_configuration_extension_yaml|from_yaml is mapping else {} }}"
2019-01-12 15:53:00 +00:00
# Holds the final mxisd configuration (a combination of the default and its extension).
# You most likely don't need to touch this variable. Instead, see `matrix_mxisd_configuration_yaml`.
2019-01-17 12:47:37 +00:00
matrix_mxisd_configuration : "{{ matrix_mxisd_configuration_yaml|from_yaml|combine(matrix_mxisd_configuration_extension, recursive=True) }}"