2017-07-31 22:07:30 +02:00
|
|
|
# The bare hostname which represents your identity.
|
|
|
|
# This is something like "example.com".
|
|
|
|
# Note: this playbook does not touch the server referenced here.
|
|
|
|
hostname_identity: "{{ host_specific_hostname_identity }}"
|
|
|
|
|
|
|
|
# This is where your data lives and what we set up here.
|
|
|
|
# This and the Riot hostname (see below) are expected to be on the same server.
|
|
|
|
hostname_matrix: "matrix.{{ hostname_identity }}"
|
|
|
|
|
|
|
|
# This is where you access the web UI from and what we set up here.
|
|
|
|
# This and the Matrix hostname (see above) are expected to be on the same server.
|
|
|
|
hostname_riot: "riot.{{ hostname_identity }}"
|
|
|
|
|
|
|
|
matrix_user_username: "matrix"
|
|
|
|
matrix_user_uid: 991
|
|
|
|
matrix_user_gid: 991
|
|
|
|
|
2017-09-08 15:53:24 +02:00
|
|
|
# The defaults below cause a postgres server to be configured (running within a container).
|
|
|
|
# Using an external server is possible by tweaking all of the parameters below.
|
|
|
|
matrix_postgres_use_external: false
|
2018-08-08 07:23:36 +02:00
|
|
|
matrix_postgres_connection_hostname: "matrix-postgres"
|
2017-07-31 22:07:30 +02:00
|
|
|
matrix_postgres_connection_username: "synapse"
|
|
|
|
matrix_postgres_connection_password: "synapse-password"
|
|
|
|
matrix_postgres_db_name: "homeserver"
|
|
|
|
|
|
|
|
matrix_base_data_path: "/matrix"
|
2017-09-11 22:50:14 +02:00
|
|
|
matrix_ssl_certs_path: "{{ matrix_base_data_path }}/ssl"
|
|
|
|
matrix_ssl_support_email: "{{ host_specific_matrix_ssl_support_email }}"
|
2017-07-31 22:07:30 +02:00
|
|
|
matrix_environment_variables_data_path: "{{ matrix_base_data_path }}/environment-variables"
|
2018-06-26 20:05:59 +02:00
|
|
|
|
2017-09-07 11:12:31 +02:00
|
|
|
matrix_synapse_base_path: "{{ matrix_base_data_path }}/synapse"
|
|
|
|
matrix_synapse_config_dir_path: "{{ matrix_synapse_base_path }}/config"
|
|
|
|
matrix_synapse_run_path: "{{ matrix_synapse_base_path }}/run"
|
2018-02-20 21:36:08 +02:00
|
|
|
matrix_synapse_storage_path: "{{ matrix_synapse_base_path }}/storage"
|
|
|
|
matrix_synapse_media_store_path: "{{ matrix_synapse_storage_path }}/media-store"
|
2018-06-26 20:05:59 +02:00
|
|
|
|
|
|
|
# Specifies which template files to use when configuring Synapse.
|
|
|
|
# If you'd like to have your own different configuration, feel free to copy and paste
|
|
|
|
# the original files into your inventory (e.g. in `inventory/host_vars/<host>/`)
|
|
|
|
# and then change the specific host's `vars.yaml` file like this:
|
|
|
|
# matrix_synapse_template_synapse_homeserver: "{{ playbook_dir }}/inventory/host_vars/<host>/homeserver.yaml.j2"
|
|
|
|
matrix_synapse_template_synapse_homeserver: "{{ role_path }}/templates/synapse/homeserver.yaml.j2"
|
|
|
|
matrix_synapse_template_synapse_log: "{{ role_path }}/templates/synapse/synapse.log.config.j2"
|
|
|
|
|
|
|
|
matrix_synapse_macaroon_secret_key: ""
|
|
|
|
matrix_synapse_registration_shared_secret: "{{ matrix_synapse_macaroon_secret_key }}"
|
|
|
|
matrix_synapse_form_secret: "{{ matrix_synapse_macaroon_secret_key }}"
|
|
|
|
|
2018-08-08 08:17:18 +02:00
|
|
|
matrix_synapse_max_upload_size_mb: 10
|
|
|
|
matrix_synapse_max_log_file_size_mb: 100
|
|
|
|
matrix_synapse_max_log_files_count: 10
|
2018-06-26 20:05:59 +02:00
|
|
|
|
2017-07-31 22:07:30 +02:00
|
|
|
matrix_postgres_data_path: "{{ matrix_base_data_path }}/postgres"
|
|
|
|
matrix_nginx_proxy_data_path: "{{ matrix_base_data_path }}/nginx-proxy"
|
|
|
|
matrix_nginx_proxy_confd_path: "{{ matrix_nginx_proxy_data_path }}/conf.d"
|
|
|
|
matrix_nginx_riot_web_data_path: "{{ matrix_base_data_path }}/riot-web"
|
2018-05-25 20:58:53 +02:00
|
|
|
matrix_coturn_base_path: "{{ matrix_base_data_path }}/coturn"
|
|
|
|
matrix_coturn_config_path: "{{ matrix_coturn_base_path }}/turnserver.conf"
|
2017-07-31 22:07:30 +02:00
|
|
|
matrix_scratchpad_dir: "{{ matrix_base_data_path }}/scratchpad"
|
|
|
|
|
2018-05-28 13:47:09 +02:00
|
|
|
|
2018-08-11 08:44:11 +02:00
|
|
|
matrix_docker_image_postgres_v9: "postgres:9.6.10-alpine"
|
|
|
|
matrix_docker_image_postgres_v10: "postgres:10.5-alpine"
|
2018-08-08 08:17:18 +02:00
|
|
|
matrix_docker_image_postgres_latest: "{{ matrix_docker_image_postgres_v10 }}"
|
2018-05-28 13:47:09 +02:00
|
|
|
|
2018-08-11 08:44:11 +02:00
|
|
|
matrix_docker_image_synapse: "matrixdotorg/synapse:v0.33.2"
|
2018-08-08 08:17:18 +02:00
|
|
|
matrix_docker_image_nginx: "nginx:1.15.2-alpine"
|
|
|
|
matrix_docker_image_riot: "avhost/docker-matrix-riot:v0.16.0"
|
|
|
|
matrix_docker_image_s3fs: "xueshanf/s3fs:latest"
|
|
|
|
matrix_docker_image_goofys: "cloudproto/goofys:latest"
|
|
|
|
matrix_docker_image_coturn: "instrumentisto/coturn:4.5.0.7"
|
2017-07-31 22:07:30 +02:00
|
|
|
|
2018-08-08 07:23:36 +02:00
|
|
|
# The Docker network that all services would be put into
|
|
|
|
matrix_docker_network: "matrix"
|
2018-05-28 13:47:09 +02:00
|
|
|
|
2018-05-25 20:58:53 +02:00
|
|
|
# A shared secret (between Synapse and Coturn) used for authentication.
|
|
|
|
# You can put any string here, but generating a strong one is preferred (e.g. `pwgen -s 64 1`).
|
|
|
|
matrix_coturn_turn_static_auth_secret: ""
|
|
|
|
|
2017-08-06 17:26:06 +02:00
|
|
|
# UDP port-range to use for TURN
|
|
|
|
matrix_coturn_turn_udp_min_port: 49152
|
|
|
|
matrix_coturn_turn_udp_max_port: 49172
|
|
|
|
|
2017-08-30 11:07:03 +02:00
|
|
|
matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
|
|
|
|
|
2017-09-07 17:26:41 +02:00
|
|
|
matrix_s3_media_store_enabled: false
|
|
|
|
matrix_s3_media_store_bucket_name: "your-bucket-name"
|
|
|
|
matrix_s3_media_store_aws_access_key: "your-aws-access-key"
|
2017-09-08 15:53:24 +02:00
|
|
|
matrix_s3_media_store_aws_secret_key: "your-aws-secret-key"
|
2018-02-20 21:36:08 +02:00
|
|
|
matrix_s3_media_store_region: "eu-central-1"
|
2017-09-12 11:41:44 +02:00
|
|
|
|
|
|
|
# By default, this playbook installs the Riot.IM web UI on the `hostname_riot` domain.
|
|
|
|
# If you wish to connect to your Matrix server by other means,
|
|
|
|
# you may wish to disable this.
|
|
|
|
matrix_riot_web_enabled: true
|
|
|
|
|
|
|
|
# By default, this playbook sets up its own nginx proxy server on port 80/443.
|
|
|
|
# This is fine if you're dedicating the whole server to Matrix.
|
|
|
|
# But in case that's not the case, you may wish to prevent that
|
|
|
|
# and take care of proxying by yourself.
|
|
|
|
matrix_nginx_proxy_enabled: true
|
2017-09-23 14:08:54 +02:00
|
|
|
|
2017-11-11 10:38:38 +02:00
|
|
|
# Specifies when to attempt to retrieve new SSL certificates from Let's Encrypt.
|
|
|
|
matrix_ssl_renew_cron_time_definition: "15 4 */5 * *"
|
|
|
|
|
2017-09-23 14:08:54 +02:00
|
|
|
# Specifies when to reload the matrix-nginx-proxy service so that
|
2017-11-11 10:38:38 +02:00
|
|
|
# a new SSL certificate could go into effect.
|
2018-02-13 23:17:56 +02:00
|
|
|
matrix_nginx_proxy_reload_cron_time_definition: "20 4 */5 * *"
|