-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.production.example
More file actions
65 lines (56 loc) · 2.94 KB
/
.env.production.example
File metadata and controls
65 lines (56 loc) · 2.94 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
# Production Environment Configuration for Docker Compose
# Copy this file to .env.production and fill in the values
# ============================================================================
# DATABASE CONFIGURATION (PostgreSQL)
# ============================================================================
DB_USER=aaccraa
DB_PASSWORD=CHANGE_ME_STRONG_PASSWORD_HERE
DB_NAME=aaccraa
DB_SCHEMA=public
# ============================================================================
# REDIS CONFIGURATION
# ============================================================================
REDIS_PASSWORD=CHANGE_ME_STRONG_REDIS_PASSWORD
# ============================================================================
# JWT SECRETS (CRITICAL - GENERATE STRONG RANDOM SECRETS!)
# ============================================================================
# Generate with: node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
JWT_SECRET=CHANGE_ME_GENERATE_64_BYTE_RANDOM_SECRET
JWT_REFRESH_SECRET=CHANGE_ME_GENERATE_DIFFERENT_64_BYTE_RANDOM_SECRET
JWT_EXPIRATION=24h
JWT_REFRESH_EXPIRATION=30d
# ============================================================================
# FRONTEND URL (for CORS and password reset links)
# ============================================================================
FRONTEND_URL=https://yourdomain.com
# ============================================================================
# API PORT
# ============================================================================
PORT=3002
# ============================================================================
# WEB PORT
# ============================================================================
WEB_PORT=3000
# ============================================================================
# PUBLIC API URL (for web app to connect to API)
# ============================================================================
# Use internal service name for docker-compose: http://api:3002
# Or use external URL if API is hosted separately: https://api.yourdomain.com
PUBLIC_API_URL=http://api:3002
# ============================================================================
# EMAIL CONFIGURATION (required for password reset)
# ============================================================================
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USER=your-email@gmail.com
MAIL_PASSWORD=your-app-password
MAIL_FROM=noreply@yourdomain.com
# ============================================================================
# DEPLOYMENT INSTRUCTIONS
# ============================================================================
# 1. Copy this file: cp .env.production.example .env.production
# 2. Generate strong secrets for JWT_SECRET and JWT_REFRESH_SECRET
# 3. Set strong passwords for DB_PASSWORD and REDIS_PASSWORD
# 4. Configure your domain for FRONTEND_URL
# 5. Configure email service (see apps/api/.env.example for providers)
# 6. Build and run: docker-compose -f docker-compose.prod.yml up -d