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.
 
 

170 líneas
7.9 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: {{ matrix_mautrix_whatsapp_homeserver_address }}
  6. # The domain of the homeserver (for MXIDs, etc).
  7. domain: {{ matrix_mautrix_whatsapp_homeserver_domain }}
  8. # Application service host/registration related details.
  9. # Changing these values requires regeneration of the registration.
  10. appservice:
  11. # The address that the homeserver can use to connect to this appservice.
  12. address: {{ matrix_mautrix_whatsapp_appservice_address }}
  13. # The hostname and port where this appservice should listen.
  14. hostname: 0.0.0.0
  15. port: 8080
  16. # Database config.
  17. database:
  18. # The database type. "sqlite3" and "postgres" are supported.
  19. type: sqlite3
  20. # The database URI.
  21. # SQLite: File name is enough. https://github.com/mattn/go-sqlite3#connection-string
  22. # Postgres: Connection string. For example, postgres://user:password@host/database
  23. uri: mautrix-whatsapp.db
  24. # Maximum number of connections. Mostly relevant for Postgres.
  25. max_open_conns: 20
  26. max_idle_conns: 2
  27. # Path to the Matrix room state store.
  28. state_store_path: ./mx-state.json
  29. # The unique ID of this appservice.
  30. id: whatsapp
  31. # Appservice bot details.
  32. bot:
  33. # Username of the appservice bot.
  34. username: whatsappbot
  35. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  36. # to leave display name/avatar as-is.
  37. displayname: WhatsApp bridge bot
  38. avatar: mxc://maunium.net/NeXNQarUbrlYBiPCpprYsRqr
  39. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  40. as_token: "{{ matrix_mautrix_whatsapp_appservice_token }}"
  41. hs_token: "{{ matrix_mautrix_whatsapp_homeserver_token }}"
  42. # Bridge config
  43. bridge:
  44. # Localpart template of MXIDs for WhatsApp users.
  45. # {{ '{{.}}' }} is replaced with the phone number of the WhatsApp user.
  46. username_template: "{{ 'whatsapp_{{.}}' }}"
  47. # Displayname template for WhatsApp users.
  48. # {{ '{{.Notify'}}' }} - nickname set by the WhatsApp user
  49. # {{ '{{.Jid}}' }} - phone number (international format)
  50. # The following variables are also available, but will cause problems on multi-user instances:
  51. # {{ '{{.Name}}' }} - display name from contact list
  52. # {{ '{{.Short}}' }} - short display name from contact list
  53. displayname_template: "{{ '{{if .Notify}}{{.Notify}}{{else}}{{.Jid}}{{end}} (WA)' }}"
  54. # WhatsApp connection timeout in seconds.
  55. connection_timeout: 20
  56. # Maximum number of times to retry connecting on connection error.
  57. max_connection_attempts: 3
  58. # Number of seconds to wait between connection attempts.
  59. # Negative numbers are exponential backoff: -connection_retry_delay + 1 + 2^attempts
  60. connection_retry_delay: -1
  61. # Whether or not the bridge should send a notice to the user's management room when it retries connecting.
  62. # If false, it will only report when it stops retrying.
  63. report_connection_retry: true
  64. # Maximum number of seconds to wait for chats to be sent at startup.
  65. # If this is too low and you have lots of chats, it could cause backfilling to fail.
  66. chat_list_wait: 30
  67. # Maximum number of seconds to wait to sync portals before force unlocking message processing.
  68. # If this is too low and you have lots of chats, it could cause backfilling to fail.
  69. portal_sync_wait: 600
  70. # Whether or not to send call start/end notices to Matrix.
  71. call_notices:
  72. start: true
  73. end: true
  74. # Number of chats to sync for new users.
  75. initial_chat_sync_count: 10
  76. # Number of old messages to fill when creating new portal rooms.
  77. initial_history_fill_count: 20
  78. # Maximum number of chats to sync when recovering from downtime.
  79. # Set to -1 to sync all new chats during downtime.
  80. recovery_chat_sync_limit: -1
  81. # Whether or not to sync history when recovering from downtime.
  82. recovery_history_backfill: true
  83. # Maximum number of seconds since last message in chat to skip
  84. # syncing the chat in any case. This setting will take priority
  85. # over both recovery_chat_sync_limit and initial_chat_sync_count.
  86. # Default is 3 days = 259200 seconds
  87. sync_max_chat_age: 259200
  88. # Whether or not to sync with custom puppets to receive EDUs that
  89. # are not normally sent to appservices.
  90. sync_with_custom_puppets: true
  91. # Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
  92. #
  93. # If set, custom puppets will be enabled automatically for local users
  94. # instead of users having to find an access token and run `login-matrix`
  95. # manually.
  96. login_shared_secret: {{ matrix_mautrix_whatsapp_login_shared_secret|to_json }}
  97. # Whether or not to invite own WhatsApp user's Matrix puppet into private
  98. # chat portals when backfilling if needed.
  99. # This always uses the default puppet instead of custom puppets due to
  100. # rate limits and timestamp massaging.
  101. invite_own_puppet_for_backfilling: true
  102. # Whether or not to explicitly set the avatar and room name for private
  103. # chat portal rooms. This can be useful if the previous field works fine,
  104. # but causes room avatar/name bugs.
  105. private_chat_portal_meta: false
  106. # Allow invite permission for user. User can invite any bots to room with whatsapp
  107. # users (private chat and groups)
  108. allow_user_invite: false
  109. # The prefix for commands. Only required in non-management rooms.
  110. command_prefix: "!wa"
  111. # Permissions for using the bridge.
  112. # Permitted values:
  113. # user - Access to use the bridge to chat with a WhatsApp account.
  114. # admin - User level and some additional administration tools
  115. # Permitted keys:
  116. # * - All Matrix users
  117. # domain - All users on that homeserver
  118. # mxid - Specific user
  119. permissions:
  120. "{{ matrix_mautrix_whatsapp_homeserver_domain }}": user
  121. relaybot:
  122. # Whether or not relaybot support is enabled.
  123. enabled: false
  124. # The management room for the bot. This is where all status notifications are posted and
  125. # in this room, you can use `!wa <command>` instead of `!wa relaybot <command>`. Omitting
  126. # the command prefix completely like in user management rooms is not possible.
  127. management: '!foo:example.com'
  128. # List of users to invite to all created rooms that include the relaybot.
  129. invites: []
  130. # The formats to use when sending messages to WhatsApp via the relaybot.
  131. message_formats:
  132. m.text: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: {{ '{{ .Message }}' }}"
  133. m.notice: "<b>{{ '{{ .Sender.Displayname }}' }}</b>:: {{ '{{ .Message }}' }}"
  134. m.emote: "* <b>{{ '{{ .Sender.Displayname }}' }}</b>: {{ '{{ .Message }}' }}"
  135. m.file: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent a file"
  136. m.image: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent an image"
  137. m.audio: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent an audio file"
  138. m.video: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent a video"
  139. m.location: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent a location"
  140. # Logging config.
  141. logging:
  142. # The directory for log files. Will be created if not found.
  143. directory: ./logs
  144. # Available variables: .Date for the file date and .Index for different log files on the same day.
  145. file_name_format: "{{ '{{.Date}}-{{.Index}}.log' }}"
  146. # Date format for file names in the Go time format: https://golang.org/pkg/time/#pkg-constants
  147. file_date_format: "2006-01-02"
  148. # Log file permissions.
  149. file_mode: 0600
  150. # Timestamp format for log entries in the Go time format.
  151. timestamp_format: "Jan _2, 2006 15:04:05"
  152. # Minimum severity for log messages.
  153. # Options: debug, info, warn, error, fatal
  154. print_level: debug