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.
 
 

100 lines
4.9 KiB

  1. # matrix-corporal is a reconciliator and gateway for a managed Matrix server.
  2. # See: https://github.com/devture/matrix-corporal
  3. matrix_corporal_enabled: true
  4. matrix_corporal_container_image_self_build: false
  5. matrix_corporal_container_image_self_build_repo: "https://github.com/devture/matrix-corporal.git"
  6. # Controls whether the matrix-corporal container exposes its gateway HTTP port (tcp/41080 in the container).
  7. #
  8. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:41080"), or empty string to not expose.
  9. matrix_corporal_container_http_gateway_host_bind_port: ''
  10. # Controls whether the matrix-corporal container exposes its API HTTP port (tcp/41081 in the container).
  11. #
  12. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:41081"), or empty string to not expose.
  13. matrix_corporal_container_http_api_host_bind_port: ''
  14. # A list of extra arguments to pass to the container
  15. matrix_corporal_container_extra_arguments: []
  16. # List of systemd services that matrix-corporal.service depends on
  17. matrix_corporal_systemd_required_services_list: ['docker.service']
  18. matrix_corporal_docker_image: "{{ matrix_corporal_docker_image_name_prefix }}devture/matrix-corporal:{{ matrix_corporal_docker_image_tag }}"
  19. matrix_corporal_docker_image_name_prefix: "{{ 'localhost/' if matrix_corporal_container_image_self_build else 'docker.io/' }}"
  20. matrix_corporal_docker_image_tag: "1.11.0"
  21. matrix_corporal_docker_image_force_pull: "{{ matrix_corporal_docker_image.endswith(':latest') }}"
  22. matrix_corporal_base_path: "{{ matrix_base_data_path }}/corporal"
  23. matrix_corporal_container_src_files_path: "{{ matrix_corporal_base_path }}/container-src"
  24. matrix_corporal_config_dir_path: "{{ matrix_corporal_base_path }}/config"
  25. matrix_corporal_cache_dir_path: "{{ matrix_corporal_base_path }}/cache"
  26. matrix_corporal_var_dir_path: "{{ matrix_corporal_base_path }}/var"
  27. matrix_corporal_matrix_homeserver_domain_name: "{{ matrix_domain }}"
  28. # Controls where matrix-corporal can reach your Synapse server (e.g. "http://matrix-synapse:8008").
  29. # If Synapse runs on the same machine, you may need to add its service to `matrix_corporal_systemd_required_services_list`.
  30. matrix_corporal_matrix_homeserver_api_endpoint: ""
  31. # The shared secret between matrix-corporal and Synapse's shared-secret-auth password provider module.
  32. # To use matrix-corporal, the shared-secret-auth password provider needs to be enabled and the secret needs to be identical.
  33. matrix_corporal_matrix_auth_shared_secret: ""
  34. # The shared secret for registering users with Synapse.
  35. # Needs to be identical to Synapse's `registration_shared_secret` setting.
  36. matrix_corporal_matrix_registration_shared_secret: ""
  37. matrix_corporal_matrix_timeout_milliseconds: 45000
  38. matrix_corporal_reconciliation_retry_interval_milliseconds: 30000
  39. matrix_corporal_reconciliation_user_id_local_part: "matrix-corporal"
  40. matrix_corporal_http_gateway_timeout_milliseconds: 60000
  41. matrix_corporal_http_api_enabled: false
  42. matrix_corporal_http_api_auth_token: ""
  43. matrix_corporal_http_api_timeout_milliseconds: 15000
  44. # Matrix Corporal policy provider configuration (goes directly into the configuration's `PolicyProvider` value)
  45. matrix_corporal_policy_provider_config: ""
  46. matrix_corporal_debug: false
  47. # Default Corporal configuration template which covers the generic use case.
  48. # You can customize it by controlling the various variables inside it.
  49. #
  50. # For a more advanced customization, you can extend the default (see `matrix_corporal_configuration_extension_json`)
  51. # or completely replace this variable with your own template.
  52. #
  53. # The side-effect of this lookup is that Ansible would even parse the JSON for us, returning a dict.
  54. # This is unlike what it does when looking up YAML template files (no automatic parsing there).
  55. matrix_corporal_configuration_default: "{{ lookup('template', 'templates/config.json.j2') }}"
  56. # Your custom JSON configuration for Corporal should go to `matrix_corporal_configuration_extension_json`.
  57. # This configuration extends the default starting configuration (`matrix_corporal_configuration_default`).
  58. #
  59. # You can override individual variables from the default configuration, or introduce new ones.
  60. #
  61. # If you need something more special, you can take full control by
  62. # completely redefining `matrix_corporal_configuration_default`.
  63. #
  64. # Example configuration extension follows:
  65. #
  66. # matrix_corporal_configuration_extension_json: |
  67. # {
  68. # "Matrix": {
  69. # "TimeoutMilliseconds": 60000
  70. # }
  71. # }
  72. matrix_corporal_configuration_extension_json: '{}'
  73. matrix_corporal_configuration_extension: "{{ matrix_corporal_configuration_extension_json|from_json if matrix_corporal_configuration_extension_json|from_json is mapping else {} }}"
  74. # Holds the final Corporal configuration (a combination of the default and its extension).
  75. # You most likely don't need to touch this variable. Instead, see `matrix_corporal_configuration_default`.
  76. matrix_corporal_configuration: "{{ matrix_corporal_configuration_default|combine(matrix_corporal_configuration_extension, recursive=True) }}"