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.
 
 

112 lines
4.8 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_docker_image: "turt2live/matrix-appservice-webhooks:latest"
  5. matrix_appservice_webhooks_docker_image_force_pull: "{{ matrix_appservice_webhooks_docker_image.endswith(':latest') }}"
  6. matrix_appservice_webhooks_base_path: "{{ matrix_base_data_path }}/appservice-webhooks"
  7. matrix_appservice_webhooks_config_path: "{{ matrix_appservice_webhooks_base_path }}/config"
  8. matrix_appservice_webhooks_data_path: "{{ matrix_appservice_webhooks_base_path }}/data"
  9. matrix_appservice_webhooks_public_endpoint: /appservice-webhooks
  10. matrix_appservice_webhooks_inbound_uri_prefix: "{{ matrix_homeserver_url }}{{ matrix_appservice_webhooks_public_endpoint }}"
  11. # Once you make a control room in Matrix, you can get its ID by typing any message and checking its source
  12. matrix_appservice_webhooks_control_room_id: ''
  13. matrix_appservice_webhooks_bot_name: 'webhookbot'
  14. matrix_appservice_webhooks_user_prefix: '_webhook'
  15. # Controls the webhooks_PORT and MATRIX_PORT of the installation
  16. matrix_appservice_webhooks_matrix_port: 6789
  17. matrix_appservice_webhooks_webhooks_port: 6788
  18. # Controls whether the appservice-webhooks container exposes its HTTP port (tcp/6788 in the container).
  19. #
  20. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
  21. matrix_appservice_webhooks_container_http_host_bind_port: ''
  22. matrix_appservice_webhooks_homeserver_media_url: "matrix.{{ matrix_domain }}"
  23. matrix_appservice_webhooks_homeserver_url: "http://matrix-synapse:8008"
  24. matrix_appservice_webhooks_homeserver_domain: "{{ matrix_domain }}"
  25. matrix_appservice_webhooks_appservice_url: 'http://matrix-appservice-webhooks'
  26. # A list of extra arguments to pass to the container
  27. matrix_appservice_webhooks_container_extra_arguments: []
  28. # List of systemd services that matrix-appservice-webhooks.service depends on.
  29. matrix_appservice_webhooks_systemd_required_services_list: ['docker.service', 'matrix-synapse.service']
  30. # List of systemd services that matrix-appservice-webhooks.service wants
  31. matrix_appservice_webhooks_systemd_wanted_services_list: []
  32. matrix_appservice_webhooks_appservice_token: ''
  33. matrix_appservice_webhooks_homeserver_token: ''
  34. matrix_appservice_webhooks_id_token: ''
  35. matrix_appservice_webhooks_api_secret: ''
  36. matrix_appservice_webhooks_configuration_yaml: |
  37. # Configuration specific to the application service. All fields (unless otherwise marked) are required.
  38. homeserver:
  39. # The domain for the client-server API calls.
  40. url: "{{ matrix_appservice_webhooks_homeserver_url }}"
  41. # The domain part for user IDs on this home server. Usually, but not always, this is the same as the
  42. # home server's URL.
  43. domain: "{{ matrix_domain }}"
  44. # Configuration specific to the bridge. All fields (unless otherwise marked) are required.
  45. webhookBot:
  46. # The localpart to use for the bot. May require re-registering the application service.
  47. localpart: "_webhook"
  48. # Appearance options for the Matrix bot
  49. appearance:
  50. displayName: "Webhook Bridge"
  51. avatarUrl: "http://i.imgur.com/IDOBtEJ.png" # webhook icon
  52. # Provisioning API options
  53. provisioning:
  54. # Your secret for the API. Required for all provisioning API requests.
  55. secret: '{{ matrix_appservice_webhooks_api_secret }}'
  56. # Configuration related to the web portion of the bridge. Handles the inbound webhooks
  57. web:
  58. hookUrlBase: "{{ matrix_appservice_webhooks_inbound_uri_prefix }}"
  59. logging:
  60. file: data/webhook.log
  61. console: true
  62. consoleLevel: info
  63. fileLevel: verbose
  64. writeFiles: true
  65. rotate:
  66. size: 52428800 # bytes, default is 50mb
  67. count: 5
  68. matrix_appservice_webhooks_configuration_extension_yaml: |
  69. #
  70. matrix_appservice_webhooks_configuration_extension: "{{ matrix_appservice_webhooks_configuration_extension_yaml|from_yaml if matrix_appservice_webhooks_configuration_extension_yaml|from_yaml else {} }}"
  71. matrix_appservice_webhooks_configuration: "{{ matrix_appservice_webhooks_configuration_yaml|from_yaml|combine(matrix_appservice_webhooks_configuration_extension, recursive=True) }}"
  72. matrix_appservice_webhooks_registration_yaml: |
  73. id: "{{ matrix_appservice_webhooks_id_token }}"
  74. hs_token: "{{ matrix_appservice_webhooks_homeserver_token }}"
  75. as_token: "{{ matrix_appservice_webhooks_appservice_token }}"
  76. namespaces:
  77. users:
  78. - exclusive: true
  79. regex: '@{{ matrix_appservice_webhooks_user_prefix }}.*'
  80. aliases: []
  81. rooms: []
  82. url: "{{ matrix_appservice_webhooks_appservice_url }}:{{ matrix_appservice_webhooks_matrix_port }}"
  83. sender_localpart: _webhook
  84. rate_limited: false
  85. protocols: null
  86. matrix_appservice_webhooks_registration: "{{ matrix_appservice_webhooks_registration_yaml|from_yaml }}"