-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yaml
83 lines (76 loc) · 1.4 KB
/
config.example.yaml
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
namespace: "pegasus-bot"
version: "0.0.1"
#instance_id: ""
debug: false
telegram_bot:
token: ""
api_url: "https://api.telegram.org"
webhook:
url: ""
max_connections: 100
ip_address: ""
allowed_updates:
- "message"
- "edited_message"
- "channel_post"
- "edited_channel_post"
- "inline_query"
- "chosen_inline_result"
- "callback_query"
- "shipping_query"
- "pre_checkout_query"
- "poll"
- "poll_answer"
drop_pending_updates: false
secret_token: ""
logging:
caller: true
trace_id: true
stacktrace: error
core:
- encoder: console
target: stdout
level: debug
server:
network: "tcp"
address: "0.0.0.0"
port: 8080
observability:
trace:
exporter:
type: "otlp-grpc"
endpoint: "localhost:4317"
timeout: 10s
insecure: true
batch_timeout: 5s
max_batch_entries: 512
export_timeout: 30s
max_queue_size: 2048
sampling_ratio: 0.1
metric:
reader:
type: prometheus
listen: "0.0.0.0:9201"
database:
type: postgres
host: localhost
port: 5432
username: pegasus
password: pegasus
name: pegasus
charset: utf8mb4
sslmode: disable
table_prefix: ""
redis:
mode: standalone
host: localhost
port: 6379
username: ""
password: "pegasus"
db: 0
mq:
host: localhost
port: 5672
username: pegasus
password: pegasus
vhost: ""