example-config.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Homeserver details.
  2. homeserver:
  3. # The address that this appservice can use to connect to the homeserver.
  4. address: https://matrix.org
  5. # The domain of the homeserver (for MXIDs, etc).
  6. domain: matrix.org
  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://localhost:8080
  12. # The hostname and port where this appservice should listen.
  13. hostname: 0.0.0.0
  14. port: 8080
  15. # The full URI to the database. Only SQLite is currently supported.
  16. database: sqlite:///mautrix-whatsapp.db
  17. # The unique ID of this appservice.
  18. id: whatsapp
  19. # Appservice bot details.
  20. bot:
  21. # Username of the appservice bot.
  22. username: whatsappbot
  23. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  24. # to leave display name/avatar as-is.
  25. displayname: WhatsApp bridge bot
  26. avatar: mxc://maunium.net/NeXNQarUbrlYBiPCpprYsRqr
  27. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  28. as_token: "This value is generated when generating the registration"
  29. hs_token: "This value is generated when generating the registration"
  30. # Bridge config. Currently unused.
  31. bridge:
  32. # Localpart template of MXIDs for Whatsapp users.
  33. # {{.receiver}} is replaced with the Whatsapp user ID of the Matrix user receiving messages.
  34. # {{.userid}} is replaced with the user ID of the Whatsapp user.
  35. username_template: "whatsapp_{{.Receiver}}_{{.UserID}}"
  36. # Displayname template for Whatsapp users.
  37. # {{.displayname}} is replaced with the display name of the Whatsapp user.
  38. displayname_template: "{{.Displayname}}"
  39. # Logging config.
  40. logging:
  41. # The directory for log files. Will be created if not found.
  42. directory: ./logs
  43. # Available variables: .date for the file date and .index for different log files on the same day.
  44. file_name_format: {{.date}}-{{.index}.log
  45. # Date format for file names in the Go time format: https://golang.org/pkg/time/#pkg-constants
  46. file_date_format: 2006-01-02
  47. # Log file permissions.
  48. file_mode: 0600
  49. # Timestamp format for log entries in the Go time format.
  50. timestamp_format: Jan _2, 2006 15:04:05
  51. # Minimum severity for log messages.
  52. # Options: debug, info, warn, error, fatal
  53. print_level: info