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ů.
 
 

114 řádky
5.9 KiB

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