Skip to content

Advanced Configuration

Optional environment variables for security hardening, performance tuning, and authentication behavior. For the complete reference, see Environment Variables.

Authentication behavior

VariableDefaultDescription
ACCOUNT_EMAIL_VERIFICATIONnonenone, optional, or mandatory email verification for new accounts
FORCE_SOCIALACCOUNT_LOGINFalseWhen True, disables password login — social/OIDC providers only
SOCIALACCOUNT_ALLOW_SIGNUPFalseAllow new accounts via social providers even when DISABLE_REGISTRATION=True

Related: Social Auth, Disable Registration, SMTP Email.

Rate limiting

Enable in production to protect against abuse:

env
ENABLE_RATE_LIMITS=True

Per-endpoint overrides (all optional):

VariableDefaultEndpoint
RATE_LIMIT_USER10000/hourAuthenticated API requests
RATE_LIMIT_IMAGE_PROXY60/minuteImage proxy
RATE_LIMIT_IMAGE_IMPORT12/minuteImage import
RATE_LIMIT_EXTERNAL_GEOCODE120/minuteExternal geocoding
RATE_LIMIT_EXTERNAL_RECOMMENDATIONS30/minuteRecommendations
RATE_LIMIT_EXTERNAL_WIKIPEDIA60/minuteWikipedia lookups
RATE_LIMIT_EXTERNAL_SUNRISE_SUNSET30/minuteSunrise/sunset API

Performance

VariableDefaultDescription
GUNICORN_WORKERS2Gunicorn worker count. Use 1 on small VPS instances; (2 × CPU cores) + 1 on larger servers.
SKIP_WORLD_DATAunsetSet to 1 to skip the first-boot download-countries import. Saves RAM on low-memory hosts; world travel data can be imported later.

The installer offers SKIP_WORLD_DATA=1 automatically when it detects limited RAM.

Multi-factor authentication

MFA (TOTP) is configured per-user in the app, not via environment variables:

  1. Log in and open Settings → Security
  2. Enable Multi-Factor Authentication
  3. Scan the QR code with an authenticator app

Mobile QR login

AdventureLog supports QR-based mobile login from Settings → Security. No server-side configuration is required.

Cloud billing (hosted only)

These variables apply only to the hosted AdventureLog cloud service, not self-hosted installs:

VariableDescription
CLOUD_MODEEnable cloud billing features
CLOUD_TRIAL_DAYSTrial period length
STRIPE_*Stripe payment integration keys