Environment variables
Environment variables
| Variable | Description | Default |
|---|---|---|
TRMNL_PROXY_BASE_URL |
Base URL of the native TRMNL service | https://trmnl.app |
TRMNL_PROXY_REFRESH_MINUTES |
How often to fetch new images from the cloud service | 15 |
MULTIUSER_REGISTRATION_ENABLED |
After the first account, allow more signups and disable user-authored Blade. Trusted environments only (family, friends) | 0 |
INSECURE_BLADE_ALLOW_PHP_EXECUTION |
Force compiling user-authored Blade as PHP on (1) or off (0). Unset: on for a single user, off for multi-user |
auto |
PASSKEYS_ENABLED |
Enable passkeys (requires HTTPS). See Authentication | 0 |
SSL_MODE |
SSL mode when not behind a reverse proxy (docs) | off |
FORCE_HTTPS |
Enforce HTTPS when the server terminates SSL | 0 |
TRUSTED_PROXIES |
Trusted proxy CIDRs, e.g. "172.0.0.0/8" or *; also needed to serve under a sub-path |
null |
PHP_OPCACHE_ENABLE |
Enable PHP OPcache | 0 |
TRMNL_IMAGE_URL_TIMEOUT |
Display endpoint response timeout (seconds) | 30 |
HTTP_CLIENT_TIMEOUT |
Outbound HTTP timeout when fetching recipe polling URLs (seconds) | 10 |
APP_TIMEZONE |
PHP timezone (UTC recommended) | UTC |
TOGGLE_MCP |
Default for the MCP Server lab flag | false |
TOGGLE_PRERENDER_PLAYLIST_ITEMS |
Default for the Pre-render playlist items lab flag | false |
TRANSFORM_PROVIDER |
local runs JavaScript transforms with Node.js in the container; http uses an external runner |
null |
TRANSFORM_RUNNER_URL |
Base URL of the transform runner | http://transform:3000 |
TRANSFORM_RUNNER_TOKEN |
Optional bearer token sent to the runner | null |
TRANSFORM_TIMEOUT_SECONDS |
Max seconds for one transform | 5 |
TRANSFORM_MEMORY_LIMIT_MB |
Max JavaScript heap for one local transform | 128 |
TRANSFORM_NODE_BINARY |
Node.js binary used by the local provider | node |
TRANSFORM_ALLOW_NETWORK |
false makes fetch() in local transforms fail |
true |
Browser assets
Framework CSS and JavaScript for recipe screens can be loaded from a mirror or local server. Publish the framework’s /css and /js paths on that host; recipe framework_version still selects the version segment in the URL.
| Variable | Description | Default |
|---|---|---|
TRMNL_BLADE_FRAMEWORK_BASE_URL |
Base URL for versioned framework assets (plugins.css, plugins.js) |
https://trmnl.com |
TRMNL_BLADE_FRAMEWORK_CSS_URL |
Override the framework stylesheet URL | null |
TRMNL_BLADE_FRAMEWORK_JS_URL |
Override the framework JavaScript URL | null |
Explicit stylesheet and JavaScript URLs take precedence over the base URL and per-recipe framework version.
Private certificate authorities
Chromium does not use the container’s CA bundle, so images and other assets from hosts with a private CA (self-hosted S3/MinIO, internal dashboards) fail in renders with ERR_CERT_AUTHORITY_INVALID. Pin their public keys instead; LaraPaper passes them to Chromium as --ignore-certificate-errors-spki-list.
| Variable | Description | Default |
|---|---|---|
PUPPETEER_CA_FILE |
Path to a PEM bundle inside the container. The SPKI hash of every certificate in it is pinned | null |
PUPPETEER_CERT_SPKI_SHA256 |
Comma-separated base64 SHA-256 SPKI hashes to pin | null |
Pinning the CA only works when the server sends the full chain (leaf plus CA); otherwise pin the leaf certificate. Compute a hash yourself with:
openssl x509 -in cert.crt -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | base64
Pinned keys are accepted even when the certificate is otherwise invalid (wrong host name, expired), so only list keys you control.
OpenID Connect
Optional sign-in through an OpenID Connect provider. See Authentication.
The redirect URI is {APP_URL}/auth/oidc/callback. It is not a separate variable.
| Variable | Description | Default |
|---|---|---|
OIDC_ENABLED |
Enable the OIDC login button and callback | false |
OIDC_ENDPOINT |
Provider base URL, or the full well-known configuration URL | |
OIDC_CLIENT_ID |
OAuth client ID | |
OIDC_CLIENT_SECRET |
OAuth client secret | |
OIDC_SCOPES |
Comma-separated scopes | openid,profile,email |
Security
LaraPaper is built for a single user on a VPS or in a homelab. Multi-user mode is for trusted environments only, like family and friends. Full isolation between users is a non-goal, so multi-user mode is not a security boundary.
The first account can always be created. After that, signup stays closed unless MULTIUSER_REGISTRATION_ENABLED is on.
User-authored Blade templates are compiled to PHP. In single-user mode that stays available, because the only account is the person running the server. In multi-user mode Blade is not compiled unless INSECURE_BLADE_ALLOW_PHP_EXECUTION=1. Setting INSECURE_BLADE_ALLOW_PHP_EXECUTION=0 disables Blade in single-user mode as well. Turning the flag on means any registered user can execute PHP as the web server user. That includes reading .env, configuration, and other users’ data. Liquid templates stay available either way.