-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
114 lines (88 loc) · 2.86 KB
/
.env.example
File metadata and controls
114 lines (88 loc) · 2.86 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
# ============================
# Environment Configuration
# ============================
# Environment (Set to 'development', 'staging', or 'production')
ENVIRONMENT=development
# Debug Mode (Set to 'True' for development and 'False' for production)
DEBUG=True
# Logging Level (Options: DEBUG, INFO, WARNING, ERROR, CRITICAL)
LOG_LEVEL=INFO
# Secret Key for Flask/Django or other web frameworks (Keep it secure in production)
SECRET_KEY=your_secret_key_here
# ============================
# Database Configuration
# ============================
# PostgreSQL Database Configuration
DB_ENGINE=django.db.backends.postgresql
DB_HOST=localhost
DB_PORT=5432
DB_NAME=my_database
DB_USER=my_user
DB_PASSWORD=my_password
# Alternative Database (e.g., MySQL)
# MYSQL_DB_ENGINE=django.db.backends.mysql
# MYSQL_DB_HOST=localhost
# MYSQL_DB_PORT=3306
# MYSQL_DB_NAME=my_database
# MYSQL_DB_USER=my_user
# MYSQL_DB_PASSWORD=my_password
# ============================
# Email Configuration
# ============================
# Email Settings for SMTP Server
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=smtp.example.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_USER=your_email@example.com
EMAIL_PASSWORD=your_email_password
DEFAULT_FROM_EMAIL=no-reply@example.com
# ============================
# API Keys and Tokens
# ============================
# API Keys for External Services
API_KEY=your_api_key_here
API_SECRET=your_api_secret_here
# Third-Party Service Configuration
SERVICE_URL=https://example.com/api
SERVICE_TOKEN=your_service_token_here
# Google Maps API Key
GOOGLE_MAPS_API_KEY=your_google_maps_api_key
# ============================
# Storage and File Handling
# ============================
# AWS S3 Configuration for File Storage
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
AWS_STORAGE_BUCKET_NAME=your_bucket_name
AWS_S3_REGION_NAME=us-east-1
# Local File Storage
MEDIA_ROOT=/path/to/media
MEDIA_URL=/media/
# ============================
# Security Settings
# ============================
# Allowed Hosts (Comma-separated values)
ALLOWED_HOSTS=localhost,127.0.0.1,[::1]
# Cross-Origin Resource Sharing (CORS) Settings
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# ============================
# Redis and Celery Configuration
# ============================
# Redis Settings for Caching and Celery
REDIS_URL=redis://localhost:6379/0
CELERY_BROKER_URL=redis://localhost:6379/0
CELERY_RESULT_BACKEND=redis://localhost:6379/0
# ============================
# Miscellaneous Configuration
# ============================
# Default Time Zone
TIME_ZONE=UTC
# Default Language Code
LANGUAGE_CODE=en-us
# ============================
# Local Development Overrides
# ============================
# Uncomment and set your local settings for development
# DEBUG_TOOLBAR=True
# EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend