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.
 
 

76 lines
3.5 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: "halfshot/matrix-appservice-discord:latest"
  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. # Controls whether the matrix-appservice-discord container exposes its HTTP port (tcp/9005 in the container).
  15. #
  16. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9005"), or empty string to not expose.
  17. matrix_appservice_discord_container_http_host_bind_port: ''
  18. # A list of extra arguments to pass to the container
  19. matrix_appservice_discord_container_extra_arguments: []
  20. # List of systemd services that matrix-appservice-discord.service depends on.
  21. matrix_appservice_discord_systemd_required_services_list: ['docker.service']
  22. # List of systemd services that matrix-appservice-discord.service wants
  23. matrix_appservice_discord_systemd_wanted_services_list: []
  24. matrix_appservice_discord_appservice_url: 'http://matrix-appservice-discord:9005'
  25. matrix_appservice_discord_bridge_domain: "{{ matrix_domain }}"
  26. # As of right now, the homeserver URL must be a public URL. See below.
  27. matrix_appservice_discord_bridge_homeserverUrl: "{{ matrix_homeserver_url }}"
  28. matrix_appservice_discord_bridge_disablePresence: false
  29. matrix_appservice_discord_bridge_enableSelfServiceBridging: false
  30. matrix_appservice_discord_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  31. matrix_appservice_discord_configuration_extension_yaml: |
  32. # Your custom YAML configuration goes here.
  33. # This configuration extends the default starting configuration (`matrix_appservice_discord_configuration_yaml`).
  34. #
  35. # You can override individual variables from the default configuration, or introduce new ones.
  36. #
  37. # If you need something more special, you can take full control by
  38. # completely redefining `matrix_appservice_discord_configuration_yaml`.
  39. 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 {} }}"
  40. matrix_appservice_discord_configuration: "{{ matrix_appservice_discord_configuration_yaml|from_yaml|combine(matrix_appservice_discord_configuration_extension, recursive=True) }}"
  41. matrix_appservice_discord_registration_yaml: |
  42. #jinja2: lstrip_blocks: "True"
  43. id: appservice-discord
  44. as_token: "{{ matrix_appservice_discord_appservice_token }}"
  45. hs_token: "{{ matrix_appservice_discord_homeserver_token }}"
  46. namespaces:
  47. users:
  48. - exclusive: true
  49. regex: '^@_discord_.*'
  50. aliases:
  51. - exclusive: true
  52. regex: '^#_discord_.*'
  53. url: {{ matrix_appservice_discord_appservice_url }}
  54. sender_localpart: _discord_bot
  55. rate_limited: false
  56. protocols:
  57. - discord
  58. matrix_appservice_discord_registration: "{{ matrix_appservice_discord_registration_yaml|from_yaml }}"