Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
117 lines (100 loc) · 4.79 KB
/
Copy path.env.example
File metadata and controls
117 lines (100 loc) · 4.79 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
117
# =============================================================================
# LOCAL DEVELOPMENT TEMPLATE (Django settings: drt_core.settings.local)
# =============================================================================
# How to use:
# 1. Copy this file to ".env" in this same folder (the repository ROOT).
# 2. Fill in real values where needed.
# 3. Never commit your ".env" file (it is gitignored).
#
# Where this file is read:
# backend/drt_core/settings/base.py loads "<repo_root>/.env" automatically.
# It is also injected into the docker-compose dev stack via env_file.
#
# Notes on syntax:
# - One KEY=VALUE per line.
# - Inline comments require a leading space: KEY=value # comment
# - Avoid spaces around "=" (use KEY=value, not KEY = value).
# =============================================================================
# -----------------------------------------------------------------------------
# Django core
# -----------------------------------------------------------------------------
DJANGO_SETTINGS_MODULE=drt_core.settings.local
DJANGO_DEBUG=True
# Generate with: python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
DJANGO_SECRET_KEY=change-me-to-a-long-random-string
# Whether entrypoint runs migrations on startup (on/off).
DJANGO_MANAGE_MIGRATE=on
# Disable HTTPS redirect for local dev (production settings would set this True).
SECURE_SSL_REDIRECT=False
# Runtime label used in logs/flows (development | staging | production).
ENVIRONMENT=development
# Optional container-start bootstrap admin. Used by backend/entrypoint.sh only.
# - If username/password are set, startup runs "createsuperuser --noinput".
# - Keep these out of committed files; set real values in local .env or deployment secrets.
# - Not required when running "python manage.py runserver" on host.
# DJANGO_SUPERUSER_USERNAME=admin
# DJANGO_SUPERUSER_PASSWORD=change-me
# DJANGO_SUPERUSER_EMAIL=admin@example.com
# -----------------------------------------------------------------------------
# Database (pick ONE runtime mode)
# -----------------------------------------------------------------------------
# Option A: SQLite (quickest local setup; no Postgres needed)
USE_SQLITE=true
# Option B: Postgres with Docker Compose (backend/celery run in containers)
# - "postgres" is the service hostname on the compose network.
# - Keep POSTGRES_* and DATABASE_URL aligned.
# - If DATABASE_URL is set, Django uses it and overrides DB_HOST/DB_PORT/POSTGRES_*.
# USE_SQLITE=false
# POSTGRES_DB=drt
# POSTGRES_USER=drt
# POSTGRES_PASSWORD=drt
# DB_HOST=postgres
# DB_PORT=5432
# DATABASE_URL=postgres://drt:drt@postgres:5432/drt
# Option C: Postgres with host Python (you run: python manage.py runserver)
# - Use this only when Django runs on your host machine, not in Docker.
# - Requires Postgres port published to host (typically 5432:5432).
# USE_SQLITE=false
# POSTGRES_DB=drt
# POSTGRES_USER=drt
# POSTGRES_PASSWORD=drt
# DB_HOST=127.0.0.1
# DB_PORT=5432
# DATABASE_URL=postgres://drt:drt@127.0.0.1:5432/drt
# -----------------------------------------------------------------------------
# Redis / Celery
# -----------------------------------------------------------------------------
# Docker Compose mode (service hostname):
REDIS_URL=redis://redis:6379/1
CELERY_BROKER_URL=redis://redis:6379/0
CELERY_RESULT_BACKEND=redis://redis:6379/0
# Host Python mode (uncomment if Django runs on your host):
# REDIS_URL=redis://127.0.0.1:6379/1
# CELERY_BROKER_URL=redis://127.0.0.1:6379/0
# CELERY_RESULT_BACKEND=redis://127.0.0.1:6379/0
# -----------------------------------------------------------------------------
# Email (Ethereal SMTP is convenient for dev; create an account at ethereal.email)
# -----------------------------------------------------------------------------
ETHEREAL_USER=your-ethereal-user
ETHEREAL_PASS=your-ethereal-pass
# Optional explicit overrides:
# EMAIL_HOST=smtp.ethereal.email
# EMAIL_PORT=587
# EMAIL_USE_TLS=True
# DEFAULT_FROM_EMAIL=no-reply@yourapp.test
# -----------------------------------------------------------------------------
# Frontend
# -----------------------------------------------------------------------------
FRONTEND_BASE_URL=http://127.0.0.1:3000
# -----------------------------------------------------------------------------
# GitHub datastore
# -----------------------------------------------------------------------------
# Format: https://api.github.com/repos/OWNER/REPO/contents
GITHUB_API_URL=https://api.github.com/repos/your-org/your-datastore/contents
GITHUB_TOKEN=your-github-personal-access-token
# -----------------------------------------------------------------------------
# Admin
# -----------------------------------------------------------------------------
ADMIN_ENABLED=true
# Comma-separated list.
ADMIN_EMAILS=admin@example.com