Skip to content

Reference

Configuration

The environment variables of the server, the desktop app and the command-line program.

Last updated:

Everything is an environment variable. The server reads them from the process environment and from a .env file. .env.example in the repository lists them all with comments; this page covers the ones you are likely to change.

Command-line program and MCP server#

VariableDefaultMeaning
VUKEM_TOOLS_URLhttp://localhost:3000The server to call.
VUKEM_TOOLS_API_KEYnoneThe API key. Kept in memory only.

Desktop app#

VariableDefaultMeaning
VUKEM_TOOLS_URLnoneShow this server instead of starting one.
VUKEM_TOOLS_TOOLnoneOpen a tool page instead of the home page.

Server#

VariableDefaultMeaning
APP_KEYnoneEncrypts cookies. Generate it once and keep it.
APP_URLhttp://localhost:3000Public origin, used in links.
APP_ENVdevelopmentdevelopment, test or production. Production is stricter: see Docker.
APP_MODEunsetlocal runs the server, the worker and the scheduler in one process on SQLite, with no Postgres and no object storage. Data goes in your user configuration directory, under vukem-tools.
HOST, PORTlocalhost, 3000Where the server listens.
DATABASE_URLPostgresThe database. The queue, sessions and cache live in it.
QUEUE_IN_SERVE, SCHEDULE_IN_SERVEtrueRun the worker and the scheduler inside the server process.
QUEUE_CONCURRENCY2Conversions that run at once.
MAIL_MAILERloglog writes mail to the log.
PASSWORD_AUTHonEmail and password sign-in. Set off to leave only social sign-in; .env.example does. Local mode forces it on.
SOCIAL_GOOGLE_CLIENT_ID, SOCIAL_GOOGLE_CLIENT_SECRETnoneTurn on Google sign-in.
TRUSTED_PROXIESnoneProxies whose address headers are trusted, so rate limits see the visitor's address.
S3_BUCKETnoneObject storage for results. Without it they stay on local disk, which production refuses.
CLAMAV_ADDRnoneA clamd address for malware scanning. CLAMAV_DISABLED=true stores uploads unscanned.

Limits#

VariableDefaultMeaning
MAX_UPLOAD_SIZE_MB500The largest upload.
MAX_STORED_MB_PER_USER2048The most one account may keep stored. 0 for no cap.
QUOTA_CPU_MINUTES_PER_DAY60Daily processing budget per account. 0 for no limit.
QUOTA_EXEMPT_USER_IDSnoneAccounts the budget does not apply to.
RESULT_TTL_MINUTES5How long a result can be downloaded.
UPLOAD_TTL_MINUTES30How long an unused upload waits.
MAX_DOWNLOAD_SIZE_MB500The largest video download.
MAX_EDIT_DURATION_MINUTES30The longest output of a cut.

Engines#

The server finds each engine on PATH, or at the path you give. It logs the version of each one at start, and hides the tools whose engine is missing.

VariableEngine
QPDF_PATHqpdf
PDFTOTEXT_PATH, PDFTOPPM_PATHPoppler tools
GHOSTSCRIPT_PATHGhostscript
VIPS_PATH, VIPSHEADER_PATHlibvips
FFMPEG_PATH, FFPROBE_PATHffmpeg
YTDLP_PATHyt-dlp

ENGINE_INSECURE_ALLOW_NETWORK=true runs the engines with the container's network instead of an empty one. Leave it unset unless a firewall outside the container gives the same guarantee.

Next step#

Docker shows these in a working stack.