Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

105 líneas
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. # 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. # Controls whether the appservice-webhooks container exposes its HTTP port (tcp/6789 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 (info and verbose is available) 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. # Provisioning API options
  51. provisioning:
  52. # Your secret for the API. Required for all provisioning API requests.
  53. secret: '{{ matrix_appservice_webhooks_api_secret }}'
  54. # Configuration related to the web portion of the bridge. Handles the inbound webhooks
  55. web:
  56. hookUrlBase: "{{ matrix_appservice_webhooks_inbound_uri_prefix }}"
  57. logging:
  58. console: true
  59. consoleLevel: {{ matrix_appservice_webhooks_log_level }}
  60. writeFiles: false
  61. matrix_appservice_webhooks_configuration_extension_yaml: |
  62. #
  63. matrix_appservice_webhooks_configuration_extension: "{{ matrix_appservice_webhooks_configuration_extension_yaml|from_yaml if matrix_appservice_webhooks_configuration_extension_yaml|from_yaml else {} }}"
  64. matrix_appservice_webhooks_configuration: "{{ matrix_appservice_webhooks_configuration_yaml|from_yaml|combine(matrix_appservice_webhooks_configuration_extension, recursive=True) }}"
  65. matrix_appservice_webhooks_registration_yaml: |
  66. id: "{{ matrix_appservice_webhooks_id_token }}"
  67. hs_token: "{{ matrix_appservice_webhooks_homeserver_token }}"
  68. as_token: "{{ matrix_appservice_webhooks_appservice_token }}"
  69. namespaces:
  70. users:
  71. - exclusive: true
  72. regex: '^@{{ matrix_appservice_webhooks_user_prefix | regex_escape }}.*:{{ matrix_domain | regex_escape }}$'
  73. aliases: []
  74. rooms: []
  75. url: "{{ matrix_appservice_webhooks_appservice_url }}:{{ matrix_appservice_webhooks_matrix_port }}"
  76. sender_localpart: _webhook
  77. rate_limited: false
  78. protocols: null
  79. matrix_appservice_webhooks_registration: "{{ matrix_appservice_webhooks_registration_yaml|from_yaml }}"