Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

116 Zeilen
5.0 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. # If nginx-proxy is disabled, the bridge itself expects its endpoint to be on its own domain (e.g. "localhost:6789")
  10. matrix_appservice_webhooks_public_endpoint: /appservice-webhooks
  11. matrix_appservice_webhooks_inbound_uri_prefix: "{{ matrix_homeserver_url }}{{ matrix_appservice_webhooks_public_endpoint }}"
  12. # Once you make a control room in Matrix, you can get its ID by typing any message and checking its source
  13. matrix_appservice_webhooks_control_room_id: ''
  14. matrix_appservice_webhooks_bot_name: 'webhookbot'
  15. matrix_appservice_webhooks_user_prefix: '_webhook'
  16. # Controls the webhooks_PORT and MATRIX_PORT of the installation
  17. matrix_appservice_webhooks_matrix_port: 6789
  18. matrix_appservice_webhooks_webhooks_port: 6788
  19. # Controls whether the appservice-webhooks container exposes its HTTP port (tcp/6788 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.{{ matrix_domain }}"
  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: |
  40. # Configuration specific to the application service. All fields (unless otherwise marked) are required.
  41. homeserver:
  42. # The domain for the client-server API calls.
  43. url: "{{ matrix_appservice_webhooks_homeserver_url }}"
  44. # The domain part for user IDs on this home server. Usually, but not always, this is the same as the
  45. # home server's URL.
  46. domain: "{{ matrix_domain }}"
  47. # Configuration specific to the bridge. All fields (unless otherwise marked) are required.
  48. webhookBot:
  49. # The localpart to use for the bot. May require re-registering the application service.
  50. localpart: "_webhook"
  51. # Appearance options for the Matrix bot
  52. appearance:
  53. displayName: "Webhook Bridge"
  54. avatarUrl: "http://i.imgur.com/IDOBtEJ.png" # webhook icon
  55. # Provisioning API options
  56. provisioning:
  57. # Your secret for the API. Required for all provisioning API requests.
  58. secret: '{{ matrix_appservice_webhooks_api_secret }}'
  59. # Configuration related to the web portion of the bridge. Handles the inbound webhooks
  60. web:
  61. hookUrlBase: "{{ matrix_appservice_webhooks_inbound_uri_prefix }}"
  62. logging:
  63. file: data/webhook.log
  64. console: true
  65. consoleLevel: {{ matrix_appservice_webhooks_log_level }}
  66. fileLevel: verbose
  67. writeFiles: false
  68. rotate:
  69. size: 52428800 # bytes, default is 50mb
  70. count: 5
  71. matrix_appservice_webhooks_configuration_extension_yaml: |
  72. #
  73. matrix_appservice_webhooks_configuration_extension: "{{ matrix_appservice_webhooks_configuration_extension_yaml|from_yaml if matrix_appservice_webhooks_configuration_extension_yaml|from_yaml else {} }}"
  74. matrix_appservice_webhooks_configuration: "{{ matrix_appservice_webhooks_configuration_yaml|from_yaml|combine(matrix_appservice_webhooks_configuration_extension, recursive=True) }}"
  75. matrix_appservice_webhooks_registration_yaml: |
  76. id: "{{ matrix_appservice_webhooks_id_token }}"
  77. hs_token: "{{ matrix_appservice_webhooks_homeserver_token }}"
  78. as_token: "{{ matrix_appservice_webhooks_appservice_token }}"
  79. namespaces:
  80. users:
  81. - exclusive: true
  82. regex: '@{{ matrix_appservice_webhooks_user_prefix }}.*'
  83. aliases: []
  84. rooms: []
  85. url: "{{ matrix_appservice_webhooks_appservice_url }}:{{ matrix_appservice_webhooks_matrix_port }}"
  86. sender_localpart: _webhook
  87. rate_limited: false
  88. protocols: null
  89. matrix_appservice_webhooks_registration: "{{ matrix_appservice_webhooks_registration_yaml|from_yaml }}"