Files
crm-system/.env.example
T

35 lines
1.1 KiB
Bash
Raw Normal View History

2026-06-03 23:52:00 +00:00
# CRM System v1.0 - Environment Variables Template
# Copy this file to .env and fill in real values
# .env is gitignored, NEVER commit it
# === REQUIRED ===
# JWT signing secret. MUST be at least 32 characters.
# Generate with: python -c "import secrets; print(secrets.token_urlsafe(48))"
# In production, this is auto-injected by Coolify as SERVICE_BASE64_64.
AUTH_SECRET=replace-me-with-a-secure-random-string-at-least-32-chars-long
# === OPTIONAL (with defaults) ===
# Database URL. Driver-agnostic (aiosqlite or asyncpg).
# Dev default: SQLite file ./dev.db
# Prod example: postgresql+asyncpg://user:pass@host:5432/dbname
DATABASE_URL=sqlite+aiosqlite:///./dev.db
# JWT settings
JWT_ALGORITHM=HS256
JWT_EXPIRY_HOURS=24
# Password hashing rounds (bcrypt)
BCRYPT_ROUNDS=12
# CORS allowed origins (comma-separated, NO wildcards)
# Dev: http://localhost:5500,http://localhost:8000
# Prod: https://crm.media-on.de
CORS_ORIGINS=http://localhost:5500,http://localhost:8000
# Environment: development | production
ENVIRONMENT=development
# Log level: DEBUG | INFO | WARNING | ERROR
LOG_LEVEL=INFO