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

71 строка
3.7 KiB

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