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.
 
 

107 lines
5.1 KiB

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