ungleich-user/dev/env.dev
Sajeyks f8567b2a41 Read all configuration in settings and document it in env.sample
The OTP server variables were read straight from the environment in
views.py. They are now OTP_* settings next to everything else, under
the same environment variable names, so existing deployments are
unaffected.

Remove LDAP_SERVER and LDAP_USERS_DN, which nothing used.
env.sample moves to the repository root (where .env is read from) and
lists every variable settings.py reads, including defaults and which
values are secrets.
2026-11-06 15:26:26 +03:00

27 lines
904 B
Text

# Local development settings for the dev LDAP container (docker-compose.dev.yml).
# Dev-only credentials, not secrets. Use with: cp dev/env.dev .env
LDAPSERVER="ldap://localhost:3389"
LDAP_ADMIN_DN="cn=admin,dc=ungleich,dc=ch"
LDAP_ADMIN_PASSWORD="admin"
LDAP_CUSTOMER_DN="ou=customers,dc=ungleich,dc=ch"
LDAP_CUSTOMER_GROUP_ID=2000
LDAP_DEFAULT_START_UID=10000
# Space separated list of search bases for users
LDAPSEARCH="ou=customers,dc=ungleich,dc=ch ou=users,dc=ungleich,dc=ch"
ENTIRE_SEARCH_BASE="dc=ungleich,dc=ch"
SECRET_KEY="dev-only-not-a-secret"
ALLOWED_HOSTS="localhost,127.0.0.1,testserver"
DEBUG=True
EMAIL_FROM_ADDRESS="noreply@example.com"
# OTP server: not run locally; tests mock HTTP calls to it.
ALLOWED_REALMS="ungleich-admin,ungleich-auth"
OTPSERVER="http://localhost:9999/"
ADMIN_SEED="JBSWY3DPEHPK3PXP"
ADMIN_NAME="dev"
ADMIN_REALM="ungleich-admin"
USER_REALM="ungleich-auth"