-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
139 lines (120 loc) · 4.88 KB
/
.env.example
File metadata and controls
139 lines (120 loc) · 4.88 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
# =============================================================================
# Funding Platform Environment Configuration
# =============================================================================
# Copy this file to .env and update values for your environment
# NEVER commit .env files to version control
# =============================================================================
# -----------------------------------------------------------------------------
# Application Settings
# -----------------------------------------------------------------------------
NODE_ENV=development
APP_NAME=Funding Platform
APP_URL=http://localhost:3000
API_URL=http://localhost:4000
PORT=4000
# -----------------------------------------------------------------------------
# Database Configuration (PostgreSQL)
# -----------------------------------------------------------------------------
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/funding_platform
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=funding_platform
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_SSL=false
DATABASE_POOL_MIN=2
DATABASE_POOL_MAX=10
# -----------------------------------------------------------------------------
# Redis Configuration (Sessions & Caching)
# -----------------------------------------------------------------------------
REDIS_URL=redis://localhost:6379
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# -----------------------------------------------------------------------------
# Authentication & Security
# -----------------------------------------------------------------------------
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_EXPIRES_IN=1h
JWT_REFRESH_EXPIRES_IN=7d
SESSION_SECRET=your-super-secret-session-key-change-in-production
SESSION_TIMEOUT_MINUTES=30
BCRYPT_ROUNDS=12
# -----------------------------------------------------------------------------
# File Storage Configuration
# -----------------------------------------------------------------------------
# Options: local, s3, azure
STORAGE_DRIVER=local
STORAGE_LOCAL_PATH=./uploads
# AWS S3 Configuration (if STORAGE_DRIVER=s3)
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=eu-west-2
AWS_S3_BUCKET=funding-platform-files
# Azure Blob Storage Configuration (if STORAGE_DRIVER=azure)
AZURE_STORAGE_CONNECTION_STRING=
AZURE_STORAGE_CONTAINER=funding-platform-files
# File Upload Limits
MAX_FILE_SIZE_MB=50
ALLOWED_FILE_TYPES=application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/jpeg,image/png,video/mp4
# -----------------------------------------------------------------------------
# Email Configuration
# -----------------------------------------------------------------------------
# Options: smtp, ses, sendgrid
EMAIL_DRIVER=smtp
EMAIL_FROM_ADDRESS=noreply@funding-platform.gov.uk
EMAIL_FROM_NAME=Funding Platform
# SMTP Configuration (if EMAIL_DRIVER=smtp)
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=
SMTP_PASSWORD=
# AWS SES Configuration (if EMAIL_DRIVER=ses)
AWS_SES_REGION=eu-west-2
# SendGrid Configuration (if EMAIL_DRIVER=sendgrid)
SENDGRID_API_KEY=
# -----------------------------------------------------------------------------
# Virus Scanning
# -----------------------------------------------------------------------------
# Options: clamav, api, disabled
VIRUS_SCAN_DRIVER=disabled
CLAMAV_HOST=localhost
CLAMAV_PORT=3310
VIRUS_SCAN_API_URL=
VIRUS_SCAN_API_KEY=
# -----------------------------------------------------------------------------
# Timezone Configuration
# -----------------------------------------------------------------------------
# All deadlines are enforced in Europe/London timezone
DEFAULT_TIMEZONE=Europe/London
# -----------------------------------------------------------------------------
# Logging
# -----------------------------------------------------------------------------
LOG_LEVEL=info
LOG_FORMAT=json
# -----------------------------------------------------------------------------
# Rate Limiting
# -----------------------------------------------------------------------------
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# -----------------------------------------------------------------------------
# CORS Configuration
# -----------------------------------------------------------------------------
CORS_ORIGIN=http://localhost:3000
CORS_CREDENTIALS=true
# -----------------------------------------------------------------------------
# SSO Configuration (Optional)
# -----------------------------------------------------------------------------
SSO_ENABLED=false
SSO_PROVIDER=
SSO_CLIENT_ID=
SSO_CLIENT_SECRET=
SSO_CALLBACK_URL=
# -----------------------------------------------------------------------------
# Feature Flags
# -----------------------------------------------------------------------------
FEATURE_MFA_ENABLED=false
FEATURE_SSO_ENABLED=false
FEATURE_WEBHOOKS_ENABLED=false