Skip to content

Configuration reference

Settings can be supplied via a .env file or the process environment.

VariableDefaultPurpose
DATABASE_URLsqlite:///./quoptuna.dbApplication database URL
UPLOAD_DIR./uploadsDirectory for uploaded datasets
MAX_UPLOAD_SIZE100 MBMaximum upload size
DEFAULT_N_TRIALS100Default number of Optuna trials
DEFAULT_TIMEOUT3600 sDefault run timeout
CORS_ORIGINSComma-separated list of allowed origins
APP_BASE_URLhttp://localhost:8000Base URL for generated links

Set the API key for your chosen report provider. All default to empty.

VariableDefaultPurpose
OPENAI_API_KEYemptyOpenAI provider key
ANTHROPIC_API_KEYemptyAnthropic provider key
GOOGLE_API_KEYemptyGoogle provider key

Authentication is enforced only when all of these are set. When unset, /api/v1/* is open (good for local/dev). Sessions are stored in encrypted, httponly cookies.

VariablePurpose
AUTH0_DOMAINAuth0 tenant domain
AUTH0_CLIENT_IDAuth0 application client id
AUTH0_CLIENT_SECRETAuth0 application client secret
AUTH0_SECRET64-char hex session secret (openssl rand -hex 32)
VariableDefaultPurpose
QUOPTUNA_JAX_X64onSet 0 for float32 — roughly halves simulator memory/compute
QUOPTUNA_OVR_N_JOBSoffThread count for multiclass OvR sub-fits
QUOPTUNA_LOG_FILEdb/logs/quoptuna.logOverride the rotating log path