-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy path.env.example
More file actions
46 lines (37 loc) · 1.9 KB
/
Copy path.env.example
File metadata and controls
46 lines (37 loc) · 1.9 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
# ── PythonPH environment configuration ─────────────────────────────
# Copy this file to `.env` and adjust the values:
# cp .env.example .env
# Settings are loaded by pydantic-settings (config/environment.py).
# Do NOT commit a real `.env` — it is gitignored (*.env).
# ── Application ────────────────────────────────────────────────────
# One of: development | staging | production
# In development, SQLite (db.sqlite3) is used and static/media are
# served by Django itself.
APP_ENV=development
# Canonical URL of the site.
BASE_URL=http://localhost:8000
# Django secret key. Generate a strong random value for production:
# python -c "import secrets; print(secrets.token_urlsafe(50))"
SECRET_KEY=django-insecure-pythonph-dev-key-change-in-production
# Set to False in production/staging.
DEBUG=True
# JSON array of allowed hostnames. Empty falls back to the defaults
# (localhost, 127.0.0.1, python.ph, www.python.ph).
ALLOWED_HOSTS=["localhost", "127.0.0.1"]
# JSON array of trusted origins for CSRF/CORS. Empty falls back to the
# defaults (localhost:8000, python.ph, www.python.ph).
TRUSTED_ORIGINS=["http://localhost:8000", "http://127.0.0.1:8000"]
# Database connection URL (PostgreSQL). Ignored when APP_ENV=development
# (SQLite is used instead).
DATABASE_URL=postgres://postgres:postgres@localhost:5432/pythonph
# Sentry DSN. Leave empty to disable error tracking.
SENTRY_DSN=
# ── Cloudflare R2 (S3-compatible) media storage ────────────────────
# Optional. Set all four credential fields (and optionally R2_PUBLIC_URL)
# to store uploaded media on R2; leave empty to fall back to the local
# filesystem (mediafiles/).
R2_ACCOUNT_ID=
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_BUCKET_NAME=
R2_PUBLIC_URL=