Skip to content
All guides: Server settings

Server settings

Set these variables in .env for the root Compose project. Compose supplies defaults for the image, database names and roles, storage access key, and public API URL.

On this page#

Required#

Scroll sideways
Name Required? Default What it does
PUBLIC_HOST Yes None Public hostname. Compose derives PUBLIC_API_URL from it.
POSTGRES_PASSWORD Yes None Password for the PostgreSQL owner role.
PEPPY_RUNTIME_DB_PASSWORD Yes None Password for the runtime role.
PEPPY_MAINTENANCE_DB_PASSWORD Yes None Password for the maintenance role.
S3_SECRET_KEY Yes None Storage secret key.

Public address and TLS#

Scroll sideways
Name Required? Default What it does
PUBLIC_API_URL No https://PUBLIC_HOST Public API origin; it must use https:// when PEPPY_ENV=production.
MAX_UPLOAD_BYTES No 64MB Caddy upload-size limit.
API_BIND_IP No 127.0.0.1 Host IP for the API listener.
API_HOST_PORT No 7000 Host port for the API listener.

Images#

Scroll sideways
Name Required? Default What it does
PEPPY_SERVER_IMAGE No hub.docker.visnovsky.us/library/peppy-server:latest Server image for docker-compose.yml.
PEPPY_MCP_IMAGE No hub.docker.visnovsky.us/library/peppy-mcp:latest MCP worker image for infra/compose/compose.mcp.yml.

Setup and security#

Scroll sideways
Name Required? Default What it does
PEPPY_SETUP_TOKEN No Empty Makes the first claim token-protected when at least 32 UTF-8 bytes.
TRUSTED_PROXY_CIDRS No Empty Comma-separated direct proxy IP or CIDR allowlist for forwarded client addresses.
WEB_UI_ENABLED No true Enables the browser client at the API origin.
WEB_CLIENT_ACCOUNT_URL No Empty Optional HTTPS account and billing site URL shown by the browser client.

Storage and limits#

Scroll sideways
Name Required? Default What it does
S3_BUCKET No peppy-private Storage bucket name.
VAULT_ATTACHMENT_QUOTA_BYTES No 536870912 Attachment quota per vault, in bytes.
PEPPY_REPLAY_RETENTION_DAYS No 30 Longest time, in days, the server keeps recent changes for a device that is offline, from 1 to 3650.

Advanced#

Scroll sideways
Name Required? Default What it does
PEPPY_ENV No production Selects the server environment.
POSTGRES_DB No peppy PostgreSQL database name.
POSTGRES_USER No peppy PostgreSQL migration and owner role.
PEPPY_RUNTIME_DB_USER No peppy_runtime PostgreSQL runtime role name.
PEPPY_MAINTENANCE_DB_USER No peppy_maintenance PostgreSQL maintenance role name.
S3_ACCESS_KEY No peppy Storage access key.