Postline

Environment reference

For a server install, start with .env.example in the project root and keep the resulting .env private. The Mac app sets up its own database and encryption key. Use Settings to configure it.

SettingPurpose
APP_ENVSet production for a deployed server.
APP_URLPublic address used for links, network callbacks and session cookies. Use HTTPS beyond loopback.
APP_KEYEncrypts stored credentials. Keep a copy with recoverable data and reuse the key when migrating an existing workspace.
PASSKEY_ORIGINOptional origin override when browsers reach the app at a different origin. Include the scheme.
DB_CONNECTION, DB_DATABASE_PATHSet the connection to sqlite and point the web, API, and scheduler at the same database. Use a persistent directory outside deploy releases.
POSTLINE_MEDIA_DIRPersistent image directory shared by the API and scheduler.
POSTLINE_LATE_GRACE_MINUTESMinutes the scheduler still sends an overdue post after resuming. The default is 30.
POSTLINE_BACKUP_BUCKET, POSTLINE_BACKUP_REGIONPrivate off-site S3 destination for server recovery sets.
POSTLINE_BACKUP_ACCESS_KEY_ID, POSTLINE_BACKUP_SECRET_ACCESS_KEYScoped credentials for the backup scheduler.
POSTLINE_BACKUP_RECOVERY_KEYSeparate secret for encrypting the recovery set. Store a recoverable copy outside the host.
MAIL_MAILER and MAIL_*Mail transport and sender configuration for email delivery.
POSTLINE_ALERT_EMAIL, POSTLINE_ALERT_WEBHOOK_URLWhere to send publishing or account alerts.
POSTLINE_ERROR_WEBHOOK_URLOptional destination for aggregated server error alerts.
OPENAI_API_KEY, OPENAI_MODEL, ANTHROPIC_API_KEY, ANTHROPIC_MODEL, OLLAMA_HOST, OLLAMA_MODELCampaign AI defaults. Saved AI settings take precedence.

The network-specific guides list each callback and credential. The annotated .env.example supplies the full framework and application template. Connect a network. Back up and restore.