-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
73 lines (64 loc) · 2.95 KB
/
.env.example
File metadata and controls
73 lines (64 loc) · 2.95 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
# =============================================================================
# ECOMMDEV Environment Configuration
# Copy this file to .env and fill in your values
# NEVER commit .env files with real credentials to version control!
# =============================================================================
# Django Core
SECRET_KEY=your-secret-key-generate-with-django-get_random_secret_key
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1
# =============================================================================
# Database
# =============================================================================
DB_ENGINE=django.db.backends.sqlite3
DB_NAME=db.sqlite3
# For PostgreSQL:
# DB_ENGINE=django.db.backends.postgresql
# DB_NAME=your_database_name
# DB_USER=your_database_user
# DB_PASSWORD=your_database_password
# DB_HOST=localhost
# DB_PORT=5432
# =============================================================================
# JWT Settings
# =============================================================================
JWT_ACCESS_TOKEN_LIFETIME=60
JWT_REFRESH_TOKEN_LIFETIME=10080
# =============================================================================
# Email Configuration
# =============================================================================
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_HOST_USER=your-email@gmail.com
EMAIL_HOST_PASSWORD=your-app-password
DEFAULT_FROM_EMAIL=Your Name <your-email@gmail.com>
# =============================================================================
# Payment Integration (Mercado Pago)
# =============================================================================
MERCADOPAGO_ACCESS_TOKEN=your-access-token
MERCADOPAGO_PUBLIC_KEY=your-public-key
MERCADOPAGO_WEBHOOK_SECRET=your-webhook-secret
# =============================================================================
# Analytics
# =============================================================================
GA_TRACKING_ID=G-YOUR_TRACKING_ID
# =============================================================================
# Site URL
# =============================================================================
SITE_URL=http://localhost:8000
# =============================================================================
# Internationalization
# =============================================================================
LANGUAGE_CODE=pt-br
TIME_ZONE=America/Fortaleza
# =============================================================================
# Rate Limiting - Trusted Proxies
# =============================================================================
# SECURITY: Configure if your app is behind a reverse proxy (Nginx, Cloudflare, etc.)
# This prevents IP spoofing attacks that could bypass rate limiting.
# Example: TRUSTED_PROXY_IPS=10.0.0.1,172.17.0.1
TRUSTED_PROXY_IPS=
# Number of proxies in the chain (Client -> Cloudflare -> Nginx -> App = 2)
NUM_TRUSTED_PROXIES=1