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

111 строки
5.6 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_version: v1.0.0
  5. matrix_appservice_discord_docker_image: "{{ matrix_container_global_registry_prefix }}halfshot/matrix-appservice-discord:{{ matrix_appservice_discord_version }}"
  6. matrix_appservice_discord_docker_image_force_pull: "{{ matrix_appservice_discord_docker_image.endswith(':latest') }}"
  7. matrix_appservice_discord_base_path: "{{ matrix_base_data_path }}/appservice-discord"
  8. matrix_appservice_discord_config_path: "{{ matrix_base_data_path }}/appservice-discord/config"
  9. matrix_appservice_discord_data_path: "{{ matrix_base_data_path }}/appservice-discord/data"
  10. # Get your own keys at https://discordapp.com/developers/applications/me/create
  11. matrix_appservice_discord_client_id: ''
  12. matrix_appservice_discord_bot_token: ''
  13. matrix_appservice_discord_appservice_token: ''
  14. matrix_appservice_discord_homeserver_token: ''
  15. matrix_appservice_discord_homeserver_domain: "{{ matrix_domain }}"
  16. # Controls whether the matrix-appservice-discord container exposes its HTTP port (tcp/9005 in the container).
  17. #
  18. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9005"), or empty string to not expose.
  19. matrix_appservice_discord_container_http_host_bind_port: ''
  20. # A list of extra arguments to pass to the container
  21. matrix_appservice_discord_container_extra_arguments: []
  22. # List of systemd services that matrix-appservice-discord.service depends on.
  23. matrix_appservice_discord_systemd_required_services_list: ['docker.service']
  24. # List of systemd services that matrix-appservice-discord.service wants
  25. matrix_appservice_discord_systemd_wanted_services_list: []
  26. matrix_appservice_discord_appservice_url: 'http://matrix-appservice-discord:9005'
  27. matrix_appservice_discord_bridge_domain: "{{ matrix_domain }}"
  28. # As of right now, the homeserver URL must be a public URL. See below.
  29. matrix_appservice_discord_bridge_homeserverUrl: "{{ matrix_homeserver_url }}"
  30. matrix_appservice_discord_bridge_disablePresence: false
  31. matrix_appservice_discord_bridge_enableSelfServiceBridging: false
  32. # Database-related configuration fields.
  33. #
  34. # To use SQLite, stick to these defaults.
  35. #
  36. # To use Postgres:
  37. # - change the engine (`matrix_appservice_discord_database_engine: 'postgres'`)
  38. # - adjust your database credentials via the `matrix_appservice_discord_postgres_*` variables
  39. matrix_appservice_discord_database_engine: 'sqlite'
  40. matrix_appservice_discord_sqlite_database_path_local: "{{ matrix_appservice_discord_data_path }}/discord.db"
  41. matrix_appservice_discord_sqlite_database_path_in_container: "/data/discord.db"
  42. matrix_appservice_discord_database_username: 'matrix_appservice_discord'
  43. matrix_appservice_discord_database_password: 'some-password'
  44. matrix_appservice_discord_database_hostname: 'matrix-postgres'
  45. matrix_appservice_discord_database_port: 5432
  46. matrix_appservice_discord_database_name: 'matrix_appservice_discord'
  47. # These 2 variables are what actually ends up in the bridge configuration.
  48. # It's best if you don't change them directly, but rather redefine the sub-variables that constitute them.
  49. matrix_appservice_discord_database_filename: "{{ matrix_appservice_discord_sqlite_database_path_in_container }}"
  50. matrix_appservice_discord_database_connString: 'postgresql://{{ matrix_appservice_discord_database_username }}:{{ matrix_appservice_discord_database_password }}@{{ matrix_appservice_discord_database_hostname }}:{{ matrix_appservice_discord_database_port }}/{{ matrix_appservice_discord_database_name }}'
  51. # Tells whether the bot should make use of "Privileged Gateway Intents".
  52. #
  53. # Enabling this means that you need to enable it for the bot (Discord application) as well,
  54. # by triggering all Intent checkboxes on a page like this: `https://discord.com/developers/applications/694448564151123988/bot`
  55. #
  56. # Learn more: https://gist.github.com/advaith1/e69bcc1cdd6d0087322734451f15aa2f
  57. matrix_appservice_discord_auth_usePrivilegedIntents: false
  58. matrix_appservice_discord_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  59. matrix_appservice_discord_configuration_extension_yaml: |
  60. # Your custom YAML configuration goes here.
  61. # This configuration extends the default starting configuration (`matrix_appservice_discord_configuration_yaml`).
  62. #
  63. # You can override individual variables from the default configuration, or introduce new ones.
  64. #
  65. # If you need something more special, you can take full control by
  66. # completely redefining `matrix_appservice_discord_configuration_yaml`.
  67. 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 {} }}"
  68. matrix_appservice_discord_configuration: "{{ matrix_appservice_discord_configuration_yaml|from_yaml|combine(matrix_appservice_discord_configuration_extension, recursive=True) }}"
  69. matrix_appservice_discord_registration_yaml: |
  70. #jinja2: lstrip_blocks: "True"
  71. id: appservice-discord
  72. as_token: "{{ matrix_appservice_discord_appservice_token }}"
  73. hs_token: "{{ matrix_appservice_discord_homeserver_token }}"
  74. namespaces:
  75. users:
  76. - exclusive: true
  77. regex: '@_discord_.*:{{ matrix_appservice_discord_homeserver_domain|regex_escape }}'
  78. aliases:
  79. - exclusive: true
  80. regex: '#_discord_.*:{{ matrix_appservice_discord_homeserver_domain|regex_escape }}'
  81. url: {{ matrix_appservice_discord_appservice_url }}
  82. sender_localpart: _discord_bot
  83. rate_limited: false
  84. protocols:
  85. - discord
  86. matrix_appservice_discord_registration: "{{ matrix_appservice_discord_registration_yaml|from_yaml }}"