Skip to content

Configuration

The installer writes .env.prod in the checkout with mode 0600. It holds the instance configuration and its secrets. Edit it with care and keep a copy with your backups: without APP_KEY and the backup archive password, a backup cannot be restored.

Instance name and timezone are set in the app under Settings → Instance, update checks under Settings → Updates. Members, team email addresses and alert routing also live in the app, not in this file.

Recreate the containers after editing .env.prod. A plain restart does not load changed values.

shell
dc() { docker compose --env-file .env.prod "$@"; }
dc up -d --wait

Alerts are sent by email. The default MAIL_MAILER=log only writes messages to the log. Set an SMTP server:

.env.prod
MAIL_MAILER=smtp
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=heptapod@example.com
MAIL_PASSWORD=change-me
MAIL_FROM_ADDRESS=heptapod@example.com

After recreating the containers, send a test message from Settings → Channels. Heptapod records whether the SMTP server accepted each alert. Acceptance does not prove inbox delivery.

Variable Default Purpose
APP_URL from installer Public HTTPS URL. Used in links, emails and passkey origins. Change together with SERVER_NAME.
HEPTAPOD_CRAWL_CONCURRENCY 1 Parallel crawl workers. Use 2 on 8 GB or larger servers.
HORIZON_MEMORY_LIMIT 1990m Memory cap for the queue workers. Use 2990m with two crawl workers.
HEPTAPOD_CRAWL_TIMEOUT_SECONDS 1200 Time limit for one broken-link crawl.
BACKUP_DISK backups Where scheduled backups are written. S3-compatible disks are supported.
INSTANCE_HEARTBEAT_URL empty A URL Heptapod requests every minute, for an external dead-man alert.
TRUSTED_PROXIES empty IPs or CIDRs of your own reverse proxy. Never *.
COMPOSE_PROFILES, HEPTAPOD_BROWSER_ENABLED browser, true Browser services for Lighthouse. Change both together.

Heptapod cannot alert you when its own server is down. Set INSTANCE_HEARTBEAT_URL to a heartbeat URL at an independent service, so a missed ping from Heptapod raises an alert somewhere else.

The system status is in Settings → System. On the server, run:

shell
dc exec app php artisan heptapod:system-health