Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

96 linhas
4.6 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. # Controls whether the mx-puppet-discord container exposes its HTTP port (tcp/8432 in the container).
  6. #
  7. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
  8. matrix_mx_puppet_discord_container_http_host_bind_port: ''
  9. matrix_mx_puppet_discord_docker_image: "sorunome/mx-puppet-discord:latest"
  10. matrix_mx_puppet_discord_docker_image_force_pull: "{{ matrix_mx_puppet_discord_docker_image.endswith(':latest') }}"
  11. matrix_mx_puppet_discord_base_path: "{{ matrix_base_data_path }}/mx-puppet-discord"
  12. matrix_mx_puppet_discord_config_path: "{{ matrix_mx_puppet_discord_base_path }}/config"
  13. matrix_mx_puppet_discord_data_path: "{{ matrix_mx_puppet_discord_base_path }}/data"
  14. matrix_mx_puppet_discord_docker_src_files_path: "{{ matrix_mx_puppet_discord_base_path }}/docker-src"
  15. matrix_mx_puppet_discord_appservice_port: "8432"
  16. matrix_mx_puppet_discord_homeserver_address: 'http://matrix-synapse:8008'
  17. matrix_mx_puppet_discord_homeserver_domain: '{{ matrix_domain }}'
  18. matrix_mx_puppet_discord_appservice_address: 'http://matrix-mx-puppet-discord:{{ matrix_mx_puppet_discord_appservice_port }}'
  19. matrix_mx_puppet_discord_client_id: ''
  20. matrix_mx_puppet_discord_client_secret: ''
  21. # "@user:server.com" to allow specific user
  22. # "@.*:yourserver.com" to allow users on a specific homeserver
  23. # "@.*" to allow anyone
  24. matrix_mx_puppet_discord_provisioning_whitelist:
  25. - "@.*:{{ matrix_domain|regex_escape }}"
  26. # Leave empty to disable blacklist
  27. # "@user:server.com" disallow a specific user
  28. # "@.*:yourserver.com" disallow users on a specific homeserver
  29. matrix_mx_puppet_discord_provisioning_blacklist: []
  30. # A list of extra arguments to pass to the container
  31. matrix_mx_puppet_discord_container_extra_arguments: []
  32. # List of systemd services that matrix-puppet-discord.service depends on.
  33. matrix_mx_puppet_discord_systemd_required_services_list: ['docker.service']
  34. # List of systemd services that matrix-puppet-discord.service wants
  35. matrix_mx_puppet_discord_systemd_wanted_services_list: []
  36. matrix_mx_puppet_discord_appservice_token: ''
  37. matrix_mx_puppet_discord_homeserver_token: ''
  38. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  39. matrix_mx_puppet_discord_login_shared_secret: ''
  40. # Default configuration template which covers the generic use case.
  41. # You can customize it by controlling the various variables inside it.
  42. #
  43. # For a more advanced customization, you can extend the default (see `matrix_mx_puppet_discord_configuration_extension_yaml`)
  44. # or completely replace this variable with your own template.
  45. matrix_mx_puppet_discord_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  46. matrix_mx_puppet_discord_configuration_extension_yaml: |
  47. # Your custom YAML configuration goes here.
  48. # This configuration extends the default starting configuration (`matrix_mx_puppet_discord_configuration_yaml`).
  49. #
  50. # You can override individual variables from the default configuration, or introduce new ones.
  51. #
  52. # If you need something more special, you can take full control by
  53. # completely redefining `matrix_mx_puppet_discord_configuration_yaml`.
  54. 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 {} }}"
  55. # Holds the final configuration (a combination of the default and its extension).
  56. # You most likely don't need to touch this variable. Instead, see `matrix_mx_puppet_discord_configuration_yaml`.
  57. matrix_mx_puppet_discord_configuration: "{{ matrix_mx_puppet_discord_configuration_yaml|from_yaml|combine(matrix_mx_puppet_discord_configuration_extension, recursive=True) }}"
  58. matrix_mx_puppet_discord_registration_yaml: |
  59. as_token: "{{ matrix_mx_puppet_discord_appservice_token }}"
  60. hs_token: "{{ matrix_mx_puppet_discord_homeserver_token }}"
  61. id: discord-puppet
  62. namespaces:
  63. users:
  64. - exclusive: true
  65. regex: '@_discordpuppet_.*:{{ matrix_mx_puppet_discord_homeserver_domain|regex_escape }}'
  66. rooms: []
  67. aliases:
  68. - exclusive: true
  69. regex: '#_discordpuppet_.*:{{ matrix_mx_puppet_discord_homeserver_domain|regex_escape }}'
  70. protocols: []
  71. rate_limited: false
  72. sender_localpart: _discordpuppet_bot
  73. url: {{ matrix_mx_puppet_discord_appservice_address }}
  74. matrix_mx_puppet_discord_registration: "{{ matrix_mx_puppet_discord_registration_yaml|from_yaml }}"