-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
49 lines (40 loc) · 1.09 KB
/
Copy path.env.example
File metadata and controls
49 lines (40 loc) · 1.09 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
# tg-monitor-v2 environment template
# Copy to .env and fill real values. Never commit .env.
# Server
HOST=0.0.0.0
PORT=8000
DEBUG=false
LOG_LEVEL=INFO
TIMEZONE=Asia/Shanghai
# MySQL
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=tgmonitor
MYSQL_PASSWORD=change_me
MYSQL_DATABASE=tg_monitor
# Telegram API
# Create an app at https://my.telegram.org/apps
TELEGRAM_API_ID=123456
TELEGRAM_API_HASH=change_me
# Security
# Generate with: python3 -c "import secrets; print(secrets.token_urlsafe(48))"
JWT_SECRET_KEY=change_me_to_a_long_random_value
ACCESS_TOKEN_EXPIRE_MINUTES=240
# CORS
# Production example: CORS_ORIGINS=https://monitor.example.com
CORS_ORIGINS=*
# WebSocket auth, optional
# WS_TOKEN=change_me
# Proxy, optional
# HTTP_PROXY=http://127.0.0.1:7890
# HTTPS_PROXY=http://127.0.0.1:7890
# SOCKS5_PROXY=socks5://127.0.0.1:7891
# SMTP notification, optional
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_USER=notice@example.com
# SMTP_PASSWORD=change_me
# SMTP_FROM=notice@example.com
# Frontend, optional
# Leave empty for same-origin /api/v1 access.
# VITE_API_BASE_URL=http://localhost:8000