# Database
DATABASE_URL=postgresql+psycopg2://pdg:pdg_secret_2024@localhost:5432/prop_data_guard
REDIS_URL=redis://localhost:6379/0

# Security
SECRET_KEY=prop-data-guard-super-secret-key-change-in-production
# Fernet-compatible encryption key for database passwords (32 bytes, base64 url-safe).
# Generate one with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
# IMPORTANT: Keep this key safe and consistent across all backend instances.
DB_ENCRYPTION_KEY=

# MinIO
MINIO_ENDPOINT=localhost:9000
MINIO_ACCESS_KEY=pdgminio
MINIO_SECRET_KEY=pdgminio_secret_2024
MINIO_SECURE=false
MINIO_BUCKET_NAME=pdg-files

# CORS
CORS_ORIGINS=["http://localhost:5173", "http://127.0.0.1:5173"]

# Auth
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7

# Default superuser (created on first startup)
FIRST_SUPERUSER_USERNAME=admin
FIRST_SUPERUSER_PASSWORD=Zhidi@n2023
FIRST_SUPERUSER_EMAIL=admin@datapo.com
