-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfig.yml
97 lines (84 loc) · 3.49 KB
/
config.yml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# ---------------------------
# WebhookX configuration file
# ---------------------------
log:
file: /dev/stdout
level: info # supported values are debug, info, warn, and error.
format: text # supported values are text and json
database:
host: localhost
port: 5432
username: webhookx
password:
database: webhookx
parameters: 'application_name=webhookx&sslmode=disable&connect_timeout=10' # The connection uri parameters.
# See https://www.postgresql.org/docs/current/libpq-connect.html
max_pool_size: 40 # The maximum number of connections
max_lifetime: 1800 # The maximum lifetime (in seconds) of a connection
redis:
host: localhost
port: 6379
password:
database: 0
#------------------------------------------------------------------------------
# ADMIN
#------------------------------------------------------------------------------
admin:
#listen: 127.0.0.1:8080
#tls:
# cert: /path/to/server.crt
# key: /path/to/server.key
#------------------------------------------------------------------------------
# WORKER
#------------------------------------------------------------------------------
worker:
enabled: false
deliverer:
timeout: 60000
pool:
size: 10000 # pool size, default to 10000.
concurrency: 0 # pool concurrency, default to 100 * CPUs
#------------------------------------------------------------------------------
# PROXY
#------------------------------------------------------------------------------
proxy:
#listen: 127.0.0.1:8081
#tls:
# cert: /path/to/server.crt
# key: /path/to/server.key
timeout_read: 10 # read timeout (in seconds), 0 indicates unlimited.
timeout_write: 60 # write timeout (in seconds), 0 indicates unlimited.
max_request_body_size: 1048576
response:
code: 200
content-type: application/json
body: '{"message": "OK"}'
queue:
type: redis # supported values are redis, off
redis:
host: localhost
port: 6379
password:
database: 0
#------------------------------------------------------------------------------
# METRICS
#------------------------------------------------------------------------------
metrics:
attributes: # global attributes for each metric
env: prod
#exports: [ opentelemetry ] # list of enabled vendor exports. supported value are opentelemetry
push_interval: 10 # interval(in seconds) at which metrics are sent to the OpenTelemetry Collector
opentelemetry:
protocol: http/protobuf # supported value are http/protobuf, grpc
endpoint: http://localhost:4318/v1/metrics # http/protobuf(http://localhost:4318/v1/metrics), grpc(localhost:4317)
#------------------------------------------------------------------------------
# TRACING
#------------------------------------------------------------------------------
tracing:
enabled: false
attributes: # global attributes for each trace
env: prod
sampling_rate: 1.0
opentelemetry:
protocol: http/protobuf # supported value are http/protobuf, grpc
endpoint: http://localhost:4318/v1/traces # http/protobuf(http://localhost:4318/v1/traces), grpc(localhost:4317)