Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

108 Zeilen
5.5 KiB

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