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

115 строки
4.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_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. # Logging information (error, warn, info, verbose, debug is availabe) default is: info
  37. matrix_appservice_webhooks_log_level: 'info'
  38. matrix_appservice_webhooks_configuration_yaml: |
  39. # Configuration specific to the application service. All fields (unless otherwise marked) are required.
  40. homeserver:
  41. # The domain for the client-server API calls.
  42. url: "{{ matrix_appservice_webhooks_homeserver_url }}"
  43. # The domain part for user IDs on this home server. Usually, but not always, this is the same as the
  44. # home server's URL.
  45. domain: "{{ matrix_domain }}"
  46. # Configuration specific to the bridge. All fields (unless otherwise marked) are required.
  47. webhookBot:
  48. # The localpart to use for the bot. May require re-registering the application service.
  49. localpart: "_webhook"
  50. # Appearance options for the Matrix bot
  51. appearance:
  52. displayName: "Webhook Bridge"
  53. avatarUrl: "http://i.imgur.com/IDOBtEJ.png" # webhook icon
  54. # Provisioning API options
  55. provisioning:
  56. # Your secret for the API. Required for all provisioning API requests.
  57. secret: '{{ matrix_appservice_webhooks_api_secret }}'
  58. # Configuration related to the web portion of the bridge. Handles the inbound webhooks
  59. web:
  60. hookUrlBase: "{{ matrix_appservice_webhooks_inbound_uri_prefix }}"
  61. logging:
  62. file: data/webhook.log
  63. console: true
  64. consoleLevel: {{ matrix_appservice_webhooks_log_level }}
  65. fileLevel: verbose
  66. writeFiles: false
  67. rotate:
  68. size: 52428800 # bytes, default is 50mb
  69. count: 5
  70. matrix_appservice_webhooks_configuration_extension_yaml: |
  71. #
  72. matrix_appservice_webhooks_configuration_extension: "{{ matrix_appservice_webhooks_configuration_extension_yaml|from_yaml if matrix_appservice_webhooks_configuration_extension_yaml|from_yaml else {} }}"
  73. matrix_appservice_webhooks_configuration: "{{ matrix_appservice_webhooks_configuration_yaml|from_yaml|combine(matrix_appservice_webhooks_configuration_extension, recursive=True) }}"
  74. matrix_appservice_webhooks_registration_yaml: |
  75. id: "{{ matrix_appservice_webhooks_id_token }}"
  76. hs_token: "{{ matrix_appservice_webhooks_homeserver_token }}"
  77. as_token: "{{ matrix_appservice_webhooks_appservice_token }}"
  78. namespaces:
  79. users:
  80. - exclusive: true
  81. regex: '@{{ matrix_appservice_webhooks_user_prefix }}.*'
  82. aliases: []
  83. rooms: []
  84. url: "{{ matrix_appservice_webhooks_appservice_url }}:{{ matrix_appservice_webhooks_matrix_port }}"
  85. sender_localpart: _webhook
  86. rate_limited: false
  87. protocols: null
  88. matrix_appservice_webhooks_registration: "{{ matrix_appservice_webhooks_registration_yaml|from_yaml }}"