-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.example.toml
More file actions
54 lines (48 loc) · 1.25 KB
/
config.example.toml
File metadata and controls
54 lines (48 loc) · 1.25 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[bot]
# Telegram Bot Token (fill this with your actual bot token)
token = ""
# Verification timeout in seconds (5 minutes)
verification_timeout = 300
# Verification button text
verification_button_text = "🔐 开始验证"
# Admin user IDs (array of integers)
admin_ids = []
[database]
host = "postgres"
port = 5432
name = "tguard"
user = "postgres"
password = "password"
# Connection pool settings
min_size = 1
max_size = 10
[captcha]
# Captcha provider: "hcaptcha", "cap", or "turnstile"
provider = "hcaptcha"
# Verification expire time in minutes
expire_minutes = 10
# HTTP timeout for captcha validation
timeout_seconds = 30
[captcha.hcaptcha]
# Get these from https://www.hcaptcha.com/
site_key = ""
secret_key = ""
[captcha.cap]
# Cap.js server URL (e.g., "https://api.capjs.dev")
server_url = "https://api.capjs.dev"
site_key = "your_cap_site_key"
secret_key = "your_cap_secret_key"
[captcha.turnstile]
# Get these from https://developers.cloudflare.com/turnstile/
site_key = ""
secret_key = ""
[api]
# FastAPI server settings
host = "0.0.0.0"
port = 8000
# Base URL for Mini Web App (update this with your domain)
base_url = "https://example.com"
# Enable external API access
enable = false
# API Key for external API authentication (X-API-Key header)
api_key = ""