-
Notifications
You must be signed in to change notification settings - Fork 20
/
webhook-broker.cfg.template
76 lines (65 loc) · 2.43 KB
/
webhook-broker.cfg.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# This is the default configuration to be used even if none supplied
# Database connection settings
[rdbms]
dialect=sqlite3
connection-url=webhook-broker.sqlite3
# Use config akin to these for connecting to MySQL; note the multiStatements=true in connection param; without it migration will fail
# dialect=mysql
# connection-url=webhook_broker:zxc909zxc@tcp(mysql:3306)/webhook-broker?charset=utf8mb4&collation=utf8mb4_0900_ai_ci&parseTime=true&multiStatements=true
connxn-max-idle-time-seconds=0
connxn-max-lifetime-seconds=0
max-idle-connxns=30
max-open-connxns=100
# HTTP Server settings
[http]
# Listener address must be bindable else it will error out
listener=:8080
read-timeout=240
write-timeout=240
# Log settings
[log]
# default is console logging, signified by passing empty value
filename=
# Enable file logging by uncommenting the following line
# filename=/var/log/webhook-broker.log
max-file-size-in-mb=200
max-backups=3
max-age-in-days=28
compress-backups=true
# Allowed values are debug, info, error, fatal
log-level=debug
# Generic Webhook Broker config such as - Max message queue size, max workers, priority dispatcher on, retrigger base-endpoint
[broker]
max-message-queue-size=10000
max-workers=200
priority-dispatcher-enabled=true
# If retrigger base endpoint is not a absolute URL config initialization will error out
retrigger-base-endpoint=http://localhost:8080
max-retry=5
rational-delay-in-seconds=2
# Expected comma separated list of numbers; in case any value is a non number it will be defaulted to 15
retry-backoff-delays-in-seconds=5,30,60
# Whether to run recovery workers
recovery-workers-enabled=true
# Generic consumer configuration such as - Token Header name, User Agent, Consumer connection timeout
[consumer-connection]
token-header-name=X-Broker-Consumer-Token
user-agent=Webhook Message Broker
connection-timeout-in-seconds=30
# Preemptive Channel, Producer, Consumer setup
[initial-channels]
sample-channel=Sample Channel
[initial-producers]
sample-producer=Sample Producer
[initial-consumers]
# If consumer callback URL is not a absolute URL the consumer will be ignored
sample-consumer=http://sample-endpoint/webhook-receiver
# Support for preemptive token setup for the aboves
[initial-channel-tokens]
sample-channel=sample-channel-token
[initial-producer-tokens]
sample-producer=sample-producer-token
[sample-consumer]
token=sample-consumer-token
# Supports single `channel` key when; channel must be present
channel=sample-channel