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.
 
 
 

92 lines
4.3 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. # Default configuration for baibot.
  6. # To extend it, use `matrix_bot_baibot_configuration_extension_yaml`.
  7. homeserver:
  8. # The canonical homeserver domain name
  9. server_name: {{ matrix_bot_baibot_config_homeserver_server_name | to_json }}
  10. url: {{ matrix_bot_baibot_config_homeserver_url | to_json }}
  11. user:
  12. mxid_localpart: {{ matrix_bot_baibot_config_user_mxid_localpart | to_json }}
  13. password: {{ matrix_bot_baibot_config_user_password | to_json }}
  14. # The name the bot uses as a display name and when it refers to itself.
  15. # Leave empty to use the default (baibot).
  16. name: {{ matrix_bot_baibot_config_user_name | to_json }}
  17. encryption:
  18. # An optional passphrase to use for backing up and recovering the bot's encryption keys.
  19. # You can use any string here.
  20. #
  21. # If left empty, the recovery module will not be used and losing your session/database (see persistence)
  22. # will mean you lose access to old messages in encrypted room.
  23. #
  24. # Changing this subsequently will also cause you to lose access to old messages in encrypted rooms.
  25. # If you really need to change this:
  26. # - Set `encryption_recovery_reset_allowed` to `true` and adjust the passphrase
  27. # - Remove your session file and database (see persistence)
  28. # - Restart the bot
  29. # - Then restore `encryption_recovery_reset_allowed` to `false` to prevent accidental resets in the future
  30. recovery_passphrase: {{ matrix_bot_baibot_config_user_encryption_recovery_passphrase | to_json }}
  31. # An optional flag to reset the encryption recovery passphrase.
  32. recovery_reset_allowed: {{ matrix_bot_baibot_config_user_encryption_recovery_reset_allowed | to_json }}
  33. # Command prefix. Leave empty to use the default (!bai).
  34. command_prefix: {{ matrix_bot_baibot_config_command_prefix | to_json }}
  35. access:
  36. # Space-separated list of MXID patterns which specify who is an admin.
  37. admin_patterns: {{ matrix_bot_baibot_config_access_admin_patterns | to_json }}
  38. persistence:
  39. data_dir_path: {{ matrix_bot_baibot_config_persistence_data_dir_path | to_json }}
  40. # An optional secret for encrypting the bot's session data (stored in data_dir_path).
  41. # This must be 32-bytes (64 characters when HEX-encoded).
  42. # Generate it with: `openssl rand -hex 32`
  43. # Leave null or empty to avoid using encryption.
  44. # Changing this subsequently requires that you also throw away all data stored in data_dir_path.
  45. session_encryption_key: {{ matrix_bot_baibot_config_persistence_session_encryption_key | to_json }}
  46. # An optional secret for encrypting bot configuration stored in Matrix's account data.
  47. # This must be 32-bytes (64 characters when HEX-encoded).
  48. # Generate it with: `openssl rand -hex 32`
  49. # Leave null or empty to avoid using encryption.
  50. # Changing this subsequently will make you lose your configuration.
  51. config_encryption_key: {{ matrix_bot_baibot_config_persistence_config_encryption_key | to_json }}
  52. agents:
  53. # A list of statically-defined agents.
  54. static_definitions: {{ matrix_bot_baibot_config_agents_static_definitions | to_json }}
  55. # Initial global configuration. This only affects the first run of the bot.
  56. # Configuration is later managed at runtime.
  57. initial_global_config:
  58. handler:
  59. catch_all: {{ matrix_bot_baibot_config_initial_global_config_handler_catch_all | to_json }}
  60. text_generation: {{ matrix_bot_baibot_config_initial_global_config_handler_text_generation | to_json }}
  61. text_to_speech: {{ matrix_bot_baibot_config_initial_global_config_handler_text_to_speech | to_json }}
  62. speech_to_text: {{ matrix_bot_baibot_config_initial_global_config_handler_speech_to_text | to_json }}
  63. image_generation: {{ matrix_bot_baibot_config_initial_global_config_handler_image_generation | to_json }}
  64. # Space-separated list of MXID patterns which specify who can use the bot.
  65. # By default, we let anyone on the homeserver use the bot.
  66. user_patterns: {{ matrix_bot_baibot_config_initial_global_config_user_patterns | to_json}}
  67. # Controls logging.
  68. #
  69. # Sets all tracing targets (external crates) to warn, and our own logs to debug.
  70. # For even more verbose logging, one may also use trace.
  71. #
  72. # matrix_sdk_crypto may be chatty and could be added with an error level.
  73. #
  74. # Learn more here: https://stackoverflow.com/a/73735203
  75. logging: {{ matrix_bot_baibot_config_logging | to_json }}