QuackUIInstall

Configuration

Every environment variable, with its default.

Copy .env.example to .env, change what you need, and run docker compose up -d.

General

Variable Default Notes
QUACKUI_PORT 8080 Host port. 127.0.0.1:8080 binds to loopback
QUACKUI_PUBLIC_URL empty The address browsers use. Needed for SSO, delivery, and behind a TLS proxy
QUACKUI_TRUSTED_PROXIES empty Proxy IPs or CIDR ranges, comma separated. See Reverse proxy
QUACKUI_ADMIN_EMAIL admin@quackui.local First admin, created only when there are no users
QUACKUI_ADMIN_PASSWORD quackui-admin The default must be changed at first sign-in
QUACKUI_LOG_LEVEL info debug, info, warn or error
QUACKUI_UID, QUACKUI_GID the data folder’s owner User the API runs as
POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB quackui Postgres isn’t published outside the compose network

Data

Variable Default Notes
QUACKUI_DATA_PATH ./data Host folder with your DuckDB and Parquet files
QUACKUI_MAX_UPLOAD_MB 2048 Largest upload
QUACKUI_SAMPLES true Generate the sample databases
QUACKUI_SAMPLE_SCALE medium small, medium or large

Queries

Variable Default Notes
QUACKUI_QUERY_TIMEOUT_S 60 Time limit for a query
QUACKUI_QUERY_MAX_ROWS 100000 Row cap
QUACKUI_QUERY_MAX_RESULT_MB 50 Result size cap
QUACKUI_QUERY_CONCURRENCY 4 Queries running at once
QUACKUI_QUERY_QUEUE 32 Queries waiting
QUACKUI_QUERY_MEMORY_MB 1024 DuckDB memory per query
QUACKUI_QUERY_THREADS 2 DuckDB threads per query
QUACKUI_QUERY_CACHE_TTL_MIN 60 Cache lifetime. 0 turns it off
QUACKUI_QUERY_CACHE_MAX_KB 5120 Largest cached result
QUACKUI_QUERY_CACHE_TOTAL_MB 512 Cache size

Worst-case query memory is concurrency times memory per query, 4 GB by default.

Runs and exports

Variable Default Notes
QUACKUI_RUN_CONCURRENCY 2 Runs at once
QUACKUI_RUN_RETENTION 100 Runs kept per report
QUACKUI_RUN_TIMEOUT_S 3600 Time limit for a run
QUACKUI_RUN_MAX_MB 25 Results kept per run
QUACKUI_EXPORT_CONCURRENCY 2 Exports at once
QUACKUI_EXPORT_QUEUE 16 Exports waiting
QUACKUI_EXPORT_TIMEOUT_S 120 Time limit for an export
QUACKUI_EXPORT_MAX_MB 50 Largest file
QUACKUI_EXPORT_PDF_MAX_ROWS 2000 Rows of a table in a PDF
QUACKUI_RENDERER_MEMORY 1536m PDF renderer’s memory
QUACKUI_RENDERER_MAX_MB 96 Largest PDF job
QUACKUI_RENDERER_APPARMOR unconfined AppArmor profile for the renderer
QUACKUI_RENDERER_TOKEN generated Only to run the renderer elsewhere

Delivery

Variable Default Notes
QUACKUI_SECRET_KEY empty 32 random bytes in base64. Required for destinations
QUACKUI_DELIVERY_CONCURRENCY 2 Sends at once
QUACKUI_DELIVERY_TIMEOUT_S 30 Time limit for a send
QUACKUI_DELIVERY_MAX_ATTACHMENT_MB 10 Attachments per message
QUACKUI_DELIVERY_WEBHOOK_MAX_KB 1024 Webhook body size
QUACKUI_DELIVERY_ALLOWED_HOSTS empty Private webhook hosts to allow

Single sign-on

Variable Default Notes
QUACKUI_OIDC_ISSUER, QUACKUI_OIDC_CLIENT_ID, QUACKUI_OIDC_CLIENT_SECRET empty Set all three to turn it on
QUACKUI_OIDC_SCOPES openid email profile
QUACKUI_OIDC_LABEL Sign in with SSO Button text
QUACKUI_OIDC_ALLOWED_DOMAINS empty Email domains, exact match
QUACKUI_OIDC_GROUPS_CLAIM groups
QUACKUI_OIDC_GROUP_MAP empty JSON from claim values to group names
QUACKUI_OIDC_SESSION_MAX_HOURS 24
QUACKUI_PASSWORD_LOGIN all admins limits password sign-in to admins