-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
28 lines (23 loc) · 2 KB
/
Copy path.env.example
File metadata and controls
28 lines (23 loc) · 2 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
# ── Database ─────────────────────────────────────────────────────────────────
# Local dev: SQLite. For Docker/production, DATABASE_URL is built from
# POSTGRES_* vars inside docker-compose.yml automatically.
DATABASE_URL=sqlite:///./shopfloor.db
# ── PostgreSQL (Docker / Production) ─────────────────────────────────────────
POSTGRES_USER=shopfloor_admin
POSTGRES_PASSWORD=CHANGE_ME_generate_with__python_-c__import_secrets;print(secrets.token_hex(20))
POSTGRES_DB=shopfloor_db
# ── Redis ─────────────────────────────────────────────────────────────────────
# Generate: python -c "import secrets; print(secrets.token_hex(20))"
REDIS_PASSWORD=CHANGE_ME
REDIS_URL=redis://:CHANGE_ME@localhost:6379/0
CELERY_BROKER_URL=redis://:CHANGE_ME@localhost:6379/0
CELERY_RESULT_BACKEND=redis://:CHANGE_ME@localhost:6379/0
# ── JWT Authentication ────────────────────────────────────────────────────────
# Generate: python -c "import secrets; print(secrets.token_hex(32))"
JWT_SECRET_KEY=CHANGE_ME
# ── Frontend ──────────────────────────────────────────────────────────────────
NEXT_PUBLIC_API_URL=http://localhost:8000
# ── Application ───────────────────────────────────────────────────────────────
ENVIRONMENT=production
# Set to your actual domain(s) in production:
ALLOWED_ORIGINS=https://yourdomain.com