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

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