Matrix Docker Ansible eploy
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

147 rindas
8.1 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. # renovate: datasource=docker depName=devture/matrix-corporal
  6. matrix_corporal_version: 2.7.0
  7. matrix_corporal_container_image_self_build: false
  8. matrix_corporal_container_image_self_build_repo: "https://github.com/devture/matrix-corporal.git"
  9. # Controls whether the matrix-corporal container exposes its gateway HTTP port (tcp/41080 in the container).
  10. #
  11. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:41080"), or empty string to not expose.
  12. matrix_corporal_container_http_gateway_host_bind_port: ''
  13. # Controls whether the matrix-corporal container exposes its API HTTP port (tcp/41081 in the container).
  14. #
  15. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:41081"), or empty string to not expose.
  16. matrix_corporal_container_http_api_host_bind_port: ''
  17. # A list of extra arguments to pass to the container
  18. matrix_corporal_container_extra_arguments: []
  19. # The base container network. It will be auto-created by this role if it doesn't exist already.
  20. matrix_corporal_container_network: "{{ matrix_docker_network }}"
  21. # A list of additional container networks that the container would be connected to.
  22. # The role does not create these networks, so make sure they already exist.
  23. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  24. matrix_corporal_container_additional_networks: "{{ matrix_corporal_container_additional_networks_auto + matrix_corporal_container_additional_networks_custom }}"
  25. matrix_corporal_container_additional_networks_auto: []
  26. matrix_corporal_container_additional_networks_custom: []
  27. # matrix_corporal_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  28. # See `../templates/labels.j2` for details.
  29. #
  30. # To inject your own other container labels, see `matrix_corporal_container_labels_additional_labels`.
  31. matrix_corporal_container_labels_traefik_enabled: true
  32. matrix_corporal_container_labels_traefik_docker_network: "{{ matrix_corporal_container_network }}"
  33. matrix_corporal_container_labels_traefik_entrypoints: web-secure
  34. matrix_corporal_container_labels_traefik_tls: "{{ matrix_corporal_container_labels_traefik_entrypoints != 'web' }}"
  35. matrix_corporal_container_labels_traefik_tls_certResolver: default # noqa var-naming
  36. # Controls whether labels will be added that expose matrix-corporal's HTTP API
  37. matrix_corporal_container_labels_api_enabled: "{{ matrix_corporal_http_api_enabled }}"
  38. matrix_corporal_container_labels_api_traefik_rule: "Host(`{{ matrix_corporal_matrix_homeserver_api_domain_name }}`) && PathPrefix(`/_matrix/corporal`)"
  39. matrix_corporal_container_labels_api_traefik_priority: 0
  40. matrix_corporal_container_labels_api_traefik_entrypoints: "{{ matrix_corporal_container_labels_traefik_entrypoints }}"
  41. matrix_corporal_container_labels_api_traefik_tls: "{{ matrix_corporal_container_labels_traefik_tls }}"
  42. matrix_corporal_container_labels_api_traefik_tls_certResolver: "{{ matrix_corporal_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  43. # matrix_corporal_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  44. # See `../templates/labels.j2` for details.
  45. #
  46. # Example:
  47. # matrix_corporal_container_labels_additional_labels: |
  48. # my.label=1
  49. # another.label="here"
  50. matrix_corporal_container_labels_additional_labels: ''
  51. # List of systemd services that matrix-corporal.service depends on
  52. matrix_corporal_systemd_required_services_list: ['docker.service']
  53. matrix_corporal_docker_image: "{{ matrix_corporal_docker_image_name_prefix }}devture/matrix-corporal:{{ matrix_corporal_docker_image_tag }}"
  54. matrix_corporal_docker_image_name_prefix: "{{ 'localhost/' if matrix_corporal_container_image_self_build else matrix_container_global_registry_prefix }}"
  55. matrix_corporal_docker_image_tag: "{{ matrix_corporal_version }}" # for backward-compatibility
  56. matrix_corporal_docker_image_force_pull: "{{ matrix_corporal_docker_image.endswith(':latest') }}"
  57. matrix_corporal_base_path: "{{ matrix_base_data_path }}/corporal"
  58. matrix_corporal_container_src_files_path: "{{ matrix_corporal_base_path }}/container-src"
  59. matrix_corporal_config_dir_path: "{{ matrix_corporal_base_path }}/config"
  60. matrix_corporal_cache_dir_path: "{{ matrix_corporal_base_path }}/cache"
  61. matrix_corporal_var_dir_path: "{{ matrix_corporal_base_path }}/var"
  62. matrix_corporal_matrix_homeserver_domain_name: "{{ matrix_domain }}"
  63. matrix_corporal_matrix_homeserver_api_domain_name: "{{ matrix_server_fqn_matrix }}"
  64. # Controls where matrix-corporal can reach your Synapse server (e.g. "http://matrix-synapse-reverse-proxy-companion:{{ matrix_synapse_container_client_api_port }}").
  65. # If Synapse runs on the same machine, you may need to add its service to `matrix_corporal_systemd_required_services_list`.
  66. matrix_corporal_matrix_homeserver_api_endpoint: ""
  67. # The shared secret between matrix-corporal and Synapse's shared-secret-auth password provider module.
  68. # To use matrix-corporal, the shared-secret-auth password provider needs to be enabled and the secret needs to be identical.
  69. matrix_corporal_matrix_auth_shared_secret: ""
  70. # The shared secret for registering users with Synapse.
  71. # Needs to be identical to Synapse's `registration_shared_secret` setting.
  72. matrix_corporal_matrix_registration_shared_secret: ""
  73. matrix_corporal_matrix_timeout_milliseconds: 45000
  74. matrix_corporal_reconciliation_retry_interval_milliseconds: 30000
  75. matrix_corporal_corporal_user_id_local_part: "matrix-corporal"
  76. matrix_corporal_http_gateway_timeout_milliseconds: 60000
  77. # If enabled, matrix-corporal exposes a `POST /_matrix/corporal/_matrix-internal/identity/v1/check_credentials` API
  78. # on the gateway (Client-Server API) server.
  79. # 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`).
  80. # Doing so allows Interactive Authentication to work.
  81. matrix_corporal_http_gateway_internal_rest_auth_enabled: false
  82. matrix_corporal_http_api_enabled: false
  83. matrix_corporal_http_api_auth_token: ""
  84. matrix_corporal_http_api_timeout_milliseconds: 15000
  85. # Matrix Corporal policy provider configuration (goes directly into the configuration's `PolicyProvider` value)
  86. matrix_corporal_policy_provider_config: ""
  87. matrix_corporal_debug: false
  88. # Default Corporal configuration template which covers the generic use case.
  89. # You can customize it by controlling the various variables inside it.
  90. #
  91. # For a more advanced customization, you can extend the default (see `matrix_corporal_configuration_extension_json`)
  92. # or completely replace this variable with your own template.
  93. #
  94. # The side-effect of this lookup is that Ansible would even parse the JSON for us, returning a dict.
  95. # This is unlike what it does when looking up YAML template files (no automatic parsing there).
  96. matrix_corporal_configuration_default: "{{ lookup('template', 'templates/config.json.j2') }}"
  97. # Your custom JSON configuration for Corporal should go to `matrix_corporal_configuration_extension_json`.
  98. # This configuration extends the default starting configuration (`matrix_corporal_configuration_default`).
  99. #
  100. # You can override individual variables from the default configuration, or introduce new ones.
  101. #
  102. # If you need something more special, you can take full control by
  103. # completely redefining `matrix_corporal_configuration_default`.
  104. #
  105. # Example configuration extension follows:
  106. #
  107. # matrix_corporal_configuration_extension_json: |
  108. # {
  109. # "Matrix": {
  110. # "TimeoutMilliseconds": 60000
  111. # }
  112. # }
  113. matrix_corporal_configuration_extension_json: '{}'
  114. matrix_corporal_configuration_extension: "{{ matrix_corporal_configuration_extension_json | from_json if matrix_corporal_configuration_extension_json | from_json is mapping else {} }}"
  115. # Holds the final Corporal configuration (a combination of the default and its extension).
  116. # You most likely don't need to touch this variable. Instead, see `matrix_corporal_configuration_default`.
  117. matrix_corporal_configuration: "{{ matrix_corporal_configuration_default | combine(matrix_corporal_configuration_extension, recursive=True) }}"