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

94 строки
3.9 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:cadair"
  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: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  36. matrix_appservice_slack_configuration_extension_yaml: |
  37. #slack_hook_port: 9898
  38. #inbound_uri_prefix: "https://my.server.here:9898/"
  39. #bot_username: "slackbot"
  40. #username_prefix: "slack_"
  41. # Optional
  42. #slack_master_token: "abc-123-def"
  43. # Optional
  44. #matrix_admin_room: "!aBcDeF:matrix.org"
  45. #homeserver:
  46. # url: http://localhost:8008
  47. # server_name: my.server
  48. # Optional
  49. #tls:
  50. # key_file: /path/to/tls.key
  51. # crt_file: /path/to/tls.crt
  52. #logging:
  53. # console: "info"
  54. # files:
  55. # - "./debug.log": "info"
  56. #- "./error.log": "error"
  57. matrix_appservice_slack_configuration_extension: "{{ matrix_appservice_slack_configuration_extension_yaml|from_yaml if matrix_appservice_slack_configuration_extension_yaml|from_yaml else {} }}"
  58. matrix_appservice_slack_configuration: "{{ matrix_appservice_slack_configuration_yaml|from_yaml|combine(matrix_appservice_slack_configuration_extension, recursive=True) }}"
  59. matrix_appservice_slack_registration_yaml: |
  60. id: "{{ matrix_appservice_slack_id_token }}"
  61. as_token: "{{ matrix_appservice_slack_appservice_token }}"
  62. hs_token: "{{ matrix_appservice_slack_homeserver_token }}"
  63. namespaces:
  64. users:
  65. - exclusive: true
  66. regex: '@{{ matrix_appservice_slack_user_prefix }}.*'
  67. aliases:
  68. - exclusive: false
  69. regex: '#{{ matrix_appservice_slack_user_prefix }}.*'
  70. rooms: []
  71. url: "{{matrix_appservice_slack_appservice_url}}:{{ matrix_appservice_slack_matrix_port }}"
  72. sender_localpart: slackbot
  73. rate_limited: true
  74. protocols: null
  75. matrix_appservice_slack_registration: "{{ matrix_appservice_slack_registration_yaml|from_yaml }}"