-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
81 lines (62 loc) · 3 KB
/
.env.example
File metadata and controls
81 lines (62 loc) · 3 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
# PredomicsApp — Production Environment Variables
# Copy this file to .env and fill in the values before starting.
#
# Usage:
# cp .env.example .env
# # Edit .env with your production values
# docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
# --------------------------------------------------------------------------
# Security (REQUIRED — change these!)
# --------------------------------------------------------------------------
# Generate with: openssl rand -hex 32
PREDOMICS_SECRET_KEY=CHANGE-ME-generate-with-openssl-rand-hex-32
# PostgreSQL password (used by both db and app services)
POSTGRES_PASSWORD=CHANGE-ME-use-a-strong-password
# --------------------------------------------------------------------------
# Domain & SSL
# --------------------------------------------------------------------------
# Your production domain (used by NGINX and CORS)
DOMAIN=predomics.example.com
# Email for Let's Encrypt certificate notifications
CERTBOT_EMAIL=admin@example.com
# --------------------------------------------------------------------------
# Database
# --------------------------------------------------------------------------
# Async connection URL (uses POSTGRES_PASSWORD above)
# For external PostgreSQL, change the host/port accordingly.
PREDOMICS_DATABASE_URL=postgresql+asyncpg://predomics:${POSTGRES_PASSWORD}@db:5432/predomics
# --------------------------------------------------------------------------
# Application
# --------------------------------------------------------------------------
# CORS origins (comma-separated or JSON array)
PREDOMICS_CORS_ORIGINS=["https://${DOMAIN}"]
# Data directories (defaults work with Docker volumes)
PREDOMICS_DATA_DIR=/app/data
PREDOMICS_UPLOAD_DIR=/app/data/uploads
PREDOMICS_PROJECT_DIR=/app/data/projects
PREDOMICS_SAMPLE_DIR=/app/data/qin2014_cirrhosis
# JWT token expiry in minutes (default: 1440 = 24 hours)
# PREDOMICS_ACCESS_TOKEN_EXPIRE_MINUTES=1440
# Default computation settings
# PREDOMICS_DEFAULT_THREAD_NUMBER=4
# PREDOMICS_DEFAULT_POPULATION_SIZE=5000
# PREDOMICS_DEFAULT_MAX_EPOCHS=100
# --------------------------------------------------------------------------
# Optional: Email (SMTP)
# --------------------------------------------------------------------------
# PREDOMICS_SMTP_HOST=smtp.example.com
# PREDOMICS_SMTP_PORT=587
# PREDOMICS_SMTP_USER=noreply@example.com
# PREDOMICS_SMTP_PASSWORD=smtp-password
# PREDOMICS_SMTP_FROM=noreply@example.com
# --------------------------------------------------------------------------
# Optional: Distributed computing (scitq)
# --------------------------------------------------------------------------
# PREDOMICS_SCITQ_SERVER=https://scitq.example.com
# PREDOMICS_SCITQ_TOKEN=your-scitq-token
# PREDOMICS_SCITQ_CONTAINER=ghcr.io/predomics/predomicsapp-web:latest
# --------------------------------------------------------------------------
# Backup settings
# --------------------------------------------------------------------------
# Number of daily backups to retain
BACKUP_RETENTION_DAYS=7