Skip to content

Configuration

Every setting of the engine, its environment variable and its default.

Applies to Engine
View as Markdown
On this page
  1. SYPNIA_LEARN_DATABASE_URL
  2. SYPNIA_LEARN_ROOT_TOKEN
  3. SYPNIA_LEARN_PUBLIC_URL
  4. SYPNIA_LEARN_PORT
  5. SYPNIA_LEARN_STORAGE_URL
  6. SYPNIA_LEARN_AUTH_URL
  7. SYPNIA_LEARN_OIDC_ISSUER
  8. SYPNIA_LEARN_RUNNER
  9. SYPNIA_LEARN_CHECK_TIMEOUT_S
  10. SYPNIA_LEARN_CHECKS_PER_PERSON
  11. SYPNIA_LEARN_AI_URL
  12. SYPNIA_LEARN_GIT_URL
  13. SYPNIA_LEARN_PRODUCTS
  14. SYPNIA_LEARN_SAMPLE
  15. SYPNIA_LEARN_OFFERS
  16. SYPNIA_LEARN_OTLP_ENDPOINT
  17. SYPNIA_LEARN_MAX_UPLOAD_MB
  18. SYPNIA_LEARN_AUTO_MIGRATE
  19. SYPNIA_LEARN_MCP
  20. SYPNIA_LEARN_LOG

Settings are environment variables starting with SYPNIA_LEARN_.

SYPNIA_LEARN_DATABASE_URL

Engine
Key
database_url
Type
string
Default
none (required)
Postgres 16 or newer.

SYPNIA_LEARN_ROOT_TOKEN

Engine
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.

SYPNIA_LEARN_PUBLIC_URL

Engine
Key
public_url
Type
URL
Default
http://localhost:8097
The address learners, the CLI and agents use.

SYPNIA_LEARN_PORT

Engine
Key
port
Type
number
Default
8097
The port the engine listens on.

SYPNIA_LEARN_STORAGE_URL

Engine
Key
storage_url
Type
URL
Default
none (required)
S3-compatible storage for course files and videos.

SYPNIA_LEARN_AUTH_URL

Engine
Key
auth_url
Type
URL
Default
empty
A Sypnia Data engine to sign people in. Use this or the OpenID Connect settings.

SYPNIA_LEARN_OIDC_ISSUER

Engine
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.

SYPNIA_LEARN_RUNNER

Engine
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.

SYPNIA_LEARN_CHECK_TIMEOUT_S

Engine
Key
check_timeout_s
Type
number
Default
600
The longest a check run may take.

SYPNIA_LEARN_CHECKS_PER_PERSON

Engine
Key
checks_per_person
Type
number
Default
3
Check runs one person can have at the same time.

SYPNIA_LEARN_AI_URL

Engine
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.

SYPNIA_LEARN_GIT_URL

Engine
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.

SYPNIA_LEARN_PRODUCTS

Engine
Key
products
Type
string
Default
empty
The engines lessons read from, as name=url separated by commas: cases, data, telemetry.

SYPNIA_LEARN_SAMPLE

Engine
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.

SYPNIA_LEARN_OFFERS

Engine
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.

SYPNIA_LEARN_OTLP_ENDPOINT

Engine
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.

SYPNIA_LEARN_MAX_UPLOAD_MB

Engine
Key
max_upload_mb
Type
number
Default
2048
The largest video file a course can carry.

SYPNIA_LEARN_AUTO_MIGRATE

Engine
Key
auto_migrate
Type
boolean
Default
false
Run database migrations on start.

SYPNIA_LEARN_MCP

Engine
Key
mcp
Type
boolean
Default
true
Serve the MCP server at /mcp.

SYPNIA_LEARN_LOG

Engine
Key
log
Type
string
Default
info
error, warn, info or debug.
  1. SYPNIA_LEARN_DATABASE_URL
  2. SYPNIA_LEARN_ROOT_TOKEN
  3. SYPNIA_LEARN_PUBLIC_URL
  4. SYPNIA_LEARN_PORT
  5. SYPNIA_LEARN_STORAGE_URL
  6. SYPNIA_LEARN_AUTH_URL
  7. SYPNIA_LEARN_OIDC_ISSUER
  8. SYPNIA_LEARN_RUNNER
  9. SYPNIA_LEARN_CHECK_TIMEOUT_S
  10. SYPNIA_LEARN_CHECKS_PER_PERSON
  11. SYPNIA_LEARN_AI_URL
  12. SYPNIA_LEARN_GIT_URL
  13. SYPNIA_LEARN_PRODUCTS
  14. SYPNIA_LEARN_SAMPLE
  15. SYPNIA_LEARN_OFFERS
  16. SYPNIA_LEARN_OTLP_ENDPOINT
  17. SYPNIA_LEARN_MAX_UPLOAD_MB
  18. SYPNIA_LEARN_AUTO_MIGRATE
  19. SYPNIA_LEARN_MCP
  20. SYPNIA_LEARN_LOG

    Search pages, sections and terms