Running a server
Configuration
Every environment variable the community edition reads, grouped by what it is about - and what is set in the admin panel instead.
The server reads its configuration from environment variables as it starts; a change takes a restart. What concerns the apps rather than the server - limits, tiers, the build agent’s models, the guide for agents, whom the installation is for, the branding - is set in the admin panel while it runs, and needs none.
Addresses#
| Variable |
Default |
Meaning |
LAMBDA_PUBLIC_URL |
- |
Where people and agents reach the installation, such as https://lambda.example.com - no path. The apps’ addresses below /lambda/ and the sitemap are made from it. Once set, the server answers only at this name, at localhost and at the hosts in LAMBDA_MCP_ORIGINS; other names get a page saying nothing is online there. |
LAMBDA_HOSTING_URL |
- |
A domain for the apps, such as https://apps.example.com. Each app then answers at a subdomain of it instead of below /lambda/. Needs a wildcard DNS record and certificate - see Addresses. |
LAMBDA_ADDRESSING |
paths, or subdomains with LAMBDA_HOSTING_URL |
paths or subdomains; overrides what LAMBDA_HOSTING_URL implies. |
LAMBDA_PORT |
8080 |
The port of the server. |
LAMBDA_MCP_ORIGINS |
- |
Hosts, or origins with a scheme, separated by commas: a browser may use /mcp from them, and the server answers under those names besides LAMBDA_PUBLIC_URL. List the name an agent on an internal network reaches the server by - the build agent’s lambda in the Compose sample. |
Operator#
| Variable |
Default |
Meaning |
LAMBDA_ADMIN_TOKEN |
- |
The password of the admin panel and the operator’s API. Without it, neither exists. |
LAMBDA_CONTACT |
- |
An email address the pages offer for questions, such as moving an app to production. |
LAMBDA_ABUSE_CONTACT |
- |
An email address the pages offer for reporting a harmful app. |
Data#
| Variable |
Default |
Meaning |
LAMBDA_DATA_DIRECTORY |
/data in the image |
Where everything is kept. |
LAMBDA_SECRETS_KEY |
secrets.key in the data directory |
The installation’s half of the key the apps’ secrets are sealed with: 32 random bytes in base64, or a passphrase of at least 32 characters. Without it, a random key is written to secrets.key on first use. |
LAMBDA_DATABASE |
sqlite |
postgresql keeps the databases in PostgreSQL - see PostgreSQL. |
LAMBDA_POSTGRES_CONNECTION |
- |
With postgresql: how to reach it, as Npgsql reads it. |
LAMBDA_POSTGRES_ROLE_PREFIX |
lambda |
What the database role of every app is called before its id. |
LAMBDA_POSTGRES_POOL_SIZE |
10 |
Connections each app or draft keeps open at most. |
Build agent#
| Variable |
Default |
Meaning |
LAMBDA_AGENT_URL |
- |
Where the build agent listens. Without it, nothing is built from a description, and no text box offers it. |
LAMBDA_AGENT_TOKEN |
- |
The secret the server and the build agent share. |
LAMBDA_AGENT_PASSWORD |
- |
The password for the models the panel’s Build agent section puts behind one - Fable 5.2, at first. Without it, those are not offered. LAMBDA_AGENT_FABLE_PASSWORD, its name before, is still read. |
The agent’s own container reads what it signs in to Anthropic with - CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_API_KEY - and which model of Anthropic’s each model runs as; LAMBDA_AGENT_FETCH=false in the Compose sample keeps its jobs from reading the sites a request names. See Setting up the build agent.
Running apps#
| Variable |
Default |
Meaning |
LAMBDA_EXECUTION_TIMEOUT_SECONDS |
15 |
How long one request to an app may take before it is answered with a timeout; the app’s code is not stopped. A websocket stays open beyond it. |
LAMBDA_MAX_CONCURRENCY |
64 |
Requests to apps served at the same time. |
LAMBDA_MAINTENANCE_INTERVAL_HOURS |
0.25 |
How often unused sandbox apps are looked for. |
LAMBDA_GIT_MAX_PUSH_BYTES |
268435456 (256 MB) |
How large one git push may be, in bytes. Beyond a megabyte it waits in a temporary file until it is applied. |
LAMBDA_SOURCE_CACHE_BYTES |
2147483648 (2 GB) |
Disk the packed published sources may take, in bytes. |
Engine and TLS#
| Variable |
Default |
Meaning |
LAMBDA_ENGINE |
internal |
internal (GenHTTP’s own, runs anywhere), kestrel (ASP.NET Core’s) or ioxide (io_uring - fastest, but Linux only and blocked by the default seccomp profile of container runtimes). A value it does not know is internal too. |
LAMBDA_HTTP_PROTOCOLS |
Http1 |
Http1AndHttp2 adds HTTP/2 on Kestrel and ioxide; the internal engine speaks HTTP/1.1 only. |
LAMBDA_TLS_PORT |
0 (off) |
A port for HTTPS, together with LAMBDA_CERTIFICATE. With both, the plain port redirects there. |
LAMBDA_CERTIFICATE, LAMBDA_CERTIFICATE_KEY |
- |
A PEM certificate chain and its key - or a PKCS#12 archive in LAMBDA_CERTIFICATE with LAMBDA_CERTIFICATE_PASSWORD. |
LAMBDA_CERTIFICATE_DIRECTORY |
- |
More certificates, a folder per host name, as an ACME client keeps them. |
LAMBDA_ACME_DIRECTORY |
- |
A folder an ACME client writes HTTP challenges into, served for every host. |
LAMBDA_RECEIVE_BUFFERS |
1024 |
ioxide only: reads of 32 KB that each core’s connections share - at most 32 MB a core. |
LAMBDA_RECEIVE_QUEUE_ENTRIES |
2048 |
ioxide only: reads a connection may have waiting; never fewer than twice LAMBDA_RECEIVE_BUFFERS, so a large upload is slowed down rather than dropped. |
See Addresses, HTTPS and domains.
Logs and privacy#
| Variable |
Default |
Meaning |
LAMBDA_LOG_CLIENT_ADDRESS |
true |
Record the address a request came from. false keeps the log free of personal data - and then no visitors are counted, and no addresses are recorded that could be blocked. |
LAMBDA_LOG_GEO |
true |
Say which country an address is registered in, from the registries’ public files, fetched weekly. |
LAMBDA_LOG_GEO_PLACES |
true |
Also fetch the free DB-IP databases (about 130 MB) for the town and network. |
LAMBDA_LOG_GEO_REFRESH_HOURS |
168 |
How often the registry files are fetched again. |
LAMBDA_LOG_LAMBDA_OUTPUT |
true |
Keep what apps print, for their logs. |
LAMBDA_LOG_HISTORY |
4000 |
Log lines kept in memory for the panel, up to a million. |
LAMBDA_LOG_MEMORY_MB |
derived |
What their text may take; whichever runs out first decides. |
LAMBDA_LOG_MAX_LINES_PER_REQUEST |
200 |
Lines one request may add before the rest is dropped. |
LAMBDA_LOG_REPEAT_WINDOW_SECONDS |
10 |
Identical lines are counted rather than repeated within this window; 0 writes every one. |
LAMBDA_UNBLOCKABLE_NETWORKS |
own networks |
Networks never recorded against an app nor blocked: loopback, the private ranges, link-local and shared address space by default. A list of networks, or none. |
Analytics, telemetry and usage reports#
| Variable |
Default |
Meaning |
LAMBDA_ANALYTICS_INTERVAL_SECONDS |
300 |
How often counted visits are written down. Visits not yet written are lost when the server stops. |
LAMBDA_ANALYTICS_CRAWLER_LISTS |
true |
Fetch the list of known crawlers and the addresses major search and AI crawlers come from. |
LAMBDA_ANALYTICS_CRAWLER_REFRESH_HOURS |
24 |
How often they are fetched again. |
LAMBDA_TELEMETRY_INTERVAL_SECONDS |
30 |
How often the panel’s server figures are read. |
LAMBDA_TELEMETRY_SAMPLES |
2880 |
How many readings are kept - a day at the default interval. |
LAMBDA_USAGE_REPORTS |
true |
Send the daily usage report; false sends none. DO_NOT_TRACK=1 does the same. |
LAMBDA_DEVELOPMENT |
false |
Verbose error pages and debug logging. |
Set in the admin panel#
These are kept in the installation’s database and apply without a restart:
- Limits: per tier - its name, Build (what a version may come to), Data, how much analytics is shown, whether apps connect by default, when unused sandbox apps go offline and are removed; for every lambda - versions kept, drafts open, the tier new apps start in; for everybody - the size of a showcase picture, requests per second and build-agent requests per day, per client.
- Build agent: whether it builds new apps, whether owners may ask it about theirs, which models people may choose - for everybody or with the password - which efforts, and the defaults.
- Settings: whom the installation is for - home or enterprise - and whether the platform optimizes the databases in their quiet hours.
- Guide: a section of your own in the guide agents read first.
- Branding: the installation’s name and logo.