Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

99 lines
4.2 KiB

  1. # The bare hostname which represents your identity.
  2. # This is something like "example.com".
  3. # Note: this playbook does not touch the server referenced here.
  4. hostname_identity: "{{ host_specific_hostname_identity }}"
  5. # This is where your data lives and what we set up here.
  6. # This and the Riot hostname (see below) are expected to be on the same server.
  7. hostname_matrix: "matrix.{{ hostname_identity }}"
  8. # This is where you access the web UI from and what we set up here.
  9. # This and the Matrix hostname (see above) are expected to be on the same server.
  10. hostname_riot: "riot.{{ hostname_identity }}"
  11. matrix_user_username: "matrix"
  12. matrix_user_uid: 991
  13. matrix_user_gid: 991
  14. # The defaults below cause a postgres server to be configured (running within a container).
  15. # Using an external server is possible by tweaking all of the parameters below.
  16. matrix_postgres_use_external: false
  17. matrix_postgres_connection_hostname: "postgres"
  18. matrix_postgres_connection_username: "synapse"
  19. matrix_postgres_connection_password: "synapse-password"
  20. matrix_postgres_db_name: "homeserver"
  21. matrix_base_data_path: "/matrix"
  22. matrix_ssl_certs_path: "{{ matrix_base_data_path }}/ssl"
  23. matrix_ssl_support_email: "{{ host_specific_matrix_ssl_support_email }}"
  24. matrix_environment_variables_data_path: "{{ matrix_base_data_path }}/environment-variables"
  25. matrix_synapse_base_path: "{{ matrix_base_data_path }}/synapse"
  26. matrix_synapse_config_dir_path: "{{ matrix_synapse_base_path }}/config"
  27. matrix_synapse_run_path: "{{ matrix_synapse_base_path }}/run"
  28. matrix_synapse_storage_path: "{{ matrix_synapse_base_path }}/storage"
  29. matrix_synapse_media_store_path: "{{ matrix_synapse_storage_path }}/media-store"
  30. matrix_postgres_data_path: "{{ matrix_base_data_path }}/postgres"
  31. matrix_nginx_proxy_data_path: "{{ matrix_base_data_path }}/nginx-proxy"
  32. matrix_nginx_proxy_confd_path: "{{ matrix_nginx_proxy_data_path }}/conf.d"
  33. matrix_nginx_riot_web_data_path: "{{ matrix_base_data_path }}/riot-web"
  34. matrix_coturn_base_path: "{{ matrix_base_data_path }}/coturn"
  35. matrix_coturn_config_path: "{{ matrix_coturn_base_path }}/turnserver.conf"
  36. matrix_scratchpad_dir: "{{ matrix_base_data_path }}/scratchpad"
  37. docker_postgres_image_v9: "postgres:9.6.9-alpine"
  38. docker_postgres_image_v10: "postgres:10.4-alpine"
  39. docker_postgres_image_latest: "{{ docker_postgres_image_v10 }}"
  40. docker_matrix_image: "matrixdotorg/synapse:v0.31.1"
  41. docker_nginx_image: "nginx:1.15.0-alpine"
  42. docker_riot_image: "avhost/docker-matrix-riot:v0.15.4"
  43. docker_s3fs_image: "xueshanf/s3fs:latest"
  44. docker_goofys_image: "cloudproto/goofys:latest"
  45. docker_coturn_image: "instrumentisto/coturn:4.5.0.7"
  46. # To avoid Synapse's macaroon secret key from changing every time
  47. # a new config is built from scratch, you can specify one here.
  48. matrix_synapse_macaroon_secret_key: null
  49. # A shared secret (between Synapse and Coturn) used for authentication.
  50. # You can put any string here, but generating a strong one is preferred (e.g. `pwgen -s 64 1`).
  51. matrix_coturn_turn_static_auth_secret: ""
  52. # UDP port-range to use for TURN
  53. matrix_coturn_turn_udp_min_port: 49152
  54. matrix_coturn_turn_udp_max_port: 49172
  55. matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
  56. matrix_max_upload_size_mb: 10
  57. matrix_max_log_file_size_mb: 100
  58. matrix_max_log_files_count: 10
  59. matrix_s3_media_store_enabled: false
  60. matrix_s3_media_store_bucket_name: "your-bucket-name"
  61. matrix_s3_media_store_aws_access_key: "your-aws-access-key"
  62. matrix_s3_media_store_aws_secret_key: "your-aws-secret-key"
  63. matrix_s3_media_store_region: "eu-central-1"
  64. # By default, this playbook installs the Riot.IM web UI on the `hostname_riot` domain.
  65. # If you wish to connect to your Matrix server by other means,
  66. # you may wish to disable this.
  67. matrix_riot_web_enabled: true
  68. # By default, this playbook sets up its own nginx proxy server on port 80/443.
  69. # This is fine if you're dedicating the whole server to Matrix.
  70. # But in case that's not the case, you may wish to prevent that
  71. # and take care of proxying by yourself.
  72. matrix_nginx_proxy_enabled: true
  73. # Specifies when to attempt to retrieve new SSL certificates from Let's Encrypt.
  74. matrix_ssl_renew_cron_time_definition: "15 4 */5 * *"
  75. # Specifies when to reload the matrix-nginx-proxy service so that
  76. # a new SSL certificate could go into effect.
  77. matrix_nginx_proxy_reload_cron_time_definition: "20 4 */5 * *"