Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

122 Zeilen
6.6 KiB

  1. ---
  2. # Mx Puppet Discord is a Matrix <-> Discord bridge
  3. # See: https://gitlab.com/beeper/mx-puppet-monorepo (originally based on https://github.com/matrix-discord/mx-puppet-discord)
  4. #
  5. # We use the Beeper-maintained fork, because https://github.com/matrix-discord/mx-puppet-discord is horribly broken often. See:
  6. # - https://github.com/matrix-discord/mx-puppet-discord/issues/201
  7. # - https://github.com/matrix-discord/mx-puppet-discord/issues/202
  8. # - https://github.com/matrix-discord/mx-puppet-discord/issues/203
  9. # - (other similar issues in the past)
  10. matrix_mx_puppet_discord_enabled: true
  11. matrix_mx_puppet_discord_container_image_self_build: false
  12. matrix_mx_puppet_discord_container_image_self_build_repo: "https://gitlab.com/beeper/mx-puppet-monorepo"
  13. matrix_mx_puppet_discord_container_image_self_build_version: "{{ 'main' if matrix_mx_puppet_discord_version == 'latest' else matrix_mx_puppet_discord_version }}"
  14. matrix_mx_puppet_discord_container_image_self_build_dockerfile_path: "docker/Dockerfile-discord"
  15. # Controls whether the mx-puppet-discord container exposes its HTTP port (tcp/8432 in the container).
  16. #
  17. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
  18. matrix_mx_puppet_discord_container_http_host_bind_port: ''
  19. matrix_mx_puppet_discord_version: latest
  20. matrix_mx_puppet_discord_docker_image: "{{ matrix_mx_puppet_discord_docker_image_name_prefix }}beeper/mx-puppet-monorepo/discord:{{ matrix_mx_puppet_discord_version }}"
  21. matrix_mx_puppet_discord_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_discord_container_image_self_build else 'registry.gitlab.com/' }}"
  22. matrix_mx_puppet_discord_docker_image_force_pull: "{{ matrix_mx_puppet_discord_docker_image.endswith(':latest') }}"
  23. matrix_mx_puppet_discord_base_path: "{{ matrix_base_data_path }}/mx-puppet-discord"
  24. matrix_mx_puppet_discord_config_path: "{{ matrix_mx_puppet_discord_base_path }}/config"
  25. matrix_mx_puppet_discord_data_path: "{{ matrix_mx_puppet_discord_base_path }}/data"
  26. matrix_mx_puppet_discord_docker_src_files_path: "{{ matrix_mx_puppet_discord_base_path }}/docker-src"
  27. matrix_mx_puppet_discord_appservice_port: "8432"
  28. matrix_mx_puppet_discord_homeserver_address: "{{ matrix_homeserver_container_url }}"
  29. matrix_mx_puppet_discord_homeserver_domain: '{{ matrix_domain }}'
  30. matrix_mx_puppet_discord_appservice_address: 'http://matrix-mx-puppet-discord:{{ matrix_mx_puppet_discord_appservice_port }}'
  31. matrix_mx_puppet_discord_bridge_mediaUrl: "https://{{ matrix_server_fqn_matrix }}"
  32. # "@user:server.com" to allow specific user
  33. # "@.*:yourserver.com" to allow users on a specific homeserver
  34. # "@.*" to allow anyone
  35. matrix_mx_puppet_discord_provisioning_whitelist:
  36. - "@.*:{{ matrix_domain|regex_escape }}"
  37. # Leave empty to disable blacklist
  38. # "@user:server.com" disallow a specific user
  39. # "@.*:yourserver.com" disallow users on a specific homeserver
  40. matrix_mx_puppet_discord_provisioning_blacklist: []
  41. # A list of extra arguments to pass to the container
  42. matrix_mx_puppet_discord_container_extra_arguments: []
  43. # List of systemd services that matrix-puppet-discord.service depends on.
  44. matrix_mx_puppet_discord_systemd_required_services_list: ['docker.service']
  45. # List of systemd services that matrix-puppet-discord.service wants
  46. matrix_mx_puppet_discord_systemd_wanted_services_list: []
  47. matrix_mx_puppet_discord_appservice_token: ''
  48. matrix_mx_puppet_discord_homeserver_token: ''
  49. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  50. matrix_mx_puppet_discord_login_shared_secret: ''
  51. # Database configuration
  52. matrix_mx_puppet_discord_database_engine: 'sqlite'
  53. matrix_mx_puppet_discord_sqlite_database_path_local: "{{ matrix_mx_puppet_discord_data_path }}/database.db"
  54. matrix_mx_puppet_discord_sqlite_database_path_in_container: "/data/database.db"
  55. matrix_mx_puppet_discord_database_username: matrix_mx_puppet_discord
  56. matrix_mx_puppet_discord_database_password: ~
  57. matrix_mx_puppet_discord_database_hostname: 'matrix-postgres'
  58. matrix_mx_puppet_discord_database_port: 5432
  59. matrix_mx_puppet_discord_database_name: matrix_mx_puppet_discord
  60. matrix_mx_puppet_discord_database_connection_string: 'postgresql://{{ matrix_mx_puppet_discord_database_username }}:{{ matrix_mx_puppet_discord_database_password }}@{{ matrix_mx_puppet_discord_database_hostname }}:{{ matrix_mx_puppet_discord_database_port }}/{{ matrix_mx_puppet_discord_database_name }}?sslmode=disable'
  61. # Default configuration template which covers the generic use case.
  62. # You can customize it by controlling the various variables inside it.
  63. #
  64. # For a more advanced customization, you can extend the default (see `matrix_mx_puppet_discord_configuration_extension_yaml`)
  65. # or completely replace this variable with your own template.
  66. matrix_mx_puppet_discord_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  67. matrix_mx_puppet_discord_configuration_extension_yaml: |
  68. # Your custom YAML configuration goes here.
  69. # This configuration extends the default starting configuration (`matrix_mx_puppet_discord_configuration_yaml`).
  70. #
  71. # You can override individual variables from the default configuration, or introduce new ones.
  72. #
  73. # If you need something more special, you can take full control by
  74. # completely redefining `matrix_mx_puppet_discord_configuration_yaml`.
  75. matrix_mx_puppet_discord_configuration_extension: "{{ matrix_mx_puppet_discord_configuration_extension_yaml|from_yaml if matrix_mx_puppet_discord_configuration_extension_yaml|from_yaml is mapping else {} }}"
  76. # Holds the final configuration (a combination of the default and its extension).
  77. # You most likely don't need to touch this variable. Instead, see `matrix_mx_puppet_discord_configuration_yaml`.
  78. matrix_mx_puppet_discord_configuration: "{{ matrix_mx_puppet_discord_configuration_yaml|from_yaml|combine(matrix_mx_puppet_discord_configuration_extension, recursive=True) }}"
  79. matrix_mx_puppet_discord_registration_yaml: |
  80. as_token: "{{ matrix_mx_puppet_discord_appservice_token }}"
  81. hs_token: "{{ matrix_mx_puppet_discord_homeserver_token }}"
  82. id: discord-puppet
  83. namespaces:
  84. users:
  85. - exclusive: true
  86. regex: '@_discordpuppet_.*:{{ matrix_mx_puppet_discord_homeserver_domain|regex_escape }}'
  87. rooms: []
  88. aliases:
  89. - exclusive: true
  90. regex: '#_discordpuppet_.*:{{ matrix_mx_puppet_discord_homeserver_domain|regex_escape }}'
  91. protocols: []
  92. rate_limited: false
  93. sender_localpart: _discordpuppet_bot
  94. url: {{ matrix_mx_puppet_discord_appservice_address }}
  95. de.sorunome.msc2409.push_ephemeral: true
  96. matrix_mx_puppet_discord_registration: "{{ matrix_mx_puppet_discord_registration_yaml|from_yaml }}"