-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
78 lines (65 loc) · 2.02 KB
/
.env.example
File metadata and controls
78 lines (65 loc) · 2.02 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# ===========================================
# DoMD Configuration - Example Environment File
# ===========================================
# Copy this file to .env and update the values as needed
# =====================
# Authentication
# =====================
# Default admin credentials for testing/demo
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
# =====================
# Security Settings
# =====================
# Generate secure keys using: python -c 'import secrets; print(secrets.token_urlsafe(32))'
SECRET_KEY=FXFsHL3iP4pwMVmzJMVb6_XWumAWEskrnRcCYYT2kdw
JWT_SECRET_KEY=DhMMDSCvuCsw4GvVkN9oVbRIfVZuF6u5VFf-lfSSOEg
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=1440 # 24 hours
# =====================
# Server Configuration
# =====================
BACKEND_HOST=0.0.0.0
BACKEND_PORT=5000
# =====================
# Frontend Configuration
# =====================
FRONTEND_HOST=localhost
FRONTEND_PORT=3000
# =====================
# Database
# =====================
# SQLite (default)
DATABASE_URL=sqlite:///./domd.db
# PostgreSQL (alternative)
# DATABASE_URL=postgresql://user:password@localhost:5432/domd
# =====================
# CORS (Cross-Origin Resource Sharing)
# =====================
CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# =====================
# Environment
# =====================
ENVIRONMENT=development # development, testing, production
# =====================
# Logging
# =====================
LOG_LEVEL=info # debug, info, warning, error, critical
LOG_FILE=logs/domd.log
# =====================
# Email (Optional)
# =====================
# SMTP_SERVER=smtp.example.com
# SMTP_PORT=587
# SMTP_USER=user@example.com
# SMTP_PASSWORD=your-smtp-password
# EMAIL_FROM=noreply@example.com
# =====================
# Demo/Testing Tokens
# =====================
# These tokens are for testing/demo purposes only
# In production, generate new secure tokens
# Test Admin Token (valid for 24 hours)
# ADMIN_TOKEN=your_generated_admin_token_here
# Test User Token (if applicable)
# USER_TOKEN=your_generated_user_token_here