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

97 řádky
3.6 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. bridge:
  3. # Port to host the bridge on
  4. # Used for communication between the homeserver and the bridge
  5. port: {{ matrix_mx_puppet_slack_appservice_port }}
  6. # The host connections to the bridge's webserver are allowed from
  7. bindAddress: 0.0.0.0
  8. # Public domain of the homeserver
  9. domain: {{ matrix_mx_puppet_slack_homeserver_domain }}
  10. # Reachable URL of the Matrix homeserver
  11. homeserverUrl: {{ matrix_mx_puppet_slack_homeserver_address }}
  12. {% if matrix_mx_puppet_slack_login_shared_secret != '' %}
  13. loginSharedSecretMap:
  14. {{ matrix_domain }}: {{ matrix_mx_puppet_slack_login_shared_secret }}
  15. {% endif %}
  16. # Slack OAuth settings. Create a slack app at https://api.slack.com/apps
  17. oauth:
  18. enabled: true
  19. # Slack app credentials.
  20. # N.B. This must be quoted so YAML wouldn't parse it as a float.
  21. clientId: "{{ matrix_mx_puppet_slack_client_id }}"
  22. clientSecret: {{ matrix_mx_puppet_slack_client_secret }}
  23. # Path where to listen for OAuth redirect callbacks.
  24. redirectPath: {{ matrix_mx_puppet_slack_redirect_path }}
  25. # Set up proxying from https://your.domain/redirect_path to http://bindAddress:port/redirect_path,
  26. # then set this field and the Slack app redirect URI field to the former.
  27. redirectUri: {{ matrix_mx_puppet_slack_redirect_uri }}
  28. presence:
  29. # Bridge Discord online/offline status
  30. enabled: true
  31. # How often to send status to the homeserver in milliseconds
  32. interval: 500
  33. provisioning:
  34. # Regex of Matrix IDs allowed to use the puppet bridge
  35. whitelist: {{ matrix_mx_puppet_slack_provisioning_whitelist|to_json }}
  36. # Allow a specific user
  37. #- "@user:server\\.com"
  38. # Allow users on a specific homeserver
  39. #- "@.*:yourserver\\.com"
  40. # Allow anyone
  41. #- ".*"
  42. # Regex of Matrix IDs forbidden from using the puppet bridge
  43. #blacklist:
  44. # Disallow a specific user
  45. #- "@user:server\\.com"
  46. # Disallow users on a specific homeserver
  47. #- "@.*:yourserver\\.com"
  48. blacklist: {{ matrix_mx_puppet_slack_provisioning_blacklist|to_json }}
  49. # Shared secret for the provisioning API for use by integration managers.
  50. # If this is not set, the provisioning API will not be enabled.
  51. #sharedSecret: random string
  52. # Path prefix for the provisioning API. /v1 will be appended to the prefix automatically.
  53. apiPrefix: /_matrix/provision
  54. database:
  55. # Use Postgres as a database backend
  56. # If set, will be used instead of SQLite3
  57. # Connection string to connect to the Postgres instance
  58. # with username "user", password "pass", host "localhost" and database name "dbname".
  59. # Modify each value as necessary
  60. #connString: "postgres://user:pass@localhost/dbname?sslmode=disable"
  61. # Use SQLite3 as a database backend
  62. # The name of the database file
  63. filename: /data/database.db
  64. logging:
  65. # Log level of console output
  66. # Allowed values starting with most verbose:
  67. # silly, debug, verbose, info, warn, error
  68. console: info
  69. # Date and time formatting
  70. lineDateFormat: MMM-D HH:mm:ss.SSS
  71. # Logging files
  72. # Log files are rotated daily by default
  73. files:
  74. # Log file path
  75. - file: "/data/bridge.log"
  76. # Log level for this file
  77. # Allowed values starting with most verbose:
  78. # silly, debug, verbose, info, warn, error
  79. level: info
  80. # Date and time formatting
  81. datePattern: YYYY-MM-DD
  82. # Maximum number of logs to keep.
  83. # This can be a number of files or number of days.
  84. # If using days, add 'd' as a suffix
  85. maxFiles: 14d
  86. # Maximum size of the file after which it will rotate. This can be a
  87. # number of bytes, or units of kb, mb, and gb. If using the units, add
  88. # 'k', 'm', or 'g' as the suffix
  89. maxSize: 50m