Preliminary configuration support for webhook updates.

This commit is contained in:
Benjamin A. Shelton 2026-09-11 19:57:32 -06:00
commit 38d35440b0
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
2 changed files with 18 additions and 0 deletions

View file

@ -40,6 +40,17 @@ type System struct {
TimeZone string `toml:"timezone"`
}
type Service struct {
Method string
Webhook *Webhook
}
type Webhook struct {
URI string
Port int
Host string
}
type Translations struct {
BaseDir string `toml:"basedir"`
Active []string `toml:"active"`

View file

@ -16,5 +16,12 @@ active = [
[system]
timezone = "America/Denver"
[service]
method = "polling" # or "webhook"
[service.webhook]
uri = "https://example.com/bot"
port = 2020
host = "::"
[chat]
channels = []