values.yaml 4.5 KB

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