-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
49 lines (39 loc) · 1.45 KB
/
env.example
File metadata and controls
49 lines (39 loc) · 1.45 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
# Copy this file to ".env" and fill values as needed.
# Server
PORT=8000
FLASK_ENV=development
# API defaults
DEFAULT_PROVINCE_VERSION=current_34
# Security Mode:
# - "simple": dùng API_KEY đơn lẻ (dành cho dev/test)
# - "tiered": dùng hệ thống tier với MySQL (dành cho production/bán API)
API_KEY_MODE=simple
# Simple mode: API key đơn lẻ (để trống = không yêu cầu key)
API_KEY=
# Tiered mode: Cấu hình MySQL
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=
MYSQL_DATABASE=cccd_api
# Admin secret (để gọi Admin API)
ADMIN_SECRET=change-this-to-random-string
# Email Configuration (SMTP)
# Example for Gmail: smtp.gmail.com:587
# For Gmail, you need to use App Password (not regular password)
# Generate App Password: https://myaccount.google.com/apppasswords
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your_email@gmail.com
SMTP_PASSWORD=your_app_password
SMTP_USE_TLS=true
# Email sender info
EMAIL_FROM=noreply@cccd-api.com
EMAIL_FROM_NAME=CCCD API
# Base URL for email links (verification, password reset, etc.)
# Example: http://localhost:8000 (development) or https://yourdomain.com (production)
BASE_URL=http://localhost:8000
# Flask Secret Key (REQUIRED for "Remember Me" to work across server restarts)
# Generate a random secret: python -c "import secrets; print(secrets.token_hex(32))"
# IMPORTANT: Keep this secret key constant - if it changes, all sessions will be invalidated
FLASK_SECRET_KEY=