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.
 
 

84 regels
4.5 KiB

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