-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
89 lines (75 loc) · 3.64 KB
/
.env.example
File metadata and controls
89 lines (75 loc) · 3.64 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
# =============================================================================
# RENTAL APP - ENVIRONMENT CONFIGURATION
# =============================================================================
# Copy this file to .env and update with your actual values
# NEVER commit .env to version control!
# =============================================================================
# -----------------------------------------------------------------------------
# Environment
# -----------------------------------------------------------------------------
NODE_ENV=production
# Options: development, staging, production
# -----------------------------------------------------------------------------
# PostgreSQL Database
# -----------------------------------------------------------------------------
POSTGRES_USER=rentalapp
POSTGRES_PASSWORD=changeme123
POSTGRES_DB=rentalapp_db
POSTGRES_PORT=5432
# Database URL (automatically constructed in docker-compose)
# For manual connection: postgresql://user:password@host:port/database
# DATABASE_URL=postgresql://rentalapp:changeme123@localhost:5432/rentalapp_db
# -----------------------------------------------------------------------------
# MinIO Object Storage (S3-compatible)
# -----------------------------------------------------------------------------
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=minioadmin123
MINIO_BUCKET_NAME=rentalapp-properties
MINIO_API_PORT=9000
MINIO_CONSOLE_PORT=9001
# AWS Configuration (for MinIO S3 compatibility)
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=minioadmin
AWS_SECRET_ACCESS_KEY=minioadmin123
AWS_S3_BUCKET_NAME=rentalapp-properties
AWS_ENDPOINT=http://minio:9000
AWS_S3_FORCE_PATH_STYLE=true
# -----------------------------------------------------------------------------
# Backend Server
# -----------------------------------------------------------------------------
SERVER_PORT=3001
# JWT Secret (CHANGE THIS IN PRODUCTION!)
JWT_SECRET=your-super-secret-jwt-key-change-in-production-min-32-chars
# CORS Configuration
CORS_ORIGIN=http://localhost:3000
# -----------------------------------------------------------------------------
# Frontend Client
# -----------------------------------------------------------------------------
CLIENT_PORT=3000
# API Base URL (adjust for production domain)
NEXT_PUBLIC_API_BASE_URL=http://localhost:3001
# Mapbox Token (get from https://account.mapbox.com/)
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=your_mapbox_token_here
# -----------------------------------------------------------------------------
# AWS Cognito (Authentication)
# -----------------------------------------------------------------------------
AWS_COGNITO_REGION=eu-north-1
AWS_COGNITO_USER_POOL_ID=your_user_pool_id
NEXT_PUBLIC_AWS_COGNITO_USER_POOL_ID=your_user_pool_id
NEXT_PUBLIC_AWS_COGNITO_USER_POOL_CLIENT_ID=your_app_client_id
# -----------------------------------------------------------------------------
# pgAdmin (Optional - Database Management Tool)
# -----------------------------------------------------------------------------
PGADMIN_EMAIL=admin@rentalapp.com
PGADMIN_PASSWORD=admin123
PGADMIN_PORT=5050
# -----------------------------------------------------------------------------
# Production Deployment Notes
# -----------------------------------------------------------------------------
# 1. Generate a strong JWT_SECRET: openssl rand -base64 32
# 2. Use strong passwords for POSTGRES_PASSWORD and MINIO_ROOT_PASSWORD
# 3. Update CORS_ORIGIN to your production domain
# 4. Update NEXT_PUBLIC_API_BASE_URL to your production API domain
# 5. Get real AWS Cognito credentials
# 6. Get Mapbox token from https://account.mapbox.com/
# 7. Consider using Docker Secrets for sensitive values in production