Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

69 строки
3.7 KiB

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