Skip to main content

Runtime Settings

Most configuration flags bind once at startup. A curated subset can be overridden at runtime via the /admin/settings page, the mr admin settings CLI, or the /v1/admin/settings HTTP API — no restart required.

How precedence works

  1. Boot flag / env var supplies the initial value.
  2. If the runtime_settings table has a row for the key, that override wins.
  3. When a flag is set and an override differs from it, one WARN line is logged at startup so operators are not silently surprised.

Reset via the UI (Reset button), CLI (mr admin settings reset <key>), or API (DELETE /v1/admin/settings/<key>) removes the override and returns to the boot value.

Runtime-editable settings

KeyTypeBoundsBoot flagTakes effect
max_upload_sizeint64 (bytes)1 KiB–1 TiB; 0 = unlimited-max-upload-sizenext upload request
max_import_sizeint64 (bytes)1 MiB–1 TiB-max-import-sizenext import parse
mrql_default_limitint1–100000-mrql-default-limitnext MRQL query
mrql_query_timeoutduration100ms–5m-mrql-query-timeoutnext MRQL query
export_retentionduration1m–30d-export-retentionnext sweep + UI disclosure
remote_connect_timeoutduration1s–10m-remote-connect-timeoutnext remote download
remote_idle_timeoutduration1s–1h-remote-idle-timeoutnext remote download
remote_overall_timeoutduration10s–24h-remote-overall-timeoutnext remote download
share_public_urlstring (http/https URL)absolute; non-empty host-share-public-urlnext share link render
hash_similarity_thresholdint0–64-hash-similarity-thresholdnext hash comparison
hash_ahash_thresholduint640–64; 0 disables-hash-ahash-thresholdnext hash comparison

Audit trail

Every change writes a row to log_entries with entity_type=runtime_setting, the key as entity_name, old→new values in message, and the request IP in ip_address. Visible in the admin log view at /admin/overview.

CLI reference

See mr admin settings.