Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

176 líneas
8.8 KiB

  1. matrix_synapse_docker_image: "matrixdotorg/synapse:v0.34.1.1-py3"
  2. matrix_synapse_base_path: "{{ matrix_base_data_path }}/synapse"
  3. matrix_synapse_config_dir_path: "{{ matrix_synapse_base_path }}/config"
  4. matrix_synapse_run_path: "{{ matrix_synapse_base_path }}/run"
  5. matrix_synapse_storage_path: "{{ matrix_synapse_base_path }}/storage"
  6. matrix_synapse_media_store_path: "{{ matrix_synapse_storage_path }}/media-store"
  7. matrix_synapse_ext_path: "{{ matrix_synapse_base_path }}/ext"
  8. # Controls whether the Synapse container exposes the Client/Server API port (tcp/8008).
  9. # Normally, matrix-nginx-proxy is enabled and nginx can reach Synapse over the container network.
  10. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  11. # the Client/Server API's port to the local host (`127.0.0.1:8008`).
  12. matrix_synapse_container_expose_client_server_api_port: "{{ not matrix_nginx_proxy_enabled }}"
  13. matrix_synapse_in_container_python_packages_path: "/usr/local/lib/python3.6/site-packages"
  14. # Specifies which template files to use when configuring Synapse.
  15. # If you'd like to have your own different configuration, feel free to copy and paste
  16. # the original files into your inventory (e.g. in `inventory/host_vars/<host>/`)
  17. # and then change the specific host's `vars.yaml` file like this:
  18. # matrix_synapse_template_synapse_homeserver: "{{ playbook_dir }}/inventory/host_vars/<host>/homeserver.yaml.j2"
  19. matrix_synapse_template_synapse_homeserver: "{{ role_path }}/templates/synapse/homeserver.yaml.j2"
  20. matrix_synapse_template_synapse_log: "{{ role_path }}/templates/synapse/synapse.log.config.j2"
  21. matrix_synapse_macaroon_secret_key: ""
  22. matrix_synapse_registration_shared_secret: "{{ matrix_synapse_macaroon_secret_key }}"
  23. matrix_synapse_form_secret: "{{ matrix_synapse_macaroon_secret_key }}"
  24. # These are the identity servers that would be trusted by Synapse if mxisd is NOT enabled
  25. matrix_synapse_id_servers_public: ['vector.im', 'matrix.org']
  26. # These are the identity servers that would be trusted by Synapse if mxisd IS enabled
  27. matrix_synapse_id_servers_own: "['{{ hostname_matrix }}']"
  28. # The final list of identity servers to use for Synapse.
  29. # The first one would also be used as riot-web's default identity server.
  30. matrix_synapse_trusted_third_party_id_servers: "{{ matrix_synapse_id_servers_own if matrix_mxisd_enabled else matrix_synapse_id_servers_public }}"
  31. matrix_synapse_max_upload_size_mb: 10
  32. matrix_synapse_max_log_file_size_mb: 100
  33. matrix_synapse_max_log_files_count: 10
  34. # Log levels
  35. # Possible options are defined here https://docs.python.org/3/library/logging.html#logging-levels
  36. # warning: setting log level to DEBUG will make synapse log sensitive information such
  37. # as access tokens
  38. matrix_synapse_log_level: "INFO"
  39. matrix_synapse_storage_sql_log_level: "INFO"
  40. matrix_synapse_root_log_level: "INFO"
  41. # Rate limits
  42. matrix_synapse_rc_messages_per_second: 0.2
  43. matrix_synapse_rc_message_burst_count: 10.0
  44. # Enable this to allow Synapse to report utilization statistics about your server to matrix.org
  45. # (things like number of users, number of messages sent, uptime, load, etc.)
  46. matrix_synapse_report_stats: false
  47. # Controls whether the Matrix server will track presence status (online, offline, unavailable) for users.
  48. # If users participate in large rooms with many other servers,
  49. # disabling this will decrease server load significantly.
  50. matrix_synapse_use_presence: true
  51. # Controls whether people with access to the homeserver can register by themselves.
  52. matrix_synapse_enable_registration: false
  53. # Users who register on this homeserver will automatically be joined to these rooms.
  54. # Rooms are to be specified using addresses (e.g. `#address:example.com`)
  55. matrix_synapse_auto_join_rooms: []
  56. # Controls whether auto-join rooms (`matrix_synapse_auto_join_rooms`) are to be created
  57. # automatically if they don't already exist.
  58. matrix_synapse_autocreate_auto_join_rooms: true
  59. # Controls password-peppering for Matrix Synapse. Not to be changed after initial setup.
  60. matrix_synapse_password_config_pepper: ""
  61. # Controls the number of events that Matrix Synapse caches in memory.
  62. matrix_synapse_event_cache_size: "100K"
  63. # Controls cache sizes for Matrix Synapse via the SYNAPSE_CACHE_FACTOR environment variable.
  64. # Raise this to increase cache sizes or lower it to potentially lower memory use.
  65. # To learn more, see:
  66. # - https://github.com/matrix-org/synapse#help-synapse-eats-all-my-ram
  67. # - https://github.com/matrix-org/synapse/issues/3939
  68. matrix_synapse_cache_factor: 0.5
  69. # Controls whether Matrix Synapse will federate at all.
  70. # Disable this to completely isolate your server from the rest of the Matrix network.
  71. matrix_synapse_federation_enabled: true
  72. # A list of domain names that are allowed to federate with the given Matrix Synapse server.
  73. # An empty list value (`[]`) will also effectively stop federation, but if that's the desired
  74. # result, it's better to accomplish it by changing `matrix_synapse_federation_enabled`.
  75. matrix_synapse_federation_domain_whitelist: ~
  76. # A list of additional "volumes" to mount in the container.
  77. # This list gets populated dynamically based on Synapse extensions that have been enabled.
  78. # Contains definition objects like this: `{"src": "/outside", "dst": "/inside", "options": "rw|ro|slave|.."}
  79. matrix_synapse_container_additional_volumes: []
  80. # A list of additional loggers to register in synapse.log.config.
  81. # This list gets populated dynamically based on Synapse extensions that have been enabled.
  82. # Contains definition objects like this: `{"name": "..", "level": "DEBUG"}
  83. matrix_synapse_additional_loggers: []
  84. # A list of service config files
  85. # This list gets populated dynamically based on Synapse extensions that have been enabled.
  86. # Contains fs paths
  87. matrix_synapse_app_service_config_files: []
  88. # This is set dynamically during execution depending on whether
  89. # any password providers have been enabled or not.
  90. matrix_synapse_password_providers_enabled: false
  91. # Enable this to activate the REST auth password provider module.
  92. # See: https://github.com/kamax-io/matrix-synapse-rest-auth
  93. matrix_synapse_ext_password_provider_rest_auth_enabled: false
  94. matrix_synapse_ext_password_provider_rest_auth_download_url: "https://raw.githubusercontent.com/kamax-io/matrix-synapse-rest-auth/v0.1.1/rest_auth_provider.py"
  95. matrix_synapse_ext_password_provider_rest_auth_endpoint: ""
  96. matrix_synapse_ext_password_provider_rest_auth_registration_enforce_lowercase: false
  97. matrix_synapse_ext_password_provider_rest_auth_registration_profile_name_autofill: true
  98. matrix_synapse_ext_password_provider_rest_auth_login_profile_name_autofill: false
  99. # Enable this to activate the Shared Secret Auth password provider module.
  100. # See: https://github.com/devture/matrix-synapse-shared-secret-auth
  101. matrix_synapse_ext_password_provider_shared_secret_auth_enabled: false
  102. matrix_synapse_ext_password_provider_shared_secret_auth_download_url: "https://raw.githubusercontent.com/devture/matrix-synapse-shared-secret-auth/1.0.1/shared_secret_authenticator.py"
  103. matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret: ""
  104. # Enable this to activate LDAP password provider
  105. matrix_synapse_ext_password_provider_ldap_enabled: false
  106. matrix_synapse_ext_password_provider_ldap_uri: "ldap://ldap.mydomain.tld:389"
  107. matrix_synapse_ext_password_provider_ldap_start_tls: true
  108. matrix_synapse_ext_password_provider_ldap_base: ""
  109. matrix_synapse_ext_password_provider_ldap_attributes_uid: "uid"
  110. matrix_synapse_ext_password_provider_ldap_attributes_mail: "mail"
  111. matrix_synapse_ext_password_provider_ldap_attributes_name: "cn"
  112. matrix_synapse_ext_password_provider_ldap_bind_dn: ""
  113. matrix_synapse_ext_password_provider_ldap_bind_password: ""
  114. matrix_synapse_ext_password_provider_ldap_filter: ""
  115. matrix_s3_media_store_enabled: false
  116. matrix_s3_goofys_docker_image: "ewoutp/goofys:latest"
  117. matrix_s3_media_store_bucket_name: "your-bucket-name"
  118. matrix_s3_media_store_aws_access_key: "your-aws-access-key"
  119. matrix_s3_media_store_aws_secret_key: "your-aws-secret-key"
  120. matrix_s3_media_store_region: "eu-central-1"
  121. # Matrix mautrix is a Matrix <-> Telegram bridge
  122. # Enable telegram bridge
  123. matrix_mautrix_telegram_enabled: false
  124. matrix_mautrix_telegram_docker_image: "tulir/mautrix-telegram:v0.4.0"
  125. matrix_mautrix_telegram_base_path: "{{ matrix_base_data_path }}/mautrix-telegram"
  126. # Get your own API keys at https://my.telegram.org/apps
  127. matrix_mautrix_telegram_api_id: YOUR_TELEGRAM_APP_ID
  128. matrix_mautrix_telegram_api_hash: YOUR_TELEGRAM_API_HASH
  129. # Mautrix telegram public endpoint to log in to telegram
  130. # Use an uuid so it's not easily discoverable
  131. matrix_mautrix_telegram_public_endpoint: "/{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'telegram') | to_uuid }}"
  132. # Matrix mautrix is a Matrix <-> Whatsapp bridge
  133. # Enable whatsapp bridge
  134. matrix_mautrix_whatsapp_enabled: false
  135. matrix_mautrix_whatsapp_docker_image: "tulir/mautrix-whatsapp:latest"
  136. matrix_mautrix_whatsapp_base_path: "{{ matrix_base_data_path }}/mautrix-whatsapp"