Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

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