From 5ca27b8349be07a2ab12f464e17b8ce75703b402 Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Wed, 3 Jun 2026 23:52:00 +0000 Subject: [PATCH] Upload .env.example --- .env.example | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..782ba96 --- /dev/null +++ b/.env.example @@ -0,0 +1,34 @@ +# 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