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.
 
 

126 lines
5.2 KiB

  1. # matrix-appservice-slack is a Matrix <-> Slack bridge
  2. # See: https://github.com/matrix-org/matrix-appservice-slack
  3. matrix_appservice_slack_enabled: true
  4. matrix_appservice_slack_docker_image: "matrixdotorg/matrix-appservice-slack:release-1.0.2"
  5. matrix_appservice_slack_docker_image_force_pull: "{{ matrix_appservice_slack_docker_image.endswith(':latest') }}"
  6. matrix_appservice_slack_base_path: "{{ matrix_base_data_path }}/appservice-slack"
  7. matrix_appservice_slack_config_path: "{{ matrix_appservice_slack_base_path }}/config"
  8. matrix_appservice_slack_data_path: "{{ matrix_appservice_slack_base_path }}/data"
  9. matrix_appservice_slack_public_endpoint: /appservice-slack
  10. matrix_appservice_slack_inbound_uri_prefix: "{{ matrix_homeserver_url }}{{ matrix_appservice_slack_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_slack_control_room_id: ''
  13. matrix_appservice_slack_bot_name: 'slackbot'
  14. matrix_appservice_slack_user_prefix: 'slack_'
  15. # Controls the SLACK_PORT and MATRIX_PORT of the installation
  16. matrix_appservice_slack_matrix_port: 9004
  17. matrix_appservice_slack_slack_port: 9003
  18. # Controls whether the appservice-slack container exposes its HTTP port (tcp/9003 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_slack_container_http_host_bind_port: ''
  22. matrix_appservice_slack_homeserver_media_url: "matrix.{{ matrix_domain }}"
  23. matrix_appservice_slack_homeserver_url: "http://matrix-synapse:8008"
  24. matrix_appservice_slack_homeserver_domain: "{{ matrix_domain }}"
  25. matrix_appservice_slack_appservice_url: 'http://matrix-appservice-slack'
  26. # A list of extra arguments to pass to the container
  27. matrix_appservice_slack_container_extra_arguments: []
  28. # List of systemd services that matrix-appservice-slack.service depends on.
  29. matrix_appservice_slack_systemd_required_services_list: ['docker.service']
  30. # List of systemd services that matrix-appservice-slack.service wants
  31. matrix_appservice_slack_systemd_wanted_services_list: []
  32. matrix_appservice_slack_appservice_token: ''
  33. matrix_appservice_slack_homeserver_token: ''
  34. matrix_appservice_slack_id_token: ''
  35. matrix_appservice_slack_configuration_yaml: |
  36. slack_hook_port: {{ matrix_appservice_slack_slack_port }}
  37. inbound_uri_prefix: "{{ matrix_appservice_slack_inbound_uri_prefix }}"
  38. bot_username: "{{ matrix_appservice_slack_bot_name }}"
  39. username_prefix: {{ matrix_appservice_slack_user_prefix }}
  40. # Optional if slack_hook_port and inbound_uri_prefix are defined, required otherwise.
  41. rtm:
  42. # Use the RTM API to listen for requests, which does not require
  43. # the bridge to listen on the hook port.
  44. # You should leave this enabled, unless you plan to use the
  45. # bridge exclusively for webhooks.
  46. enable: true
  47. logging: "silent" # Logging level specific to RTM traffic.
  48. # A prefix similar to inbound_uri_prefix for oauth2 requests. inbound_uri_prefix will be used if this is not set
  49. # Optional
  50. # redirect_prefix: "https://my.server.here:9898/mycustomoauthendpoint"
  51. # Allow users to add channels dynamically by using oauth, or puppet themselves.
  52. # Optional
  53. oauth2:
  54. client_id: ""
  55. client_secret: ""
  56. homeserver:
  57. media_url: "{{ matrix_appservice_slack_homeserver_media_url }}"
  58. url: "{{ matrix_appservice_slack_homeserver_url }}"
  59. server_name: "{{ matrix_domain }}"
  60. dbdir: "/data"
  61. matrix_admin_room: "{{ matrix_appservice_slack_control_room_id }}"
  62. matrix_appservice_slack_configuration_extension_yaml: |
  63. #slack_hook_port: 9898
  64. #inbound_uri_prefix: "https://my.server.here:9898/"
  65. #bot_username: "slackbot"
  66. #username_prefix: "slack_"
  67. # Optional
  68. #slack_master_token: "abc-123-def"
  69. # Optional
  70. #matrix_admin_room: "!aBcDeF:matrix.org"
  71. #homeserver:
  72. # url: http://localhost:8008
  73. # server_name: my.server
  74. # Optional
  75. #tls:
  76. # key_file: /path/to/tls.key
  77. # crt_file: /path/to/tls.crt
  78. #logging:
  79. # console: "info"
  80. # files:
  81. # - "./debug.log": "info"
  82. #- "./error.log": "error"
  83. matrix_appservice_slack_configuration_extension: "{{ matrix_appservice_slack_configuration_extension_yaml|from_yaml if matrix_appservice_slack_configuration_extension_yaml|from_yaml else {} }}"
  84. matrix_appservice_slack_configuration: "{{ matrix_appservice_slack_configuration_yaml|from_yaml|combine(matrix_appservice_slack_configuration_extension, recursive=True) }}"
  85. matrix_appservice_slack_registration_yaml: |
  86. id: "{{ matrix_appservice_slack_id_token }}"
  87. as_token: "{{ matrix_appservice_slack_appservice_token }}"
  88. hs_token: "{{ matrix_appservice_slack_homeserver_token }}"
  89. namespaces:
  90. users:
  91. - exclusive: true
  92. regex: '@{{ matrix_appservice_slack_user_prefix }}.*'
  93. aliases:
  94. - exclusive: false
  95. regex: '#{{ matrix_appservice_slack_user_prefix }}.*'
  96. rooms: []
  97. url: "{{matrix_appservice_slack_appservice_url}}:{{ matrix_appservice_slack_matrix_port }}"
  98. sender_localpart: slackbot
  99. rate_limited: true
  100. protocols: null
  101. matrix_appservice_slack_registration: "{{ matrix_appservice_slack_registration_yaml|from_yaml }}"