Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

79 wiersze
4.1 KiB

  1. ---
  2. # Project source code URL: https://github.com/vector-im/hydrogen-web
  3. matrix_client_hydrogen_enabled: true
  4. # Self building is used by default because the `config.json` file is only read at build time.
  5. # The pre-built images also were not functional as of 2021-05-15.
  6. matrix_client_hydrogen_container_image_self_build: true
  7. matrix_client_hydrogen_container_image_self_build_repo: "https://github.com/vector-im/hydrogen-web.git"
  8. matrix_client_hydrogen_version: v0.2.33
  9. matrix_client_hydrogen_docker_image: "{{ matrix_client_hydrogen_docker_image_name_prefix }}vectorim/hydrogen-web:{{ matrix_client_hydrogen_version }}"
  10. matrix_client_hydrogen_docker_image_name_prefix: "{{ 'localhost/' if matrix_client_hydrogen_container_image_self_build else matrix_container_global_registry_prefix }}"
  11. matrix_client_hydrogen_docker_image_force_pull: "{{ matrix_client_hydrogen_docker_image.endswith(':latest') }}"
  12. matrix_client_hydrogen_data_path: "{{ matrix_base_data_path }}/client-hydrogen"
  13. matrix_client_hydrogen_docker_src_files_path: "{{ matrix_client_hydrogen_data_path }}/docker-src"
  14. # Controls whether the container exposes its HTTP port (tcp/8080 in the container).
  15. #
  16. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8768"), or empty string to not expose.
  17. matrix_client_hydrogen_container_http_host_bind_port: ''
  18. # A list of extra arguments to pass to the container
  19. matrix_client_hydrogen_container_extra_arguments: []
  20. # List of systemd services that matrix-client-hydrogen.service depends on
  21. matrix_client_hydrogen_systemd_required_services_list: ['docker.service']
  22. # Controls whether the self-check feature should validate SSL certificates.
  23. matrix_client_hydrogen_self_check_validate_certificates: true
  24. # config.json
  25. matrix_client_hydrogen_push: {
  26. "appId": "io.element.hydrogen.web",
  27. "gatewayUrl": "https://matrix.org",
  28. "applicationServerKey": "BC-gpSdVHEXhvHSHS0AzzWrQoukv2BE7KzpoPO_FfPacqOo3l1pdqz7rSgmB04pZCWaHPz7XRe6fjLaC-WPDopM"
  29. }
  30. matrix_client_hydrogen_default_hs_url: ""
  31. matrix_client_hydrogen_bugReportEndpointUrl: "https://element.io/bugreports/submit" # noqa var-naming
  32. # Default Hydrogen configuration template which covers the generic use case.
  33. # You can customize it by controlling the various variables inside it.
  34. #
  35. # For a more advanced customization, you can extend the default (see `matrix_client_hydrogen_configuration_extension_json`)
  36. # or completely replace this variable with your own template.
  37. #
  38. # The side-effect of this lookup is that Ansible would even parse the JSON for us, returning a dict.
  39. # This is unlike what it does when looking up YAML template files (no automatic parsing there).
  40. matrix_client_hydrogen_configuration_default: "{{ lookup('template', 'templates/config.json.j2') }}"
  41. # Your custom JSON configuration for Hydrogen should go to `matrix_client_hydrogen_configuration_extension_json`.
  42. # This configuration extends the default starting configuration (`matrix_client_hydrogen_configuration_default`).
  43. #
  44. # You can override individual variables from the default configuration, or introduce new ones.
  45. #
  46. # If you need something more special, you can take full control by
  47. # completely redefining `matrix_client_hydrogen_configuration_default`.
  48. #
  49. # Example configuration extension follows:
  50. #
  51. # matrix_client_hydrogen_configuration_extension_json: |
  52. # {
  53. # "push": {
  54. # "appId": "io.element.hydrogen.web",
  55. # "gatewayUrl": "https://matrix.org",
  56. # "applicationServerKey": "BC-gpSdVHEXhvHSHS0AzzWrQoukv2BE7KzpoPO_FfPacqOo3l1pdqz7rSgmB04pZCWaHPz7XRe6fjLaC-WPDopM"
  57. # },
  58. # "defaultHomeServer": "matrix.org"
  59. # }
  60. matrix_client_hydrogen_configuration_extension_json: '{}'
  61. matrix_client_hydrogen_configuration_extension: "{{ matrix_client_hydrogen_configuration_extension_json | from_json if matrix_client_hydrogen_configuration_extension_json | from_json is mapping else {} }}"
  62. # Holds the final Hydrogen configuration (a combination of the default and its extension).
  63. # You most likely don't need to touch this variable. Instead, see `matrix_client_hydrogen_configuration_default`.
  64. matrix_client_hydrogen_configuration: "{{ matrix_client_hydrogen_configuration_default | combine(matrix_client_hydrogen_configuration_extension, recursive=True) }}"