-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
116 lines (97 loc) · 4.75 KB
/
Copy path.env.example
File metadata and controls
116 lines (97 loc) · 4.75 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
# =============================================================================
# Miami Rental Platform - Environment Configuration
# =============================================================================
# Copy this file to .env and fill in your values
# NEVER commit .env to version control
# =============================================================================
# -----------------------------------------------------------------------------
# DATABASE CONFIGURATION
# -----------------------------------------------------------------------------
# PostgreSQL connection string with PostGIS extension
# Format: postgresql+asyncpg://user:password@host:port/database
DATABASE_URL=postgresql+asyncpg://miami_rental:miami_rental_password@postgres:5432/miami_rental_db
# PostgreSQL credentials (used by docker-compose)
POSTGRES_USER=miami_rental
POSTGRES_PASSWORD=miami_rental_password
POSTGRES_DB=miami_rental_db
# -----------------------------------------------------------------------------
# REDIS CONFIGURATION
# -----------------------------------------------------------------------------
# Redis connection URL for caching and session management
# Format: redis://host:port/db_number
REDIS_URL=redis://redis:6379/0
# -----------------------------------------------------------------------------
# APPLICATION SECURITY
# -----------------------------------------------------------------------------
# Secret key for JWT tokens and session encryption
# Generate with: openssl rand -hex 32
SECRET_KEY=your-super-secret-key-change-in-production
# JWT token expiration (in minutes)
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7
# -----------------------------------------------------------------------------
# CLOUDINARY CONFIGURATION
# -----------------------------------------------------------------------------
# Cloudinary is used for image storage and transformation
# Get credentials from: https://cloudinary.com/console
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret
# -----------------------------------------------------------------------------
# MAPBOX CONFIGURATION
# -----------------------------------------------------------------------------
# Mapbox is used for maps and geocoding
# Get token from: https://account.mapbox.com/access-tokens/
MAPBOX_ACCESS_TOKEN=pk.your_mapbox_access_token
# -----------------------------------------------------------------------------
# STRIPE PAYMENT CONFIGURATION
# -----------------------------------------------------------------------------
# Stripe is used for payment processing
# Get keys from: https://dashboard.stripe.com/apikeys
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_WEBHOOK_SECRET=whsec_your_stripe_webhook_secret
# For production, use live keys:
# STRIPE_SECRET_KEY=sk_live_your_stripe_secret_key
# -----------------------------------------------------------------------------
# SMTP / EMAIL CONFIGURATION
# -----------------------------------------------------------------------------
# Email settings for sending notifications and password resets
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email@gmail.com
SMTP_PASSWORD=your_app_specific_password
SMTP_FROM_EMAIL=noreply@miamirental.com
SMTP_FROM_NAME=Miami Rental Platform
# For development, you can use MailHog or similar:
# SMTP_HOST=mailhog
# SMTP_PORT=1025
# -----------------------------------------------------------------------------
# FRONTEND CONFIGURATION
# -----------------------------------------------------------------------------
# Public URL for the backend API (used by frontend)
NEXT_PUBLIC_API_URL=http://localhost:8000
# Mapbox token for frontend maps (public, can be exposed)
NEXT_PUBLIC_MAPBOX_TOKEN=pk.your_mapbox_public_token
# Frontend URL (used for CORS configuration)
FRONTEND_URL=http://localhost:3000
# -----------------------------------------------------------------------------
# ENVIRONMENT SETTINGS
# -----------------------------------------------------------------------------
# Application environment: development, staging, production
ENVIRONMENT=development
# Debug mode (set to false in production)
DEBUG=true
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# -----------------------------------------------------------------------------
# OPTIONAL: SENTRY ERROR TRACKING
# -----------------------------------------------------------------------------
# Sentry DSN for error tracking (optional)
# Get DSN from: https://sentry.io/
# SENTRY_DSN=https://your_sentry_dsn@sentry.io/project_id
# -----------------------------------------------------------------------------
# OPTIONAL: RATE LIMITING
# -----------------------------------------------------------------------------
# Rate limiting configuration
RATE_LIMIT_PER_MINUTE=60
RATE_LIMIT_PER_HOUR=1000