-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
48 lines (43 loc) · 1.55 KB
/
config.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
debug_mode: false # Enables detailed logging
enable_memory_load: true # Loads form data into memory for faster access
memory_limit_mb: 1024 # Sets a memory limit (in MB)
bot:
token: "YOUR_TELEGRAM_BOT_TOKEN" # Your Telegram bot token
webhook:
enabled: false # Enable webhook
url: "http://your-webhook-url/api" # Webhook URL
workers_count: 5 # Number of webhook workers
queue_size: 10 # Webhook queue size
auth: # Webhook authentication
type: "basic" # Choose from "none", "basic", and "bearer"
token: "bearer-token" # Webhook authentication token for "bearer"
username: "username" # Webhook authentication username for "basic"
password: "password" # Webhook authentication password for "basic"
database:
enable: false # Enables database support
use_adaptor: "sqlite" # Choose from mysql, postgres, sqlite, or mongo
mysql:
# dsn: "" # MySQL DSN
username: "username" # MySQL username
password: "password" # MySQL password
host: "localhost" # MySQL host
port: 3306 # MySQL port
database: "db-name" # MySQL database name
mongo:
uri: "mongodb://localhost:27017"
# addresses:
# - "localhost:27017"
# database: "db-name"
# username: "username"
# password: "password"
# replica-set: "rs0"
# auth-mechanism: "SCRAM-SHA-1"
postgres:
# dsn: "postgresql://username:password@localhost:5432/dbname?sslmode=disable"
username: "username"
password: "password"
host: "localhost"
port: 5432
database: "database-name"
sqlite:
dsn: "tf.db"