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.
 
 

87 lines
3.2 KiB

  1. # Homeserver details.
  2. homeserver:
  3. # The address that this appservice can use to connect to the homeserver.
  4. address: https://{{ hostname_matrix }}
  5. # The domain of the homeserver (for MXIDs, etc).
  6. domain: {{ hostname_identity }}
  7. # Application service host/registration related details.
  8. # Changing these values requires regeneration of the registration.
  9. appservice:
  10. # The address that the homeserver can use to connect to this appservice.
  11. address: http://matrix-mautrix-whatsapp:8080
  12. # The hostname and port where this appservice should listen.
  13. hostname: 0.0.0.0
  14. port: 8080
  15. # Database config.
  16. database:
  17. # The database type. Only "sqlite3" is supported.
  18. type: sqlite3
  19. # The database URI. Usually file name. https://github.com/mattn/go-sqlite3#connection-string
  20. uri: mautrix-whatsapp.db
  21. # Path to the Matrix room state store.
  22. state_store_path: ./mx-state.json
  23. # The unique ID of this appservice.
  24. id: whatsapp
  25. # Appservice bot details.
  26. bot:
  27. # Username of the appservice bot.
  28. username: whatsappbot
  29. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  30. # to leave display name/avatar as-is.
  31. displayname: WhatsApp bridge bot
  32. avatar: remove
  33. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  34. as_token: "This value is generated when generating the registration"
  35. hs_token: "This value is generated when generating the registration"
  36. # Bridge config. Currently unused.
  37. bridge:
  38. # {% raw %}
  39. # protecting the go templates inside the raw section.
  40. # Localpart template of MXIDs for WhatsApp users.
  41. # {{.}} is replaced with the phone number of the WhatsApp user.
  42. username_template: whatsapp_{{.}}
  43. # Displayname template for WhatsApp users.
  44. # {{.Notify}} - nickname set by the WhatsApp user
  45. # {{.Jid}} - phone number (international format)
  46. # The following variables are also available, but will cause problems on multi-user instances:
  47. # {{.Name}} - display name from contact list
  48. # {{.Short}} - short display name from contact list
  49. displayname_template: "{{if .Notify}}{{.Notify}}{{else}}{{.Jid}}{{end}} (WA)"
  50. # {% endraw %}
  51. # The prefix for commands. Only required in non-management rooms.
  52. command_prefix: "!wa"
  53. # Permissions for using the bridge.
  54. # Permitted values:
  55. # user - Access to use the bridge to chat with a WhatsApp account.
  56. # admin - User level and some additional administration tools
  57. # Permitted keys:
  58. # * - All Matrix users
  59. # domain - All users on that homeserver
  60. # mxid - Specific user
  61. permissions:
  62. '{{ hostname_identity }}': user
  63. # Logging config.
  64. logging:
  65. # The directory for log files. Will be created if not found.
  66. directory: ./logs
  67. # Available variables: .Date for the file date and .Index for different log files on the same day.
  68. file_name_format: {% raw %}"{{.Date}}-{{.Index}}.log"{% endraw %}
  69. # Date format for file names in the Go time format: https://golang.org/pkg/time/#pkg-constants
  70. file_date_format: 2006-01-02
  71. # Log file permissions.
  72. file_mode: 0600
  73. # Timestamp format for log entries in the Go time format.
  74. timestamp_format: Jan _2, 2006 15:04:05
  75. # Minimum severity for log messages.
  76. # Options: debug, info, warn, error, fatal
  77. print_level: debug