Configuration

Environment variables, settings, and GitHub App setup for Syntropic137.

Syntropic137 uses environment variables for configuration. Copy .env.example to .env and customize as needed.

Core Settings

VariableDefaultDescription
APP_ENVIRONMENTdevelopmentRuntime environment (development, beta, staging, production, selfhost, test, offline)
SYN_OBSERVABILITY_DB_URLPostgreSQL connection string the API uses for observability data and projections
DATABASE_URLPostgreSQL connection string for the event store container (set in Docker Compose)
REDIS_URLRedis connection string
SYN_API_HOST0.0.0.0API server bind address
SYN_API_PORT8000API server port

GitHub App

Syntropic137 integrates with GitHub through a GitHub App for receiving webhook events and managing repositories.

Setup

The GitHub App is created during setup:

npx @syntropic137/setup init

To open an existing App's settings, permissions or installations page later, run npx @syntropic137/setup github-app.

See GitHub Integration for the full setup guide including trigger rules and webhook configuration. For secret storage details, see Secrets Management.

Environment Variables

VariableDescription
SYN_GITHUB_APP_IDGitHub App ID
SYN_GITHUB_APP_PRIVATE_KEY_FILEPath to the PEM private key file (preferred; takes priority)
SYN_GITHUB_PRIVATE_KEYPrivate key as file:<path>, raw PEM, or base64 PEM (fallback)
SYN_GITHUB_WEBHOOK_SECRETWebhook verification secret

Execution Concurrency

One budget bounds how many workflow executions run at once, across every start path: syn workflow run / POST /workflows/{id}/execute, trigger dispatch and resume. Starts beyond it wait in a first-come queue and show as queued, with their position, in syn execution show <id>.

VariableDefaultDescription
SYN_EXECUTION_MAX_CONCURRENT4Executions one API process runs at once

The limit is about memory. Every running execution holds a workspace container and roughly 96MiB of API memory, and an API that exceeds API_MEMORY_LIMIT is killed along with every execution it hosts. The default of 4 is conservative for the 2g API default; size it as (API_MEMORY_LIMIT in MiB - 128) / 96, for example 20 for 2g, and make sure the host has RAM for that many workspaces. The API logs a warning at startup when the two disagree.

Event Polling

Syntropic137 polls the GitHub Events API as a zero-config fallback when webhooks are unavailable. Polling is enabled by default, no tunnel setup required. See Event Ingestion for how the hybrid approach works.

VariableDefaultDescription
SYN_POLLING_DISABLEDfalseDisable Events API polling entirely
SYN_POLLING_POLL_INTERVAL_SECONDS60.0Active polling interval (seconds)
SYN_POLLING_SAFETY_NET_INTERVAL_SECONDS300.0Safety net polling interval (seconds)
SYN_POLLING_WEBHOOK_STALE_THRESHOLD_SECONDS1800.0Seconds before switching to active polling
SYN_POLLING_DEDUP_TTL_SECONDS86400Dedup key TTL (seconds). Stored in Postgres when available, rounded up to whole days; Redis is the fallback

See .env.example in the repository for the complete list of configuration options.

On this page