-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig-example.yaml
More file actions
39 lines (35 loc) · 1.01 KB
/
config-example.yaml
File metadata and controls
39 lines (35 loc) · 1.01 KB
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
telegram:
bot_token: "token"
admin_ids: [1,2,3,4]
bot_username: "your_bot_username"
# Mode: "polling" (default) or "webhook"
# mode: "polling"
# webhook:
# url: "https://your.domain/tg" # Public HTTPS URL Telegram POSTs to (https://); the path component is reused as the local listen path
# host: "0.0.0.0"
# port: 8081
# secret_token: "optional-random-string" # Must match [A-Za-z0-9_-]{1,256}
# drop_pending_updates: false # Set true to discard updates queued while the bot was offline
postgres:
host: "localhost"
port: 5432
user: "tma_user"
password: "tma_password"
db: "tma_db"
# pool_size: 30
# pool_timeout: 30
# pool_recycle: 3600
# max_overflow: 20
# pool_pre_ping: true
# echo_pool: false
auth:
secret_key: "secret"
algorithm: "HS256"
access_token_expire_minutes: 30
log:
level: "INFO"
# sentry:
# dsn: "https://examplePublicKey@o0.ingest.sentry.io/0"
# environment: "development"
# traces_sample_rate: 1.0
# profiles_sample_rate: 1.0