Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

97 lines
5.6 KiB

  1. # SPDX-FileCopyrightText: 2023 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2023 MDAD project contributors
  3. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  4. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. # matrix-user-verification-service - Service to verify details of a user based on an Open ID token
  9. # Project source code URL: https://github.com/matrix-org/matrix-user-verification-service
  10. # Set this to the display name for ansible used in Output e.g. fail_msg
  11. matrix_user_verification_service_ansible_name: "Matrix User Verification Service"
  12. # Enable by default. This is overwritten in provided group vars.
  13. matrix_user_verification_service_enabled: true
  14. matrix_user_verification_service_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  15. matrix_user_verification_service_container_image_self_build_repo: "https://github.com/matrix-org/matrix-user-verification-service"
  16. matrix_user_verification_service_container_image_self_build_branch: "{{ 'master' if matrix_registration_version == 'latest' else matrix_user_verification_service_version }}"
  17. # renovate: datasource=docker depName=matrixdotorg/matrix-user-verification-service
  18. matrix_user_verification_service_version: "v3.0.0"
  19. # Paths
  20. matrix_user_verification_service_base_path: "{{ matrix_base_data_path }}/user-verification-service"
  21. matrix_user_verification_service_config_path: "{{ matrix_user_verification_service_base_path }}/config"
  22. matrix_user_verification_service_config_env_file: "{{ matrix_user_verification_service_config_path }}/.env"
  23. matrix_user_verification_service_container_src_files_path: "{{ matrix_user_verification_service_base_path }}/docker-src"
  24. # Docker
  25. matrix_user_verification_service_container_image: "{{ matrix_user_verification_service_container_image_registry_prefix }}matrixdotorg/matrix-user-verification-service:{{ matrix_user_verification_service_version }}"
  26. matrix_user_verification_service_container_image_registry_prefix: "{{ 'localhost/' if matrix_user_verification_service_container_image_self_build else matrix_user_verification_service_container_image_registry_prefix_upstream }}"
  27. matrix_user_verification_service_container_image_registry_prefix_upstream: "{{ matrix_user_verification_service_container_image_registry_prefix_upstream_default }}"
  28. matrix_user_verification_service_container_image_registry_prefix_upstream_default: "docker.io/"
  29. # The base container network. It will be auto-created by this role if it doesn't exist already.
  30. matrix_user_verification_service_container_network: ""
  31. # A list of additional container networks that the container would be connected to.
  32. # The role does not create these networks, so make sure they already exist.
  33. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  34. matrix_user_verification_service_container_additional_networks: []
  35. matrix_user_verification_service_container_name: "matrix-user-verification-service"
  36. # This will be set in group vars
  37. matrix_user_verification_service_container_http_host_bind_port: ''
  38. matrix_user_verification_service_container_extra_arguments: []
  39. # Systemd
  40. matrix_user_verification_service_systemd_required_services_list: []
  41. matrix_user_verification_service_systemd_wanted_services_list: []
  42. matrix_user_verification_service_systemd_service_basename: "matrix-user-verification-service"
  43. matrix_user_verification_service_systemd_service_name: "{{ matrix_user_verification_service_systemd_service_basename }}.service"
  44. # Matrix User Verification Service Configuration
  45. ## REQUIRED
  46. # Homeserver client API admin token (synapse only)- Required for the service to verify room membership
  47. matrix_user_verification_service_uvs_access_token: ''
  48. # homeserver client api url
  49. matrix_user_verification_service_uvs_homeserver_url: ""
  50. # disable check for non private ip range of homeserver. e.g. set to `true` if your homeserver domain resolves to a private ip.
  51. matrix_user_verification_service_uvs_disable_ip_blacklist: false
  52. ## OPTIONAL
  53. # Require an Auth-Token with API calls. If set to false, UVS will reply to any API call.
  54. # The Auth-Token is defined via: matrix_user_verification_service_uvs_auth_token
  55. matrix_user_verification_service_uvs_require_auth: true
  56. # Auth token to protect the API
  57. # If enabled any calls to the provided API endpoints need have the header "Authorization: Bearer TOKEN".
  58. # A Token will be derived from matrix_homeserver_generic_secret_key in group_vars/matrix_servers
  59. matrix_user_verification_service_uvs_auth_token: ''
  60. # Pin UVS to only check openId Tokens for the matrix_server_name configured by this playbook.
  61. matrix_user_verification_service_uvs_pin_openid_verify_server_name: true
  62. # Matrix server name to verify OpenID tokens against.
  63. # This is not the homeserverURL, but rather the domain in the Matrix "user ID"
  64. # UVS can also be instructed to verify against the Matrix server name passed in the token, to enable set to ""
  65. matrix_user_verification_service_uvs_openid_verify_server_name: "{{ matrix_domain }}"
  66. # Log level
  67. # See choices here: https://github.com/winstonjs/winston#logging-levels
  68. matrix_user_verification_service_uvs_log_level: info
  69. # matrix_user_verification_service_restart_necessary controls whether the service
  70. # will be restarted (when true) or merely started (when false) by the
  71. # systemd service manager role (when conditional restart is enabled).
  72. #
  73. # This value is automatically computed during installation based on whether
  74. # any configuration files, the systemd service file, or the container image changed.
  75. # The default of `false` means "no restart needed" — appropriate when the role's
  76. # installation tasks haven't run (e.g., due to --tags skipping them).
  77. matrix_user_verification_service_restart_necessary: false