-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
33 lines (28 loc) · 1.67 KB
/
.env.example
File metadata and controls
33 lines (28 loc) · 1.67 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
# ─── Database ────────────────────────────────────────────────────────
# Local (SQLite)
DATABASE_URL=sqlite+aiosqlite:///./nomenclature.db
# Render (PostgreSQL)
# DATABASE_URL=postgresql+asyncpg://user:password@host:5432/database
# Docker Compose : laisser vide, construit automatiquement depuis les vars ci-dessous
# ─── JWT ─────────────────────────────────────────────────────────────
SECRET_KEY=your-secret-key-here-change-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# ─── App ─────────────────────────────────────────────────────────────
APP_NAME=Nomenclature API
APP_VERSION=1.0.0
DEBUG=false
# ─── Admin (créé au démarrage) ───────────────────────────────────────
ADMIN_EMAIL=admin@nomenclature.dz
ADMIN_PASSWORD=Admin2025!
# ─── Documentation Swagger (HTTP Basic Auth) ────────────────────────
DOCS_USERNAME=admin
DOCS_PASSWORD=docs2025!
# ─── Docker Compose ──────────────────────────────────────────────────
RUNNING_IN_DOCKER=true
POSTGRES_HOST=db
POSTGRES_USER=npp
POSTGRES_PASSWORD=npp_secret
POSTGRES_DB=nomenclature
API_PORT=8000
RECREATE_TABLES=false