Not released yet. PeltyCMS is under development and not released yet; these docs describe the upcoming release and may change.
PeltyCMS Developer docs
User docsDevelopers
v0.1.0

Developer docs/Platform reference

Configuration

Every environment variable read by the server crates. Defaults come from pelty-core/src/config.rs. Variables read elsewhere show the file that reads them.

VariableDefaultDescriptionRead in
DATABASE_URLPostgreSQL connection URL (postgres://…). Required.crates/pelty-core/src/config.rs
PELTY_ADDONS_DIRDefault data/addons; an existing ./addons (the pre-restructure default) keeps working so older installs are not orphaned.crates/pelty-api/src/addons.rs
PELTY_ADDONS_DIST"extensions/addons/dist"Directory with the bundled first-party addon zips (default extensions/addons/dist).crates/pelty-api/src/wasm_addons.rs
PELTY_ADDON_DATA_DIR"data/addons"Root of per-addon data directories (default data/addons), one <root>/<id> each.crates/pelty-wasm/src/runtime.rs
PELTY_ADDON_MAX_FUELAdmin caps for addon limits: memory MiB, timeout seconds, fuel (defaults: the built-in maxima).crates/pelty-wasm/src/lib.rs
PELTY_ADDON_MAX_MEMORY_MIBAdmin caps for addon limits: memory MiB, timeout seconds, fuel (defaults: the built-in maxima).crates/pelty-wasm/src/lib.rs
PELTY_ADDON_MAX_TIMEOUT_SECSAdmin caps for addon limits: memory MiB, timeout seconds, fuel (defaults: the built-in maxima).crates/pelty-wasm/src/lib.rs
PELTY_ADMIN_PASSWORDPassword for admin create (otherwise the first line of stdin).crates/pelty-server/src/main.rs
PELTY_AUTH_RATE_PER_MINUTE10Max auth attempts per IP per minute.crates/pelty-core/src/config.rs
PELTY_BACKUP_DIR"backups"Where database backups are written (default backups).crates/pelty-api/src/backup.rs
PELTY_BIND"0.0.0.0:8080"Listen address.crates/pelty-core/src/config.rs
PELTY_COOKIE_SECUREtrueSet the Secure flag on cookies. Must be true behind HTTPS.crates/pelty-core/src/config.rs
PELTY_DB_MAX_CONNECTIONS10Database pool size.crates/pelty-core/src/config.rs
PELTY_DEFAULT_LOCALE"en"Language for visitors without a preference.crates/pelty-core/src/config.rs
PELTY_DOCKERPELTY_DOCKER=1 marks a container: addon exec is disabled.crates/pelty-wasm/src/runtime.rs
PELTY_DOCS_DIR"target/docs"Folder written by make docs (default target/docs).crates/pelty-api/src/dev_docs.rs
PELTY_DOCS_PUBLICtrue/1 makes /docs readable without signing in (default: staff only).crates/pelty-api/src/dev_docs.rs
PELTY_ENCRYPTION_KEYBase64 32-byte key for secrets at rest (TOTP). No default: 2FA enrolment is refused while unset.crates/pelty-core/src/config.rs
PELTY_FRONTEND_DIR"frontend/dist"Built frontend served as the SPA.crates/pelty-core/src/config.rs
PELTY_LOCALES_DIR"locales"Translation JSON files.crates/pelty-core/src/config.rs
PELTY_LOG_JSONfalseLog as JSON lines instead of text.crates/pelty-core/src/config.rs
PELTY_MAIL_FROM"PeltyCMS <no-reply@localhost>".to_stringFrom address for outgoing mail.crates/pelty-core/src/config.rs
PELTY_PG_DUMP"pg_dump"pg_dump binary used for backups (default pg_dump on PATH).crates/pelty-api/src/backup.rs
PELTY_PLUGINS_DIR"extensions/plugins"Webhook plugin manifests.crates/pelty-core/src/config.rs
PELTY_PROVISION_ALLOW_LINK_LOCAL1/true lets provisioning modules reach link-local addresses (off by default).crates/pelty-provisioning/src/http.rs
PELTY_PUBLIC_URL"http://localhost:8080"Absolute base URL used in email links, e.g. https://billing.example.com.crates/pelty-core/src/config.rs crates/pelty-api/src/routes/billing.rs
PELTY_SESSION_ABSOLUTE_HOURS24 * 30Sessions end after this many hours regardless of activity.crates/pelty-core/src/config.rs
PELTY_SESSION_IDLE_MINUTES60 * 24Sign out after this many idle minutes.crates/pelty-core/src/config.rs
PELTY_SMTP_URLSMTP URL (smtps://user:pass@host:465). Unset: mail is logged, not sent.crates/pelty-core/src/config.rs
PELTY_THEMES_DIR"extensions/themes"Theme folders (theme.json).crates/pelty-core/src/config.rs
PELTY_VIES_URLEU VIES VAT check API base URL (default: the public EU endpoint).crates/pelty-api/src/vies.rs
PELTY_WASM_CACHE_DIRCompiled-module cache directory (default <tmp>/pelty-wasm-cache).crates/pelty-wasm/src/runtime.rs