-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
30 lines (26 loc) · 1021 Bytes
/
.env.example
File metadata and controls
30 lines (26 loc) · 1021 Bytes
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
# Database Configuration
# PostgreSQL async connection string (use asyncpg driver)
DATABASE_URL=postgresql+asyncpg://username:password@localhost:5432/booksdb
# JWT Configuration
# Generate a secure secret key: python -c "import secrets; print(secrets.token_urlsafe(32))"
SECRET_KEY=your-super-secret-key-change-this-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# Redis Configuration (for token blacklist)
REDIS_HOST=localhost
REDIS_PORT=6379
# Email Configuration (for verification and password reset)
# For Gmail: use MAIL_SERVER=smtp.gmail.com, MAIL_PORT=587, MAIL_TLS=True
# For Gmail: you need to use an App Password (not your regular password)
# Generate App Password: https://myaccount.google.com/apppasswords
MAIL_USERNAME=your-email@gmail.com
MAIL_PASSWORD=your-app-password
MAIL_FROM=your-email@gmail.com
MAIL_PORT=587
MAIL_SERVER=smtp.gmail.com
MAIL_FROM_NAME=BookAPI
MAIL_TLS=True
MAIL_SSL=False
# Verification Settings
VERIFICATION_TOKEN_EXPIRE_HOURS=24
FRONTEND_URL=http://localhost:3000