virling Docs
v0.1.0 virling.com GitHub
virling Docs

Environment variables

Every setting can be given as a flag or an environment variable. See CLI for the flags.

VariableDefaultWhat it does
VIRLING_DATA./virling-dataFolder for virling.sqlite, events.duckdb and secret.key. /data in the Docker image.
VIRLING_ADDR0.0.0.0:8080Address and port to listen on.
VIRLING_APPfalseServe sign-in and the app, and run payment sync.
VIRLING_BASE_URLhttp://localhost:8080Public URL, used in sign-in links and script snippets. No trailing slash needed.
VIRLING_SECRET_KEYunset64 hex characters that encrypt provider keys. Unset: secret.key in the data folder is used, and created if missing.
VIRLING_TRUST_PROXYfalseRead the client IP from X-Forwarded-For. Only behind a proxy you control.
VIRLING_EVENTS_PER_SECOND200Events accepted per site per second.
VIRLING_SMTP_URLunsetSMTP URL for sign-in emails, such as smtps://user:pass@smtp.example.com:465. Unset: emails are logged.
VIRLING_MAIL_FROMVirling <login@virling.com>Sender for sign-in emails.
VIRLING_MARKETINGfalseServe the virling.com landing pages and waitlist.
VIRLING_WAITLIST_FROMRahul at Virling <hello@virling.com>Sender for waitlist emails.
RUST_LOGinfoLog level and filter, such as debug or virling=debug.

VIRLING_MARKETING and VIRLING_WAITLIST_FROM exist for virling.com itself. A self-hosted server does not need them.

Minimal production set

VIRLING_DATA=/var/lib/virling
VIRLING_BASE_URL=https://stats.example.com
VIRLING_APP=true
VIRLING_TRUST_PROXY=true
VIRLING_SMTP_URL=smtps://user:pass@smtp.example.com:465
VIRLING_MAIL_FROM=Virling <stats@example.com>
Was this page helpful?No Edit this page on GitHub