Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

85 lignes
4.6 KiB

  1. # matrix-appservice-webhooks is a Matrix <-> webhook bridge
  2. # See: https://github.com/turt2live/matrix-appservice-webhooks
  3. matrix_appservice_webhooks_enabled: true
  4. matrix_appservice_webhooks_container_image_self_build: false
  5. matrix_appservice_webhooks_container_image_self_build_repo: "https://github.com/turt2live/matrix-appservice-webhooks"
  6. matrix_appservice_webhooks_container_image_self_build_repo_version: "{{ 'master' if matrix_appservice_webhooks_version == 'latest' else matrix_appservice_webhooks_version }}"
  7. matrix_appservice_webhooks_container_image_self_build_repo_dockerfile_path: "Dockerfile"
  8. matrix_appservice_webhooks_version: latest
  9. matrix_appservice_webhooks_docker_image: "{{ matrix_appservice_webhooks_docker_image_name_prefix }}turt2live/matrix-appservice-webhooks:{{ matrix_appservice_webhooks_version }}"
  10. matrix_appservice_webhooks_docker_image_name_prefix: "{{ 'localhost/' if matrix_appservice_webhooks_container_image_self_build else matrix_container_global_registry_prefix }}"
  11. matrix_appservice_webhooks_docker_image_force_pull: "{{ matrix_appservice_webhooks_docker_image.endswith(':latest') }}"
  12. matrix_appservice_webhooks_base_path: "{{ matrix_base_data_path }}/appservice-webhooks"
  13. matrix_appservice_webhooks_config_path: "{{ matrix_appservice_webhooks_base_path }}/config"
  14. matrix_appservice_webhooks_data_path: "{{ matrix_appservice_webhooks_base_path }}/data"
  15. matrix_appservice_webhooks_docker_src_files_path: "{{ matrix_appservice_webhooks_base_path }}/docker-src"
  16. # If nginx-proxy is disabled, the bridge itself expects its endpoint to be on its own domain (e.g. "localhost:6789")
  17. matrix_appservice_webhooks_public_endpoint: /appservice-webhooks
  18. matrix_appservice_webhooks_inbound_uri_prefix: "{{ matrix_homeserver_url }}{{ matrix_appservice_webhooks_public_endpoint }}"
  19. # Once you make a control room in Matrix, you can get its ID by typing any message and checking its source
  20. matrix_appservice_webhooks_control_room_id: ''
  21. matrix_appservice_webhooks_bot_name: 'webhookbot'
  22. matrix_appservice_webhooks_user_prefix: '_webhook'
  23. # Controls the webhooks_PORT and MATRIX_PORT of the installation
  24. matrix_appservice_webhooks_matrix_port: 6789
  25. # Controls whether the appservice-webhooks container exposes its HTTP port (tcp/6789 in the container).
  26. #
  27. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
  28. matrix_appservice_webhooks_container_http_host_bind_port: ''
  29. matrix_appservice_webhooks_homeserver_media_url: "{{ matrix_server_fqn_matrix }}"
  30. matrix_appservice_webhooks_homeserver_url: ""
  31. matrix_appservice_webhooks_homeserver_domain: "{{ matrix_domain }}"
  32. matrix_appservice_webhooks_appservice_url: 'http://matrix-appservice-webhooks'
  33. # A list of extra arguments to pass to the container
  34. matrix_appservice_webhooks_container_extra_arguments: []
  35. # List of systemd services that matrix-appservice-webhooks.service depends on.
  36. matrix_appservice_webhooks_systemd_required_services_list: ['docker.service', 'matrix-synapse.service']
  37. # List of systemd services that matrix-appservice-webhooks.service wants
  38. matrix_appservice_webhooks_systemd_wanted_services_list: []
  39. matrix_appservice_webhooks_appservice_token: ''
  40. matrix_appservice_webhooks_homeserver_token: ''
  41. matrix_appservice_webhooks_id_token: ''
  42. matrix_appservice_webhooks_api_secret: ''
  43. # Logging information (info and verbose is available) default is: info
  44. matrix_appservice_webhooks_log_level: 'info'
  45. matrix_appservice_webhooks_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  46. matrix_appservice_webhooks_configuration_extension_yaml: |
  47. #
  48. matrix_appservice_webhooks_configuration_extension: "{{ matrix_appservice_webhooks_configuration_extension_yaml|from_yaml if matrix_appservice_webhooks_configuration_extension_yaml|from_yaml else {} }}"
  49. matrix_appservice_webhooks_configuration: "{{ matrix_appservice_webhooks_configuration_yaml|from_yaml|combine(matrix_appservice_webhooks_configuration_extension, recursive=True) }}"
  50. matrix_appservice_webhooks_registration_yaml: |
  51. id: "{{ matrix_appservice_webhooks_id_token }}"
  52. hs_token: "{{ matrix_appservice_webhooks_homeserver_token }}"
  53. as_token: "{{ matrix_appservice_webhooks_appservice_token }}"
  54. namespaces:
  55. users:
  56. - exclusive: true
  57. regex: '^@{{ matrix_appservice_webhooks_user_prefix | regex_escape }}.*:{{ matrix_domain | regex_escape }}$'
  58. aliases: []
  59. rooms: []
  60. url: "{{ matrix_appservice_webhooks_appservice_url }}:{{ matrix_appservice_webhooks_matrix_port }}"
  61. sender_localpart: _webhook
  62. rate_limited: false
  63. protocols: null
  64. matrix_appservice_webhooks_registration: "{{ matrix_appservice_webhooks_registration_yaml|from_yaml }}"