values.yaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. image:
  2. repository: dock.mau.dev/tulir/mautrix-whatsapp
  3. tag: latest
  4. pullPolicy: IfNotPresent
  5. nameOverride: ""
  6. fullnameOverride: ""
  7. serviceAccount:
  8. # Specifies whether a service account should be created
  9. create: true
  10. # The name of the service account to use.
  11. # If not set and create is true, a name is generated using the fullname template
  12. name:
  13. service:
  14. type: ClusterIP
  15. port: 29318
  16. resources: {}
  17. # limits:
  18. # cpu: 100m
  19. # memory: 128Mi
  20. # requests:
  21. # cpu: 100m
  22. # memory: 128Mi
  23. nodeSelector: {}
  24. tolerations: []
  25. affinity: {}
  26. # Postgres pod configs
  27. postgresql:
  28. enabled: true
  29. postgresqlDatabase: mxwa
  30. postgresqlPassword: SET TO RANDOM STRING
  31. persistence:
  32. size: 2Gi
  33. resources:
  34. requests:
  35. memory: 256Mi
  36. cpu: 100m
  37. # Homeserver details
  38. homeserver:
  39. # The address that this appservice can use to connect to the homeserver.
  40. address: https://example.com
  41. # The domain of the homeserver (for MXIDs, etc).
  42. domain: example.com
  43. # Application service host/registration related details
  44. # Changing these values requires regeneration of the registration.
  45. appservice:
  46. id: whatsapp
  47. botUsername: whatsappbot
  48. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  49. # to leave display name/avatar as-is.
  50. botDisplayname: WhatsApp bridge bot
  51. botAvatar: mxc://maunium.net/NeXNQarUbrlYBiPCpprYsRqr
  52. # Authentication tokens for AS <-> HS communication.
  53. asToken: SET TO RANDOM STRING
  54. hsToken: SET TO RANDOM STRING
  55. # The keys below can be used to override the configs in the base config:
  56. # https://github.com/tulir/mautrix-whatsapp/blob/master/example-config.yaml
  57. # Note that the "appservice" and "homeserver" sections are above and slightly different than the base.
  58. # Bridge config
  59. bridge:
  60. # Localpart template of MXIDs for WhatsApp users.
  61. # {{.}} is replaced with the phone number of the WhatsApp user.
  62. username_template: whatsapp_{{.}}
  63. # Number of chats to sync for new users.
  64. initial_chat_sync_count: 10
  65. # Number of old messages to fill when creating new portal rooms.
  66. initial_history_fill_count: 20
  67. # Maximum number of chats to sync when recovering from downtime.
  68. # Set to -1 to sync all new chats during downtime.
  69. recovery_chat_sync_limit: -1
  70. # Whether or not to sync history when recovering from downtime.
  71. recovery_history_backfill: true
  72. # Maximum number of seconds since last message in chat to skip
  73. # syncing the chat in any case. This setting will take priority
  74. # over both recovery_chat_sync_limit and initial_chat_sync_count.
  75. # Default is 3 days = 259200 seconds
  76. sync_max_chat_age: 259200
  77. # Whether or not to explicitly set the avatar and room name for private
  78. # chat portal rooms. This can be useful if the previous field works fine,
  79. # but causes room avatar/name bugs.
  80. private_chat_portal_meta: true
  81. # Allow invite permission for user. User can invite any bots to room with whatsapp
  82. # users (private chat and groups)
  83. allow_user_invite: true
  84. # Permissions for using the bridge.
  85. # Permitted values:
  86. # relaybot - Talk through the relaybot (if enabled), no access otherwise
  87. # user - Access to use the bridge to chat with a WhatsApp account.
  88. # admin - User level and some additional administration tools
  89. # Permitted keys:
  90. # * - All Matrix users
  91. # domain - All users on that homeserver
  92. # mxid - Specific user
  93. permissions:
  94. "*": relaybot
  95. "example.com": user
  96. "@admin:example.com": admin
  97. relaybot:
  98. # Whether or not relaybot support is enabled.
  99. enabled: false
  100. # The management room for the bot. This is where all status notifications are posted and
  101. # in this room, you can use `!wa <command>` instead of `!wa relaybot <command>`. Omitting
  102. # the command prefix completely like in user management rooms is not possible.
  103. management: !foo:example.com
  104. # List of users to invite to all created rooms that include the relaybot.
  105. invites: []
  106. # The formats to use when sending messages to WhatsApp via the relaybot.
  107. message_formats:
  108. m.text: "<b>{{ .Sender.Displayname }}</b>: {{ .Message }}"
  109. m.notice: "<b>{{ .Sender.Displayname }}</b>: {{ .Message }}"
  110. m.emote: "* <b>{{ .Sender.Displayname }}</b> {{ .Message }}"
  111. m.file: "<b>{{ .Sender.Displayname }}</b> sent a file"
  112. m.image: "<b>{{ .Sender.Displayname }}</b> sent an image"
  113. m.audio: "<b>{{ .Sender.Displayname }}</b> sent an audio file"
  114. m.video: "<b>{{ .Sender.Displayname }}</b> sent a video"
  115. m.location: "<b>{{ .Sender.Displayname }}</b> sent a location"
  116. logging:
  117. timestamp_format: Jan _2, 2006 15:04:05
  118. print_level: debug