Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

234 řádky
12 KiB

  1. ---
  2. # Project source code URL: https://github.com/vector-im/element-web
  3. matrix_client_element_enabled: true
  4. matrix_client_element_container_image_self_build: false
  5. matrix_client_element_container_image_self_build_repo: "https://github.com/vector-im/element-web.git"
  6. # Controls whether to patch webpack.config.js when self-building, so that building can pass on low-memory systems (< 4 GB RAM):
  7. # - https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1357
  8. # - https://github.com/vector-im/element-web/issues/19544
  9. matrix_client_element_container_image_self_build_low_memory_system_patch_enabled: "{{ ansible_memtotal_mb < 4096 }}"
  10. matrix_client_element_version: v1.11.22
  11. matrix_client_element_docker_image: "{{ matrix_client_element_docker_image_name_prefix }}vectorim/element-web:{{ matrix_client_element_version }}"
  12. matrix_client_element_docker_image_name_prefix: "{{ 'localhost/' if matrix_client_element_container_image_self_build else matrix_container_global_registry_prefix }}"
  13. matrix_client_element_docker_image_force_pull: "{{ matrix_client_element_docker_image.endswith(':latest') }}"
  14. matrix_client_element_data_path: "{{ matrix_base_data_path }}/client-element"
  15. matrix_client_element_docker_src_files_path: "{{ matrix_client_element_data_path }}/docker-src"
  16. # The base container network
  17. matrix_client_element_container_network: matrix-client-element
  18. # A list of additional container networks that the container would be connected to.
  19. # The role does not create these networks, so make sure they already exist.
  20. # Use this to expose this container to a reverse proxy, which runs in a different container network.
  21. matrix_client_element_container_additional_networks: []
  22. # Controls whether the matrix-client-element container exposes its HTTP port (tcp/8080 in the container).
  23. #
  24. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8765"), or empty string to not expose.
  25. matrix_client_element_container_http_host_bind_port: ''
  26. # matrix_client_element_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  27. # See `../templates/labels.j2` for details.
  28. #
  29. # To inject your own other container labels, see `matrix_client_element_container_labels_additional_labels`.
  30. matrix_client_element_container_labels_traefik_enabled: true
  31. matrix_client_element_container_labels_traefik_docker_network: "{{ matrix_client_element_container_network }}"
  32. matrix_client_element_container_labels_traefik_hostname: "{{ matrix_server_fqn_element }}"
  33. matrix_client_element_container_labels_traefik_rule: "Host(`{{ matrix_client_element_container_labels_traefik_hostname }}`)"
  34. matrix_client_element_container_labels_traefik_entrypoints: web-secure
  35. matrix_client_element_container_labels_traefik_tls: "{{ matrix_client_element_container_labels_traefik_entrypoints != 'web' }}"
  36. matrix_client_element_container_labels_traefik_tls_certResolver: default # noqa var-naming
  37. # matrix_client_element_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  38. # See `../templates/labels.j2` for details.
  39. #
  40. # Example:
  41. # matrix_client_element_container_labels_additional_labels: |
  42. # my.label=1
  43. # another.label="here"
  44. matrix_client_element_container_labels_additional_labels: ''
  45. # A list of extra arguments to pass to the container
  46. matrix_client_element_container_extra_arguments: []
  47. # List of systemd services that matrix-client-element.service depends on
  48. matrix_client_element_systemd_required_services_list: ['docker.service']
  49. # Element config.json customizations
  50. matrix_client_element_default_server_name: "{{ matrix_domain }}"
  51. matrix_client_element_default_hs_url: ""
  52. matrix_client_element_default_is_url: ~
  53. matrix_client_element_disable_custom_urls: true
  54. matrix_client_element_disable_guests: true
  55. matrix_client_element_integrations_ui_url: "https://scalar.vector.im/"
  56. matrix_client_element_integrations_rest_url: "https://scalar.vector.im/api"
  57. matrix_client_element_integrations_widgets_urls: ["https://scalar.vector.im/api"]
  58. matrix_client_element_integrations_jitsi_widget_url: "https://scalar.vector.im/api/widgets/jitsi.html"
  59. matrix_client_element_permalinkPrefix: "https://matrix.to" # noqa var-naming
  60. matrix_client_element_bug_report_endpoint_url: "https://element.io/bugreports/submit"
  61. matrix_client_element_showLabsSettings: true # noqa var-naming
  62. # Element public room directory server(s)
  63. matrix_client_element_roomdir_servers: ['matrix.org']
  64. matrix_client_element_welcome_user_id: ~
  65. # Branding of Element
  66. matrix_client_element_brand: "Element"
  67. # URL to Logo on welcome page
  68. matrix_client_element_welcome_logo: "welcome/images/logo.svg"
  69. # URL of link on welcome image
  70. matrix_client_element_welcome_logo_link: "https://element.io"
  71. matrix_client_element_welcome_headline: "_t('Welcome to Element')"
  72. matrix_client_element_welcome_text: "_t('Decentralised, encrypted chat &amp; collaboration powered by [matrix]')"
  73. # Links, shown in footer of welcome page:
  74. # [{"text": "Link text", "url": "https://link.target"}, {"text": "Other link"}]
  75. matrix_client_element_branding_authFooterLinks: ~ # noqa var-naming
  76. # URL to image, shown during Login
  77. matrix_client_element_branding_authHeaderLogoUrl: "{{ matrix_client_element_welcome_logo }}" # noqa var-naming
  78. # URL to Wallpaper, shown in background of welcome page
  79. matrix_client_element_branding_welcomeBackgroundUrl: ~ # noqa var-naming
  80. matrix_client_element_page_template_welcome_path: "{{ role_path }}/templates/welcome.html.j2"
  81. # By default, there's no Element homepage (when logged in). If you wish to have one,
  82. # point this to a `home.html` template file on your local filesystem.
  83. matrix_client_element_embedded_pages_home_path: ~
  84. matrix_client_element_jitsi_preferredDomain: '' # noqa var-naming
  85. # Controls whether the self-check feature should validate SSL certificates.
  86. matrix_client_element_self_check_validate_certificates: true
  87. # don't show the registration button on welcome page
  88. matrix_client_element_registration_enabled: false
  89. # Controls whether presence will be enabled
  90. matrix_client_element_enable_presence_by_hs_url: ~
  91. # Controls whether custom Element themes will be installed.
  92. # When enabled, all themes found in the `matrix_client_element_themes_repository_url` repository
  93. # will be installed and enabled automatically.
  94. matrix_client_element_themes_enabled: false
  95. matrix_client_element_themes_repository_url: https://github.com/aaronraimist/element-themes
  96. matrix_client_element_themes_repository_version: master
  97. # Controls the default theme
  98. matrix_client_element_default_theme: 'light'
  99. # Controls the `settingsDefault.custom_themes` setting of the Element configuration.
  100. # You can use this setting to define custom themes.
  101. #
  102. # Also, look at `matrix_client_element_themes_enabled` for a way to pull in a bunch of custom themes automatically.
  103. # If you define your own themes here and set `matrix_client_element_themes_enabled: true`, your themes will be preserved as well.
  104. #
  105. # Note that for a custom theme to work well, all Element instances that you use must have the same theme installed.
  106. matrix_client_element_settingDefaults_custom_themes: [] # noqa var-naming
  107. # Default Element configuration template which covers the generic use case.
  108. # You can customize it by controlling the various variables inside it.
  109. #
  110. # For a more advanced customization, you can extend the default (see `matrix_client_element_configuration_extension_json`)
  111. # or completely replace this variable with your own template.
  112. #
  113. # The side-effect of this lookup is that Ansible would even parse the JSON for us, returning a dict.
  114. # This is unlike what it does when looking up YAML template files (no automatic parsing there).
  115. matrix_client_element_configuration_default: "{{ lookup('template', 'templates/config.json.j2') }}"
  116. # Your custom JSON configuration for Element should go to `matrix_client_element_configuration_extension_json`.
  117. # This configuration extends the default starting configuration (`matrix_client_element_configuration_default`).
  118. #
  119. # You can override individual variables from the default configuration, or introduce new ones.
  120. #
  121. # If you need something more special, you can take full control by
  122. # completely redefining `matrix_client_element_configuration_default`.
  123. #
  124. # Example configuration extension follows:
  125. #
  126. # matrix_client_element_configuration_extension_json: |
  127. # {
  128. # "disable_3pid_login": true,
  129. # "disable_login_language_selector": true
  130. # }
  131. matrix_client_element_configuration_extension_json: '{}'
  132. matrix_client_element_configuration_extension: "{{ matrix_client_element_configuration_extension_json | from_json if matrix_client_element_configuration_extension_json | from_json is mapping else {} }}"
  133. # Holds the final Element configuration (a combination of the default and its extension).
  134. # You most likely don't need to touch this variable. Instead, see `matrix_client_element_configuration_default`.
  135. matrix_client_element_configuration: "{{ matrix_client_element_configuration_default | combine(matrix_client_element_configuration_extension, recursive=True) }}"
  136. # Element Location sharing functionality
  137. # More info: https://element.io/blog/element-launches-e2ee-location-sharing/
  138. # How to host your own map tile server: https://matrix.org/docs/guides/map-tile-server
  139. matrix_client_element_location_sharing_enabled: false
  140. # Default Element location sharing map style configuration template which covers the generic use case.
  141. # You can customize it by controlling the various variables inside it.
  142. #
  143. # For a more advanced customization, you can extend the default (see `matrix_client_element_location_sharing_map_style_extension_json`)
  144. # or completely replace this variable with your own template.
  145. #
  146. # The side-effect of this lookup is that Ansible would even parse the JSON for us, returning a dict.
  147. # This is unlike what it does when looking up YAML template files (no automatic parsing there).
  148. matrix_client_element_location_sharing_map_style_default: "{{ lookup('template', 'templates/map_style.json.j2') }}"
  149. # Your custom JSON configuration for Element location sharing map style should go to `matrix_client_element_location_sharing_map_style_extension_json`.
  150. # This configuration extends the default starting configuration (`matrix_client_element_location_sharing_map_style_default`).
  151. #
  152. # You can override individual variables from the default configuration, or introduce new ones.
  153. #
  154. # If you need something more special, you can take full control by
  155. # completely redefining `matrix_client_element_location_sharing_map_style_default`.
  156. #
  157. # Example configuration override follows:
  158. #
  159. # matrix_client_element_location_sharing_map_style_extension_json: |
  160. # {
  161. # "sources": {
  162. # "localsource": {
  163. # "tileSize": 512
  164. # }
  165. # }
  166. # }
  167. #
  168. # Example configuration extension follows:
  169. #
  170. # matrix_client_element_location_sharing_map_style_extension_json: |
  171. # {
  172. # "sources": {
  173. # "anothersource": {
  174. # "attribution": "",
  175. # "tileSize": 256,
  176. # "tiles": ["https://anothertile.example.com/{z}/{x}/{y}.png"],
  177. # "type": "raster"
  178. # }
  179. # }
  180. # }
  181. matrix_client_element_location_sharing_map_style_extension_json: '{}'
  182. matrix_client_element_location_sharing_map_style_extension: "{{ matrix_client_element_location_sharing_map_style_extension_json | from_json if matrix_client_element_location_sharing_map_style_extension_json | from_json is mapping else {} }}"
  183. # Holds the final Element location sharing map style configuration (a combination of the default and its extension).
  184. # You most likely don't need to touch this variable. Instead, see `matrix_client_element_location_sharing_map_style_default`.
  185. matrix_client_element_location_sharing_map_style: "{{ matrix_client_element_location_sharing_map_style_default | combine(matrix_client_element_location_sharing_map_style_extension, recursive=True) }}"
  186. # Example tile servers configuration
  187. # matrix_client_element_location_sharing_map_style_content_sources_localsource_tiles: ["https://tile.example.com/{z}/{x}/{y}.png"]
  188. # or
  189. # matrix_client_element_location_sharing_map_style_content_sources_localsource_tiles: ["https://s1.example.com/{z}/{x}/{y}.png", "https://s2.example.com/{z}/{x}/{y}.png", "https://s3.example.com/{z}/{x}/{y}.png"]
  190. matrix_client_element_location_sharing_map_style_content_sources_localsource_tiles: []
  191. # Map attribution (optional):
  192. # Attribution for OpenStreetMap would be like this:
  193. # matrix_client_element_location_sharing_map_style_content_sources_localsource_attribution: "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors"
  194. # Leave blank, if map does not require attribution.
  195. matrix_client_element_location_sharing_map_style_content_sources_localsource_attribution: ""