Configuration
Every setting of the engine, its environment variable and its default.
On this page
- SYPNIA_LEARN_DATABASE_URL
- SYPNIA_LEARN_ROOT_TOKEN
- SYPNIA_LEARN_PUBLIC_URL
- SYPNIA_LEARN_PORT
- SYPNIA_LEARN_STORAGE_URL
- SYPNIA_LEARN_AUTH_URL
- SYPNIA_LEARN_OIDC_ISSUER
- SYPNIA_LEARN_RUNNER
- SYPNIA_LEARN_CHECK_TIMEOUT_S
- SYPNIA_LEARN_CHECKS_PER_PERSON
- SYPNIA_LEARN_AI_URL
- SYPNIA_LEARN_GIT_URL
- SYPNIA_LEARN_PRODUCTS
- SYPNIA_LEARN_SAMPLE
- SYPNIA_LEARN_OFFERS
- SYPNIA_LEARN_OTLP_ENDPOINT
- SYPNIA_LEARN_MAX_UPLOAD_MB
- SYPNIA_LEARN_AUTO_MIGRATE
- SYPNIA_LEARN_MCP
- SYPNIA_LEARN_LOG
Settings are environment variables starting with SYPNIA_LEARN_.
- Key
database_url- Type
- string
- Default
none (required)
Postgres 16 or newer.
- Key
root_token- Type
- string (secret)
- Default
none (required)
The token that can do everything on this engine, such as publishing courses. Keep it in a secret store.
- Key
public_url- Type
- URL
- Default
http://localhost:8097
The address learners, the CLI and agents use.
- Key
port- Type
- number
- Default
8097
The port the engine listens on.
- Key
storage_url- Type
- URL
- Default
none (required)
S3-compatible storage for course files and videos.
- Key
auth_url- Type
- URL
- Default
empty
A Sypnia Data engine to sign people in. Use this or the OpenID Connect settings.
- Key
oidc_issuer- Type
- URL
- Default
empty
Any OpenID Connect provider, with
SYPNIA_LEARN_OIDC_CLIENT_ID and, when the provider needs it, SYPNIA_LEARN_OIDC_CLIENT_SECRET.- Key
runner- Type
- string
- Default
off
Where checks run:
agent=<url> (a Sypnia Agent sandbox), docker=<url> (the Docker runner) or off (no exercises checked on the engine). Results are signed with SYPNIA_LEARN_RUNNER_SECRET.- Key
check_timeout_s- Type
- number
- Default
600
The longest a check run may take.
- Key
checks_per_person- Type
- number
- Default
3
Check runs one person can have at the same time.
- Key
ai_url- Type
- URL
- Default
empty
An OpenAI-compatible endpoint for explanations and hints, such as a Sypnia AI gateway’s
/v1, with SYPNIA_LEARN_AI_KEY. The task or model name sent is SYPNIA_LEARN_AI_TASK (default task:explain). Empty: explanations and hints are off.- Key
git_url- Type
- URL
- Default
empty
A Sypnia Git engine, to create exercise branches for learners. Empty: exercises start from the CLI, on a local folder.
- Key
products- Type
- string
- Default
empty
The engines lessons read from, as
name=url separated by commas: cases, data, telemetry.- Key
sample- Type
- boolean
- Default
true
Use the sample bakery when a learner’s project has no match. Off: such a lesson answers
422 no_match.- Key
offers- Type
- boolean
- Default
true
Offer lessons in the moment. Events come from the product engines as webhooks signed with
SYPNIA_LEARN_EVENTS_SECRET; at most SYPNIA_LEARN_OFFERS_PER_DAY (default 3) per person a day.- Key
otlp_endpoint- Type
- URL
- Default
empty
Where the engine’s spans go: Sypnia Telemetry or any OpenTelemetry endpoint, with headers in
SYPNIA_LEARN_OTLP_HEADERS.- Key
max_upload_mb- Type
- number
- Default
2048
The largest video file a course can carry.
- Key
auto_migrate- Type
- boolean
- Default
false
Run database migrations on start.
- Key
mcp- Type
- boolean
- Default
true
Serve the MCP server at
/mcp.- Key
log- Type
- string
- Default
info
error, warn, info or debug.