Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

90 lignes
3.4 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. #jinja2: lstrip_blocks: "True"
  6. bridge:
  7. # Port to host the bridge on
  8. # Used for communication between the homeserver and the bridge
  9. port: {{ matrix_mx_puppet_slack_appservice_port }}
  10. # The host connections to the bridge's webserver are allowed from
  11. bindAddress: 0.0.0.0
  12. # Public domain of the homeserver
  13. domain: {{ matrix_mx_puppet_slack_homeserver_domain }}
  14. # Reachable URL of the Matrix homeserver
  15. homeserverUrl: {{ matrix_mx_puppet_slack_homeserver_address }}
  16. {% if matrix_mx_puppet_slack_login_shared_secret != '' %}
  17. loginSharedSecretMap:
  18. {{ matrix_domain }}: {{ matrix_mx_puppet_slack_login_shared_secret }}
  19. {% endif %}
  20. # Slack OAuth settings. Create a slack app at https://api.slack.com/apps
  21. oauth:
  22. enabled: {{ matrix_mx_puppet_slack_oauth_enabled | to_json }}
  23. # Slack app credentials.
  24. # N.B. This must be quoted so YAML does not parse it as a float.
  25. clientId: '{{ matrix_mx_puppet_slack_oauth_client_id }}'
  26. clientSecret: {{ matrix_mx_puppet_slack_oauth_client_secret|to_json }}
  27. # Path where to listen for OAuth redirect callbacks.
  28. redirectPath: {{ matrix_mx_puppet_slack_oauth_redirect_path | to_json }}
  29. # Set up proxying from https://your.domain/redirect_path to http://bindAddress:port/redirect_path,
  30. # then set this field and the Slack app redirect URI field to the former.
  31. redirectUri: {{ matrix_mx_puppet_slack_oauth_redirect_uri | to_json }}
  32. presence:
  33. # Bridge Discord online/offline status
  34. enabled: {{ matrix_mx_puppet_slack_presence_enabled | to_json }}
  35. # How often to send status to the homeserver in milliseconds
  36. interval: {{ matrix_mx_puppet_slack_presence_interval | to_json }}
  37. provisioning:
  38. # Regex of Matrix IDs allowed to use the puppet bridge
  39. whitelist: {{ matrix_mx_puppet_slack_provisioning_whitelist|to_json }}
  40. # Allow a specific user
  41. #- "@user:example\\.com"
  42. # Allow users on a specific homeserver
  43. #- "@.*:example\\.com"
  44. # Allow anyone
  45. #- ".*"
  46. # Regex of Matrix IDs forbidden from using the puppet bridge
  47. #blacklist:
  48. # Disallow a specific user
  49. #- "@user:example\\.com"
  50. # Disallow users on a specific homeserver
  51. #- "@.*:example\\.com"
  52. blacklist: {{ matrix_mx_puppet_slack_provisioning_blacklist|to_json }}
  53. # Shared secret for the provisioning API for use by integration managers.
  54. # If this is not set, the provisioning API will not be enabled.
  55. #sharedSecret: random string
  56. # Path prefix for the provisioning API. /v1 will be appended to the prefix automatically.
  57. apiPrefix: /_matrix/provision
  58. database:
  59. {% if matrix_mx_puppet_slack_database_engine == 'postgres' %}
  60. # Use Postgres as a database backend
  61. # If set, will be used instead of SQLite3
  62. # Connection string to connect to the Postgres instance
  63. # with username "user", password "pass", host "localhost" and database name "dbname".
  64. # Modify each value as necessary
  65. connString: {{ matrix_mx_puppet_slack_database_connection_string|to_json }}
  66. {% else %}
  67. # Use SQLite3 as a database backend
  68. # The name of the database file
  69. filename: {{ matrix_mx_puppet_slack_sqlite_database_path_in_container|to_json }}
  70. {% endif %}
  71. logging:
  72. # Log level of console output
  73. # Allowed values starting with most verbose:
  74. # silly, debug, verbose, info, warn, error
  75. console: warn
  76. # Date and time formatting
  77. lineDateFormat: MMM-D HH:mm:ss.SSS
  78. # Logging files
  79. # Log files are rotated daily by default
  80. files: []