-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
45 lines (34 loc) · 1.05 KB
/
env.example
File metadata and controls
45 lines (34 loc) · 1.05 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
# Database
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=password
DB_NAME=web-sites
# Geo-detection
# Name of the header containing country code (e.g. CF-IPCountry, X-Region)
GEO_HEADER_NAME=X-IP-Country
# Auth - General
# Generate a secret: openssl rand -base64 32
AUTH_SECRET=change_me_to_a_secure_random_string
# Feature Flags
NEXT_PUBLIC_ENABLE_AUTH=true
# --- Auth Providers ---
# 1. Google OAuth
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
# 2. GitHub OAuth
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
# 3. WeChat OAuth
WECHAT_APP_ID=your_wechat_app_id
WECHAT_APP_SECRET=your_wechat_app_secret
# 4. QQ Login (Future/Mock)
QQ_CLIENT_ID=your_qq_client_id
QQ_CLIENT_SECRET=your_qq_client_secret
# QQ_REDIRECT_URI=http://localhost:3000/api/auth/qq/callback
# 5. SMS/Phone Login (e.g. Aliyun/Twilio)
SMS_PROVIDER=aliyun
SMS_ACCESS_KEY_ID=your_access_key_id
SMS_ACCESS_KEY_SECRET=your_access_key_secret
SMS_TEMPLATE_CODE=your_template_code
SMS_SIGN_NAME=your_sign_name