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

123 строки
6.4 KiB

  1. ---
  2. # matrix-registration is a simple python application to have a token based matrix registration
  3. # See: https://zeratax.github.io/matrix-registration/
  4. # Project source code URL: https://github.com/ZerataX/matrix-registration
  5. matrix_registration_enabled: true
  6. matrix_registration_container_image_self_build: false
  7. matrix_registration_container_image_self_build_repo: "https://github.com/ZerataX/matrix-registration"
  8. matrix_registration_container_image_self_build_branch: "{{ 'master' if matrix_registration_version == 'latest' else matrix_registration_version }}"
  9. # Controls whether we'll be patching the dependencies in `setup.py` when self-building.
  10. # Without patching, building will likely fail, because of the poor unbounded way dependencies are defined (e.g. `flask-limiter>=1.1.0`).
  11. # This is an attempt to get matrix-registration in its current (outdated) version to build.
  12. matrix_registration_container_image_self_build_python_dependencies_patch_enabled: true
  13. matrix_registration_base_path: "{{ matrix_base_data_path }}/matrix-registration"
  14. matrix_registration_config_path: "{{ matrix_registration_base_path }}/config"
  15. matrix_registration_data_path: "{{ matrix_registration_base_path }}/data"
  16. matrix_registration_docker_src_files_path: "{{ matrix_registration_base_path }}/docker-src"
  17. matrix_registration_version: "v0.7.2"
  18. matrix_registration_docker_image: "{{ matrix_registration_docker_image_name_prefix }}zeratax/matrix-registration:{{ matrix_registration_version }}"
  19. matrix_registration_docker_image_name_prefix: "{{ 'localhost/' if matrix_registration_container_image_self_build else matrix_container_global_registry_prefix }}"
  20. matrix_registration_docker_image_force_pull: "{{ matrix_registration_docker_image.endswith(':latest') }}"
  21. # A list of extra arguments to pass to the container
  22. matrix_registration_container_extra_arguments: []
  23. # List of systemd services that matrix-registration.service depends on
  24. matrix_registration_systemd_required_services_list: ['docker.service']
  25. # List of systemd services that matrix-registration.service wants
  26. matrix_registration_systemd_wanted_services_list: []
  27. # Controls whether the matrix-registration container exposes its HTTP port (tcp/5000 in the container).
  28. #
  29. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8767"), or empty string to not expose.
  30. matrix_registration_container_http_host_bind_port: ''
  31. # Database-related configuration fields.
  32. #
  33. # To use SQLite, stick to these defaults.
  34. #
  35. # To use Postgres:
  36. # - change the engine (`matrix_registration_database_engine: 'postgres'`)
  37. # - adjust your database credentials via the `matrix_registration_database_*` variables
  38. matrix_registration_database_engine: 'sqlite'
  39. matrix_registration_sqlite_database_path_local: "{{ matrix_registration_data_path }}/db.sqlite3"
  40. matrix_registration_sqlite_database_path_in_container: "/data/db.sqlite3"
  41. matrix_registration_database_username: 'matrix_registration'
  42. matrix_registration_database_password: 'some-password'
  43. matrix_registration_database_hostname: ''
  44. matrix_registration_database_port: 5432
  45. matrix_registration_database_name: 'matrix_registration'
  46. matrix_registration_database_connection_string: 'postgresql://{{ matrix_registration_database_username }}:{{ matrix_registration_database_password }}@{{ matrix_registration_database_hostname }}:{{ matrix_registration_database_port }}/{{ matrix_registration_database_name }}'
  47. # For some reason, matrix-registraiton expects the `db` field to be like this: `sqlite:////data/db.sqlite3`.
  48. # (seems like one too many slashes, but..)
  49. matrix_registration_db: "{{
  50. {
  51. 'sqlite': ('sqlite:///' + matrix_registration_sqlite_database_path_in_container),
  52. 'postgres': matrix_registration_database_connection_string,
  53. }[matrix_registration_database_engine]
  54. }}"
  55. # The path at which Matrix Registration will be exposed on `matrix.DOMAIN`
  56. # (only applies when matrix-nginx-proxy is used).
  57. matrix_registration_public_endpoint: /matrix-registration
  58. matrix_registration_base_url: "{{ matrix_registration_public_endpoint }}"
  59. matrix_registration_api_register_endpoint: "{{ matrix_homeserver_url }}{{ matrix_registration_public_endpoint }}/register"
  60. matrix_registration_api_token_endpoint: "{{ matrix_homeserver_url }}{{ matrix_registration_public_endpoint }}/token"
  61. matrix_registration_api_validate_certs: true
  62. # The URL to your homeserver (e.g.: `https://matrix.DOMAIN`).
  63. # A local (in-container address) is preferable.
  64. matrix_registration_server_location: ""
  65. matrix_registration_server_name: "{{ matrix_domain }}"
  66. # matrix_registration_shared_secret needs to match the homeserver's registration secret.
  67. # For Synapse, that's the `registration_shared_secret` setting.
  68. matrix_registration_shared_secret: ""
  69. # matrix_registration_admin_secret is your own admin secret for using matrix-registration (creating new tokens, etc.)
  70. matrix_registration_admin_secret: ""
  71. matrix_registration_riot_instance: "https://riot.im/app/"
  72. # Default matrix-registration configuration template which covers the generic use case.
  73. # You can customize it by controlling the various variables inside it.
  74. #
  75. # For a more advanced customization, you can extend the default (see `matrix_registration_configuration_extension_yaml`)
  76. # or completely replace this variable with your own template.
  77. matrix_registration_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  78. matrix_registration_configuration_extension_yaml: |
  79. # Your custom YAML configuration for registration goes here.
  80. # This configuration extends the default starting configuration (`matrix_registration_configuration_yaml`).
  81. #
  82. # You can override individual variables from the default configuration, or introduce new ones.
  83. #
  84. # If you need something more special, you can take full control by
  85. # completely redefining `matrix_registration_configuration_yaml`.
  86. #
  87. # Example configuration extension follows:
  88. #
  89. # password:
  90. # min_length: 12
  91. matrix_registration_configuration_extension: "{{ matrix_registration_configuration_extension_yaml | from_yaml if matrix_registration_configuration_extension_yaml | from_yaml is mapping else {} }}"
  92. # Holds the final matrix-registration configuration (a combination of the default and its extension).
  93. # You most likely don't need to touch this variable. Instead, see `matrix_registration_configuration_yaml`.
  94. matrix_registration_configuration: "{{ matrix_registration_configuration_yaml | from_yaml | combine(matrix_registration_configuration_extension, recursive=True) }}"