Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

110 wiersze
4.2 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. # Homeserver details
  3. homeserver:
  4. # The address that this appservice can use to connect to the homeserver.
  5. address: https://{{ matrix_server_fqn_matrix }}
  6. # The domain of the homeserver (for MXIDs, etc).
  7. domain: {{ matrix_domain }}
  8. # Whether or not to verify the SSL certificate of the homeserver.
  9. # Only applies if address starts with https://
  10. verify_ssl: true
  11. # Application service host/registration related details
  12. # Changing these values requires regeneration of the registration.
  13. appservice:
  14. # The address that the homeserver can use to connect to this appservice.
  15. address: http://matrix-mautrix-facebook:8080
  16. # The hostname and port where this appservice should listen.
  17. hostname: 0.0.0.0
  18. port: 8080
  19. # The maximum body size of appservice API requests (from the homeserver) in mebibytes
  20. # Usually 1 is enough, but on high-traffic bridges you might need to increase this to avoid 413s
  21. max_body_size: 1
  22. # The full URI to the database. SQLite and Postgres are fully supported.
  23. # Other DBMSes supported by SQLAlchemy may or may not work.
  24. # Format examples:
  25. # SQLite: sqlite:///filename.db
  26. # Postgres: postgres://username:password@hostname/dbname
  27. database: sqlite:////data/mautrix-facebook.db
  28. # The unique ID of this appservice.
  29. id: facebook
  30. # Username of the appservice bot.
  31. bot_username: facebookbot
  32. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  33. # to leave display name/avatar as-is.
  34. bot_displayname: Facebook bridge bot
  35. bot_avatar: mxc://maunium.net/ddtNPZSKMNqaUzqrHuWvUADv
  36. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  37. as_token: "This value is generated when generating the registration"
  38. hs_token: "This value is generated when generating the registration"
  39. # Bridge config
  40. bridge:
  41. # Localpart template of MXIDs for Facebook users.
  42. # {userid} is replaced with the user ID of the Facebook user.
  43. username_template: "facebook_{userid}"
  44. # The prefix for commands. Only required in non-management rooms.
  45. command_prefix: "!fb"
  46. # Number of chats to sync (and create portals for) on startup/login.
  47. # Maximum 20, set 0 to disable automatic syncing.
  48. initial_chat_sync: 10
  49. # Whether or not the Facebook users of logged in Matrix users should be
  50. # invited to private chats when the user sends a message from another client.
  51. invite_own_puppet_to_pm: false
  52. # Whether or not to use /sync to get presence, read receipts and typing notifications when using
  53. # your own Matrix account as the Matrix puppet for your Facebook account.
  54. sync_with_custom_puppets: true
  55. # Whether or not to bridge presence in both directions. Facebook allows users not to broadcast
  56. # presence, but then it won't send other users' presence to the client.
  57. presence: true
  58. # Permissions for using the bridge.
  59. # Permitted values:
  60. # user - Use the bridge with puppeting.
  61. # admin - Use and administrate the bridge.
  62. # Permitted keys:
  63. # * - All Matrix users
  64. # domain - All users on that homeserver
  65. # mxid - Specific user
  66. permissions:
  67. '{{ matrix_domain }}': user
  68. # Python logging configuration.
  69. #
  70. # See section 16.7.2 of the Python documentation for more info:
  71. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  72. logging:
  73. version: 1
  74. formatters:
  75. colored:
  76. (): mautrix_facebook.util.ColorFormatter
  77. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  78. normal:
  79. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  80. handlers:
  81. file:
  82. class: logging.handlers.RotatingFileHandler
  83. formatter: normal
  84. filename: /data/mautrix-facebook.log
  85. maxBytes: 10485760
  86. backupCount: 10
  87. console:
  88. class: logging.StreamHandler
  89. formatter: colored
  90. loggers:
  91. mau:
  92. level: DEBUG
  93. fbchat:
  94. level: DEBUG
  95. aiohttp:
  96. level: INFO
  97. root:
  98. level: DEBUG
  99. handlers: [file, console]