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

107 строки
4.3 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: "cadair/matrix-appservice-slack:latest"
  5. matrix_appservice_slack_base_path: "{{ matrix_base_data_path }}/appservice-slack"
  6. matrix_appservice_slack_config_path: "{{ matrix_appservice_slack_base_path }}/config"
  7. matrix_appservice_slack_data_path: "{{ matrix_appservice_slack_base_path }}/data"
  8. matrix_appservice_slack_public_endpoint: /appservice-slack
  9. matrix_appservice_slack_inbound_uri_prefix: "{{ matrix_homeserver_url }}{{ matrix_appservice_slack_public_endpoint }}"
  10. # Once you make a control room in Matrix, you can get its ID by typing any message and checking its source
  11. matrix_appservice_slack_control_room_id: ''
  12. matrix_appservice_slack_bot_name: 'slackbot'
  13. matrix_appservice_slack_user_prefix: 'slack_'
  14. # Controls the SLACK_PORT and MATRIX_PORT of the installation
  15. matrix_appservice_slack_matrix_port: 9004
  16. matrix_appservice_slack_slack_port: 9003
  17. # Controls whether the appservice-slack container exposes its HTTP port (tcp/9003 in the container).
  18. #
  19. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
  20. matrix_appservice_slack_container_http_host_bind_port: ''
  21. matrix_appservice_slack_homeserver_media_url: "matrix.{{ matrix_domain }}"
  22. matrix_appservice_slack_homeserver_url: "http://matrix-synapse:8008"
  23. matrix_appservice_slack_homeserver_domain: "{{ matrix_domain }}"
  24. matrix_appservice_slack_appservice_url: 'http://matrix-appservice-slack'
  25. # A list of extra arguments to pass to the container
  26. matrix_appservice_slack_container_extra_arguments: []
  27. # List of systemd services that matrix-appservice-slack.service depends on.
  28. matrix_appservice_slack_systemd_required_services_list: ['docker.service']
  29. # List of systemd services that matrix-appservice-slack.service wants
  30. matrix_appservice_slack_systemd_wanted_services_list: []
  31. matrix_appservice_slack_appservice_token: ''
  32. matrix_appservice_slack_homeserver_token: ''
  33. matrix_appservice_slack_id_token: ''
  34. matrix_appservice_slack_configuration_yaml: |
  35. slack_hook_port: {{ matrix_appservice_slack_slack_port }}
  36. inbound_uri_prefix: "{{ matrix_appservice_slack_inbound_uri_prefix }}"
  37. bot_username: "{{ matrix_appservice_slack_bot_name }}"
  38. username_prefix: {{ matrix_appservice_slack_user_prefix }}
  39. homeserver:
  40. media_url: "{{ matrix_appservice_slack_homeserver_media_url }}"
  41. url: "{{ matrix_appservice_slack_homeserver_url }}"
  42. server_name: "{{ matrix_domain }}"
  43. dbdir: "/data"
  44. matrix_admin_room: "{{ matrix_appservice_slack_control_room_id }}"
  45. matrix_appservice_slack_configuration_extension_yaml: |
  46. #slack_hook_port: 9898
  47. #inbound_uri_prefix: "https://my.server.here:9898/"
  48. #bot_username: "slackbot"
  49. #username_prefix: "slack_"
  50. # Optional
  51. #slack_master_token: "abc-123-def"
  52. # Optional
  53. #matrix_admin_room: "!aBcDeF:matrix.org"
  54. #homeserver:
  55. # url: http://localhost:8008
  56. # server_name: my.server
  57. # Optional
  58. #tls:
  59. # key_file: /path/to/tls.key
  60. # crt_file: /path/to/tls.crt
  61. #logging:
  62. # console: "info"
  63. # files:
  64. # - "./debug.log": "info"
  65. #- "./error.log": "error"
  66. matrix_appservice_slack_configuration_extension: "{{ matrix_appservice_slack_configuration_extension_yaml|from_yaml if matrix_appservice_slack_configuration_extension_yaml|from_yaml else {} }}"
  67. matrix_appservice_slack_configuration: "{{ matrix_appservice_slack_configuration_yaml|from_yaml|combine(matrix_appservice_slack_configuration_extension, recursive=True) }}"
  68. matrix_appservice_slack_registration_yaml: |
  69. id: "{{ matrix_appservice_slack_id_token }}"
  70. as_token: "{{ matrix_appservice_slack_appservice_token }}"
  71. hs_token: "{{ matrix_appservice_slack_homeserver_token }}"
  72. namespaces:
  73. users:
  74. - exclusive: true
  75. regex: '@{{ matrix_appservice_slack_user_prefix }}.*'
  76. aliases:
  77. - exclusive: false
  78. regex: '#{{ matrix_appservice_slack_user_prefix }}.*'
  79. rooms: []
  80. url: "{{matrix_appservice_slack_appservice_url}}:{{ matrix_appservice_slack_matrix_port }}"
  81. sender_localpart: slackbot
  82. rate_limited: true
  83. protocols: null
  84. matrix_appservice_slack_registration: "{{ matrix_appservice_slack_registration_yaml|from_yaml }}"