config: add message_send_checkpoint_endpoint

This commit is contained in:
Sumner Evans 2021-11-16 13:07:29 -07:00
parent 9dbee572a8
commit d5387bba41
No known key found for this signature in database
GPG key ID: 8904527AB50022FD
3 changed files with 8 additions and 4 deletions

View file

@ -29,10 +29,11 @@ var ExampleConfig string
type Config struct {
Homeserver struct {
Address string `yaml:"address"`
Domain string `yaml:"domain"`
Asmux bool `yaml:"asmux"`
StatusEndpoint string `yaml:"status_endpoint"`
Address string `yaml:"address"`
Domain string `yaml:"domain"`
Asmux bool `yaml:"asmux"`
StatusEndpoint string `yaml:"status_endpoint"`
MessageSendCheckpointEndpoint string `yaml:"message_send_checkpoint_endpoint"`
} `yaml:"homeserver"`
AppService struct {

View file

@ -31,6 +31,7 @@ func (helper *UpgradeHelper) doUpgrade() {
helper.Copy(Str, "homeserver", "domain")
helper.Copy(Bool, "homeserver", "asmux")
helper.Copy(Str|Null, "homeserver", "status_endpoint")
helper.Copy(Str|Null, "homeserver", "message_send_checkpoint_endpoint")
helper.Copy(Str, "appservice", "address")
helper.Copy(Str, "appservice", "hostname")

View file

@ -11,6 +11,8 @@ homeserver:
# If set, the bridge will make POST requests to this URL whenever a user's whatsapp connection state changes.
# The bridge will use the appservice as_token to authorize requests.
status_endpoint: null
# Endpoint for reporting per-message status.
message_send_checkpoint_endpoint: null
# Application service host/registration related details.
# Changing these values requires regeneration of the registration.