server-verwaltung/.env-example
nocci 3c2c853fc7 feat(registration): add self-registration configuration option
- introduce ALLOW_SELF_REGISTRATION environment variable
- update .env-example and docker-compose.yml to include new setting
- modify registration logic to respect self-registration configuration

📝 docs(README): document self-registration configuration

- add description of ALLOW_SELF_REGISTRATION setting in README
- explain default value and its impact on user registration process
2025-12-06 14:07:21 +00:00

9 lines
451 B
Text

# Copy this file to .env and fill in strong values for production.
SESSION_SECRET=changeme_super_secret_value
# Set to 1 for HTTPS deployments; set to 0 only for local HTTP testing.
SESSION_COOKIE_SECURE=1
DATABASE_PATH=/app/data/fleetledger.db
# Optional: Fernet key for encrypting management passwords (leave empty to disable)
ENCRYPTION_KEY=
# Allow self-registration after first admin (1 = allow, 0 = only admin-created)
ALLOW_SELF_REGISTRATION=0