-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
44 lines (38 loc) · 1.98 KB
/
Copy path.env.example
File metadata and controls
44 lines (38 loc) · 1.98 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
# RescueMesh Mission Platform - Environment Configuration
# Copy this file to .env and update values for your environment
# =============================================================================
# Database Configuration
# =============================================================================
DB_PASSWORD=changeme_secure_password_here
DB_PORT=5432
# =============================================================================
# Django Backend Configuration
# =============================================================================
DEBUG=True
DJANGO_SECRET_KEY=changeme-generate-secure-key-for-production
ALLOWED_HOSTS=localhost,127.0.0.1,rescuemesh.local
CORS_ALLOWED_ORIGINS=http://localhost:4321,http://127.0.0.1:4321
# Optional: Django Admin Superuser (created automatically on first run)
# DJANGO_SUPERUSER_USERNAME=admin
# DJANGO_SUPERUSER_PASSWORD=admin123
# DJANGO_SUPERUSER_EMAIL=admin@rescuemesh.local
# =============================================================================
# Frontend Configuration
# =============================================================================
PUBLIC_API_URL=http://localhost:8000
NODE_ENV=development
# =============================================================================
# Port Configuration (optional - defaults shown)
# =============================================================================
FRONTEND_PORT=4321
BACKEND_PORT=8000
# =============================================================================
# Production Notes
# =============================================================================
# For production deployment:
# 1. Set DEBUG=False
# 2. Generate strong DJANGO_SECRET_KEY: python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
# 3. Use strong DB_PASSWORD (32+ characters)
# 4. Update ALLOWED_HOSTS with your domain
# 5. Update CORS_ALLOWED_ORIGINS with your frontend domain
# 6. Use environment-specific .env files (.env.production, .env.staging)