Environment Vars

SmallBlock reads configuration from environment variables and settings.yaml.

Common Variables

  • DATABASE_URL: DB connection string.

  • ALLOWED_HOSTS: comma-separated hostnames.

  • DEBUG: true or false (default: false).

  • LOG_LEVEL: INFO (default), WARNING, ERROR, DEBUG.

Loading Strategy

  • Use a .env file for local development.

  • Inject real secrets via your service manager (systemd) in production.