Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
55 lines (45 loc) · 1.53 KB
/
Copy path.env.example
File metadata and controls
55 lines (45 loc) · 1.53 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
55
# D&D Book Environment Configuration
#
# Copy this file to .env and customize the values
# cp .env.example .env
#
# REQUIRED variables are marked with [REQUIRED]
# OPTIONAL variables have sensible defaults
# ============================================
# REQUIRED: Database Configuration
# ============================================
POSTGRES_USER=dndbook_user
POSTGRES_PASSWORD=change-this-password [REQUIRED]
POSTGRES_DB=dndbook_db
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
# ============================================
# REQUIRED: Security Keys
# ============================================
# Generate secure keys: python3 -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=change-this-secret-key [REQUIRED]
JWT_SECRET_KEY=change-this-jwt-secret-key [REQUIRED]
# ============================================
# OPTIONAL: Application Settings
# ============================================
# Admin password (default: admin123)
ADMIN_PASSWORD=admin123
# Mock data for development (default: false)
MOCK_DATA=false
# Upload settings
UPLOAD_FOLDER=uploads
MAX_CONTENT_LENGTH=16777216
# Pagination
POSTS_PER_PAGE=10
# ============================================
# OPTIONAL: Frontend Settings
# ============================================
# API URL for frontend (default: http://localhost:5000)
VITE_API_URL=http://localhost:5000
# Frontend mock data (default: false)
VITE_MOCK_DATA=false
# Available languages (default: en,it,de,es,fr)
VITE_AVAILABLE_LOCALES=en,it,de,es,fr
# Frontend pagination
VITE_POSTS_PER_PAGE=10
VITE_POST_PREVIEW_LIMIT=200