-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
50 lines (42 loc) · 2.19 KB
/
.env.example
File metadata and controls
50 lines (42 loc) · 2.19 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
## ─────────────────────────────────────────────
## Xenohuru API — Environment Variables Template
## Copy this file to .env and fill in real values
## Never commit .env to version control
## ─────────────────────────────────────────────
# ── Django Core ──────────────────────────────
SECRET_KEY=your-very-long-random-secret-key-here
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1
# ── Database (Supabase PostgreSQL) ───────────
DATABASE_NAME=postgres
DATABASE_USER=postgres.your-project-ref
DATABASE_PASSWORD=your-supabase-db-password
DATABASE_HOST=aws-0-region.pooler.supabase.com
DATABASE_PORT=6543
# ── Cloudinary (Media Storage) ───────────────
CLOUDINARY_CLOUD_NAME=your-cloud-name
CLOUDINARY_API_KEY=your-api-key
CLOUDINARY_API_SECRET=your-api-secret
# ── JWT Tokens ───────────────────────────────
JWT_ACCESS_TOKEN_LIFETIME=60
JWT_REFRESH_TOKEN_LIFETIME=1440
# ── CORS / Frontend ──────────────────────────
FRONTEND_URL=http://localhost:3000
# ── Email (Gmail SMTP) ───────────────────────
# To get Gmail App Password: myaccount.google.com > Security > 2FA > App Passwords
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_HOST_USER=your-gmail@gmail.com
EMAIL_HOST_PASSWORD=your-gmail-app-password
DEFAULT_FROM_EMAIL=Xenohuru API <noreply@xenohuru.com>
CONTACT_EMAIL=your-personal-email@gmail.com
# ── PythonAnywhere (production) ──────────────
# Set ON_PYTHONANYWHERE=True in your .env on the PA server
ON_PYTHONANYWHERE=False
PYTHONANYWHERE_USERNAME=xenohuru
# ── Render Deployment (not recommended) ──────
RENDER=False
RENDER_EXTERNAL_HOSTNAME=your-app-name.onrender.com
RENDER_EXTERNAL_URL=https://your-app-name.onrender.com