Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

86 řádky
4.1 KiB

  1. # matrix-appservice-discord is a Matrix <-> Discord bridge
  2. # See: https://github.com/Half-Shot/matrix-appservice-discord
  3. matrix_appservice_discord_enabled: true
  4. matrix_appservice_discord_docker_image: "docker.io/halfshot/matrix-appservice-discord:v1.0.0"
  5. matrix_appservice_discord_docker_image_force_pull: "{{ matrix_appservice_discord_docker_image.endswith(':latest') }}"
  6. matrix_appservice_discord_base_path: "{{ matrix_base_data_path }}/appservice-discord"
  7. matrix_appservice_discord_config_path: "{{ matrix_base_data_path }}/appservice-discord/config"
  8. matrix_appservice_discord_data_path: "{{ matrix_base_data_path }}/appservice-discord/data"
  9. # Get your own keys at https://discordapp.com/developers/applications/me/create
  10. matrix_appservice_discord_client_id: ''
  11. matrix_appservice_discord_bot_token: ''
  12. matrix_appservice_discord_appservice_token: ''
  13. matrix_appservice_discord_homeserver_token: ''
  14. matrix_appservice_discord_homeserver_domain: "{{ matrix_domain }}"
  15. # Controls whether the matrix-appservice-discord container exposes its HTTP port (tcp/9005 in the container).
  16. #
  17. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9005"), or empty string to not expose.
  18. matrix_appservice_discord_container_http_host_bind_port: ''
  19. # A list of extra arguments to pass to the container
  20. matrix_appservice_discord_container_extra_arguments: []
  21. # List of systemd services that matrix-appservice-discord.service depends on.
  22. matrix_appservice_discord_systemd_required_services_list: ['docker.service']
  23. # List of systemd services that matrix-appservice-discord.service wants
  24. matrix_appservice_discord_systemd_wanted_services_list: []
  25. matrix_appservice_discord_appservice_url: 'http://matrix-appservice-discord:9005'
  26. matrix_appservice_discord_bridge_domain: "{{ matrix_domain }}"
  27. # As of right now, the homeserver URL must be a public URL. See below.
  28. matrix_appservice_discord_bridge_homeserverUrl: "{{ matrix_homeserver_url }}"
  29. matrix_appservice_discord_bridge_disablePresence: false
  30. matrix_appservice_discord_bridge_enableSelfServiceBridging: false
  31. # Tells whether the bot should make use of "Privileged Gateway Intents".
  32. #
  33. # Enabling this means that you need to enable it for the bot (Discord application) as well,
  34. # by triggering all Intent checkboxes on a page like this: `https://discord.com/developers/applications/694448564151123988/bot`
  35. #
  36. # Learn more: https://gist.github.com/advaith1/e69bcc1cdd6d0087322734451f15aa2f
  37. matrix_appservice_discord_auth_usePrivilegedIntents: false
  38. matrix_appservice_discord_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  39. matrix_appservice_discord_configuration_extension_yaml: |
  40. # Your custom YAML configuration goes here.
  41. # This configuration extends the default starting configuration (`matrix_appservice_discord_configuration_yaml`).
  42. #
  43. # You can override individual variables from the default configuration, or introduce new ones.
  44. #
  45. # If you need something more special, you can take full control by
  46. # completely redefining `matrix_appservice_discord_configuration_yaml`.
  47. matrix_appservice_discord_configuration_extension: "{{ matrix_appservice_discord_configuration_extension_yaml|from_yaml if matrix_appservice_discord_configuration_extension_yaml|from_yaml is mapping else {} }}"
  48. matrix_appservice_discord_configuration: "{{ matrix_appservice_discord_configuration_yaml|from_yaml|combine(matrix_appservice_discord_configuration_extension, recursive=True) }}"
  49. matrix_appservice_discord_registration_yaml: |
  50. #jinja2: lstrip_blocks: "True"
  51. id: appservice-discord
  52. as_token: "{{ matrix_appservice_discord_appservice_token }}"
  53. hs_token: "{{ matrix_appservice_discord_homeserver_token }}"
  54. namespaces:
  55. users:
  56. - exclusive: true
  57. regex: '@_discord_.*:{{ matrix_appservice_discord_homeserver_domain|regex_escape }}'
  58. aliases:
  59. - exclusive: true
  60. regex: '#_discord_.*:{{ matrix_appservice_discord_homeserver_domain|regex_escape }}'
  61. url: {{ matrix_appservice_discord_appservice_url }}
  62. sender_localpart: _discord_bot
  63. rate_limited: false
  64. protocols:
  65. - discord
  66. matrix_appservice_discord_registration: "{{ matrix_appservice_discord_registration_yaml|from_yaml }}"