Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

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