-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env
More file actions
65 lines (52 loc) · 1.24 KB
/
.env
File metadata and controls
65 lines (52 loc) · 1.24 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
# Application Settings
APP_NAME=Handwriting Recognition System
APP_VERSION=1.0.0
DEBUG=False
LOG_LEVEL=INFO
# Server Settings
HOST=0.0.0.0
PORT=8000
# Database
DATABASE_URL=sqlite:///db.db
# For PostgreSQL: postgresql://user:password@localhost/dbname
# For MySQL: mysql://user:password@localhost/dbname
# Model Settings
MODEL_PATH=models/handwriting_model.h5
IMG_HEIGHT=28
IMG_WIDTH=28
BATCH_SIZE=32
EPOCHS=100
# File Upload Settings
MAX_FILE_SIZE=52428800
ALLOWED_EXTENSIONS=png,jpg,jpeg,bmp,pdf,txt
# Security
SECRET_KEY=your-secret-key-here-change-in-production
API_KEY=your-api-key-here-change-in-production
# CORS Settings
CORS_ORIGINS=http://localhost:3000,http://localhost:8000
CORS_ALLOW_CREDENTIALS=True
# Redis
REDIS_URL=redis://localhost:6379/0
REDIS_ENABLED=False
# Email Settings
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASSWORD=your-app-password
EMAIL_ENABLED=False
# Monitoring
SENTRY_DSN=
SENTRY_ENABLED=False
# Feature Flags
ENABLE_REAL_TIME_TRAINING=True
ENABLE_MULTI_USER=True
ENABLE_ADVANCED_ANALYTICS=True
ENABLE_API_DOCS=True
# Rate Limiting
RATE_LIMIT_ENABLED=True
RATE_LIMIT_PER_MINUTE=60
RATE_LIMIT_PER_HOUR=1000
# Logging
LOG_FILE=logs/app.log
LOG_MAX_SIZE=10485760
LOG_BACKUP_COUNT=5