-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
121 lines (104 loc) · 2.98 KB
/
.env.example
File metadata and controls
121 lines (104 loc) · 2.98 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
# NGSmodule Environment Configuration
# Copy this file to .env and update the values
# ======================
# Application Settings
# ======================
APP_NAME=NGSmodule
APP_VERSION=1.0.0
DEBUG=false
ENVIRONMENT=production # development, staging, production
# ======================
# Database Settings
# ======================
POSTGRES_USER=ngsmodule
POSTGRES_PASSWORD=changeme_strong_password_here
POSTGRES_DB=ngsmodule
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
# Full database URL (alternative to individual settings)
# DATABASE_URL=postgresql://ngsmodule:password@postgres:5432/ngsmodule
# ======================
# Redis Settings
# ======================
REDIS_PASSWORD=changeme_redis_password_here
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_DB=0
# Full Redis URL (alternative)
# REDIS_URL=redis://:password@redis:6379/0
# ======================
# Security Settings
# ======================
# Generate with: openssl rand -hex 32
SECRET_KEY=your-secret-key-change-in-production-use-openssl-rand-hex-32
JWT_SECRET_KEY=your-jwt-secret-key-change-in-production-use-openssl-rand-hex-32
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7
# ======================
# CORS Settings
# ======================
# Comma-separated list of allowed origins
BACKEND_CORS_ORIGINS=http://localhost:3000,http://localhost:5173,https://yourdomain.com
# ======================
# Storage Settings
# ======================
STORAGE_PATH=/app/storage
MAX_UPLOAD_SIZE=104857600 # 100MB in bytes
ALLOWED_EXTENSIONS=fastq,fq,fastq.gz,fq.gz,bam,sam,vcf,csv,txt
# ======================
# Email Settings (Optional)
# ======================
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASSWORD=your-email-password
SMTP_FROM=noreply@yourdomain.com
SMTP_FROM_NAME=NGSmodule
# ======================
# Port Settings
# ======================
BACKEND_PORT=8000
FRONTEND_PORT=3000
HTTP_PORT=80
HTTPS_PORT=443
# ======================
# Frontend Environment Variables
# ======================
VITE_API_URL=http://localhost:8000/api/v1
VITE_WS_URL=ws://localhost:8000/api/v1/ws
# For production (update with your domain)
# VITE_API_URL=https://api.yourdomain.com/api/v1
# VITE_WS_URL=wss://api.yourdomain.com/api/v1/ws
# ======================
# Logging Settings
# ======================
LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_FORMAT=json # json or text
LOG_FILE=/app/logs/app.log
# ======================
# Performance Settings
# ======================
UVICORN_WORKERS=4
CELERY_WORKERS=2
CELERY_CONCURRENCY=4
# ======================
# Monitoring (Optional)
# ======================
SENTRY_DSN= # Your Sentry DSN for error tracking
ENABLE_METRICS=true
METRICS_PORT=9090
# ======================
# Backup Settings
# ======================
BACKUP_ENABLED=true
BACKUP_SCHEDULE=0 2 * * * # Daily at 2 AM
BACKUP_RETENTION_DAYS=30
BACKUP_PATH=/backups
# ======================
# Development Only
# ======================
# Uncomment for development
# DEBUG=true
# LOG_LEVEL=DEBUG
# RELOAD=true