forked from eyieko/landville-backend-web-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
45 lines (37 loc) · 1.69 KB
/
Copy path.env.example
File metadata and controls
45 lines (37 loc) · 1.69 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
# LandVille backend — environment template.
# Copy to `.env` for local dev (`.env` is gitignored — never commit real secrets).
# In production set these in your host's dashboard, not in a committed file.
# --- Core ---
export SECRET_KEY="generate-a-50+-char-random-string"
export DEBUG=False
export ALLOWED_HOSTS="localhost,127.0.0.1"
# --- Database ---
# Local Postgres:
export DB_NAME="landville_local"
export DB_USER="landville_admin"
export DB_PASSWORD="your-db-password"
export DB_HOST="127.0.0.1"
export DB_PORT="5432"
# Production (Neon/Render/etc.) — set DATABASE_URL and it takes precedence:
# export DATABASE_URL="postgres://user:pass@host:5432/dbname?sslmode=require"
# --- Chat / Celery (optional on free tier) ---
# Leave REDIS_URL unset to use the in-memory channel layer + inline Celery tasks.
# export REDIS_URL="redis://localhost:6379"
# --- URLs / CORS ---
export DOMAIN="http://127.0.0.1:8000"
export FRONT_END_URL="http://localhost:4200"
export CORS_WHITELIST="http://localhost:4200,http://127.0.0.1:4200"
export CSRF_TRUSTED_ORIGINS="http://localhost:4200"
# --- Email (django) ---
export DEFAULT_FROM_EMAIL="no-reply@landville.local"
# --- Production security (enable behind HTTPS) ---
# export SECURE_SSL_REDIRECT=True
# export SESSION_COOKIE_SECURE=True
# export CSRF_COOKIE_SECURE=True
# export SECURE_HSTS_SECONDS=3600
# --- Rave/Flutterwave Payments ---
export RAVE_PUBLIC_KEY="FLWPUBK-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-X"
export RAVE_SECRET_KEY="FLWSECK-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-X"
export RAVE_URL="https://api.ravepay.co"
export RAVE_REDIRECT_URL="http://127.0.0.1:8000/api/v1/transactions/rave-response/"
export FRONT_END_INTPAYMENT_URL="http://localhost:4200/transactions/success/"