-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
142 lines (117 loc) Β· 5.01 KB
/
env.example
File metadata and controls
142 lines (117 loc) Β· 5.01 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# =================================================================
# AudioBook Organizer - Environment Configuration Template
# =================================================================
# Copy this file to .env and fill in your actual values
# NEVER commit the .env file to version control
# =================================================================
# π APPLICATION SETTINGS
# =================================================================
FLASK_ENV=development
FLASK_DEBUG=True
SECRET_KEY=your-secret-key-change-this-in-production
# Server Configuration
HOST=localhost
PORT=3000
# =================================================================
# π SUPABASE CONFIGURATION
# =================================================================
# Get these from your Supabase project settings
SUPABASE_URL=https://your-project-id.supabase.co
SUPABASE_ANON_KEY=your-anon-key
JWT_SECRET_KEY=your-jwt-secret-from-supabase-settings
# =================================================================
# π‘οΈ SECURITY CONFIGURATION
# =================================================================
# reCAPTCHA v3 Settings
# Get these from Google reCAPTCHA Admin Console (https://www.google.com/recaptcha/admin)
RECAPTCHA_ENABLED=true
RECAPTCHA_SITE_KEY=your-recaptcha-site-key
RECAPTCHA_SECRET_KEY=your-recaptcha-secret-key
RECAPTCHA_THRESHOLD=0.5
# Rate Limiting
RATE_LIMITING_ENABLED=true
AUTH_ATTEMPTS_PER_MINUTE=5
AUTH_ATTEMPTS_PER_HOUR=20
# Password Security
PASSWORD_MIN_LENGTH=8
PASSWORD_REQUIRE_UPPERCASE=true
PASSWORD_REQUIRE_LOWERCASE=true
PASSWORD_REQUIRE_NUMBERS=true
PASSWORD_REQUIRE_SPECIAL=true
# Login Attempt Protection
MAX_LOGIN_ATTEMPTS=5
LOGIN_ATTEMPT_WINDOW=900
# =================================================================
# π§ ELEVENLABS API CONFIGURATION
# =================================================================
# Get your API key from ElevenLabs (https://elevenlabs.io/)
ELEVENLABS_API_KEY=your-elevenlabs-api-key
ELEVENLABS_API_BASE_URL=https://api.elevenlabs.io/v1
# Default voice settings
DEFAULT_VOICE_ID=21m00Tcm4TlvDq8ikWAM
DEFAULT_MODEL_ID=eleven_monolingual_v1
VOICE_STABILITY=0.5
VOICE_SIMILARITY_BOOST=0.5
# =================================================================
# π³ PAYMENT PROCESSING (Future Implementation)
# =================================================================
# Stripe Configuration
STRIPE_PUBLISHABLE_KEY=pk_test_your-stripe-publishable-key
STRIPE_SECRET_KEY=sk_test_your-stripe-secret-key
STRIPE_WEBHOOK_SECRET=whsec_your-webhook-secret
# PayPal Configuration
PAYPAL_CLIENT_ID=your-paypal-client-id
PAYPAL_CLIENT_SECRET=your-paypal-client-secret
# =================================================================
# π§ EMAIL CONFIGURATION (Future Implementation)
# =================================================================
# For sending password reset emails, notifications, etc.
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your-email@gmail.com
SMTP_PASSWORD=your-app-password
SMTP_FROM_EMAIL=noreply@yourdomain.com
# =================================================================
# π LOGGING AND MONITORING
# =================================================================
LOG_LEVEL=INFO
LOG_FILE=logs/audiobook.log
# =================================================================
# π PRODUCTION SETTINGS
# =================================================================
# Uncomment and configure for production deployment
# Database (if using external database)
# DATABASE_URL=postgresql://username:password@localhost:5432/audiobook_db
# Redis (for session storage and caching)
# REDIS_URL=redis://localhost:6379/0
# Security Headers
# FORCE_HTTPS=true
# SECURE_COOKIE=true
# CSRF_PROTECTION=true
# CORS Settings
# ALLOWED_ORIGINS=https://yourdomain.com,https://www.yourdomain.com
# =================================================================
# π DEVELOPMENT NOTES
# =================================================================
# 1. Generate a strong SECRET_KEY: python -c "import secrets; print(secrets.token_hex(32))"
# 2. Get Supabase credentials from: https://app.supabase.com/project/[your-project]/settings/api
# 3. Get reCAPTCHA keys from: https://www.google.com/recaptcha/admin
# 4. Get ElevenLabs API key from: https://elevenlabs.io/speech-synthesis
# 5. For production, use environment-specific values and enable HTTPS
# =================================================================
# π TEMPORARY PRODUCTION SETTINGS (TESTING PHASE)
# =================================================================
# Enable this for temporary password-only access during testing
TESTING_MODE=false
TEMPORARY_PASSWORD=your-temporary-password-here
# Session security (set to true in production with HTTPS)
SESSION_COOKIE_SECURE=false
For Testing Production:
TESTING_MODE=true
TEMPORARY_PASSWORD=your-strong-password
SESSION_COOKIE_SECURE=true # For production with HTTPS
For Testing Developement:
TESTING_MODE=false
TEMPORARY_PASSWORD=your-strong-password
# No password needed, uses Supabase
SESSION_COOKIE_SECURE=false # For development