Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

86 rivejä
3.2 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_twitter_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_twitter_homeserver_domain }}
  14. # Reachable URL of the Matrix homeserver
  15. homeserverUrl: {{ matrix_mx_puppet_twitter_homeserver_address }}
  16. {% if matrix_mx_puppet_twitter_login_shared_secret != '' %}
  17. loginSharedSecretMap:
  18. {{ matrix_domain }}: {{ matrix_mx_puppet_twitter_login_shared_secret }}
  19. {% endif %}
  20. twitter:
  21. consumerKey: {{ matrix_mx_puppet_twitter_consumer_key | to_json }}
  22. consumerSecret: {{ matrix_mx_puppet_twitter_consumer_secret | to_json }}
  23. accessToken: {{ matrix_mx_puppet_twitter_access_token | to_json }}
  24. accessTokenSecret: {{ matrix_mx_puppet_twitter_access_token_secret | to_json }}
  25. environment: {{ matrix_mx_puppet_twitter_environment | to_json }}
  26. server:
  27. url: {{ matrix_mx_puppet_twitter_server_url | to_json }}
  28. path: {{ matrix_mx_puppet_twitter_server_path | to_json }}
  29. presence:
  30. # Bridge Twitter online/offline status
  31. enabled: {{ matrix_mx_puppet_twitter_presence_enabled | to_json }}
  32. # How often to send status to the homeserver in milliseconds
  33. interval: {{ matrix_mx_puppet_twitter_presence_interval | to_json }}
  34. provisioning:
  35. # Regex of Matrix IDs allowed to use the puppet bridge
  36. whitelist: {{ matrix_mx_puppet_twitter_provisioning_whitelist|to_json }}
  37. # Allow a specific user
  38. #- "@user:example\\.com"
  39. # Allow users on a specific homeserver
  40. #- "@.*:example\\.com"
  41. # Allow anyone
  42. #- ".*"
  43. # Regex of Matrix IDs forbidden from using the puppet bridge
  44. #blacklist:
  45. # Disallow a specific user
  46. #- "@user:example\\.com"
  47. # Disallow users on a specific homeserver
  48. #- "@.*:example\\.com"
  49. blacklist: {{ matrix_mx_puppet_twitter_provisioning_blacklist|to_json }}
  50. # Shared secret for the provisioning API for use by integration managers.
  51. # If this is not set, the provisioning API will not be enabled.
  52. #sharedSecret: random string
  53. # Path prefix for the provisioning API. /v1 will be appended to the prefix automatically.
  54. apiPrefix: /_matrix/provision
  55. database:
  56. {% if matrix_mx_puppet_twitter_database_engine == 'postgres' %}
  57. # Use Postgres as a database backend
  58. # If set, will be used instead of SQLite3
  59. # Connection string to connect to the Postgres instance
  60. # with username "user", password "pass", host "localhost" and database name "dbname".
  61. # Modify each value as necessary
  62. connString: {{ matrix_mx_puppet_twitter_database_connection_string|to_json }}
  63. {% else %}
  64. # Use SQLite3 as a database backend
  65. # The name of the database file
  66. filename: {{ matrix_mx_puppet_twitter_sqlite_database_path_in_container|to_json }}
  67. {% endif %}
  68. logging:
  69. # Log level of console output
  70. # Allowed values starting with most verbose:
  71. # silly, debug, verbose, info, warn, error
  72. console: warn
  73. # Date and time formatting
  74. lineDateFormat: MMM-D HH:mm:ss.SSS
  75. # Logging files
  76. # Log files are rotated daily by default
  77. files: []