Laneshot is configured with environment variables. The server validates them on start and exits with a clear message if a required value is missing or malformed. Empty values count as unset.
With Docker Compose, put optional settings in .env.docker. For development, copy .env.example to .env.
Core
| Variable | Required | Default | Description |
|---|---|---|---|
DATABASE_URL |
Yes | PostgreSQL connection string, such as postgres://laneshot:secret@db:5432/laneshot. Compose sets it. |
|
APP_URL |
Yes | The public address people use, such as https://laneshot.acme.com. Used for sign-in redirects, links in issues and notifications, MCP commands, and webhooks. A trailing slash is removed. |
|
MARKETING_URL |
No | Your public website, such as https://laneshot.com. Signed-out visitors of the root address go there instead of sign-in, and the sign-in and sign-up pages link back to it. |
|
TERMS_URL |
No | Your terms of service. With PRIVACY_URL, the sign-up page says that creating an account accepts both, with links. |
|
PRIVACY_URL |
No | Your privacy policy, linked from the sign-up page with TERMS_URL. |
|
BETTER_AUTH_SECRET |
Yes | Generated by the Docker image | Signs sessions. At least 32 characters. Generate one with openssl rand -base64 32. Changing it signs everyone out. |
ENCRYPTION_KEY |
Yes | Generated by the Docker image | Encrypts stored credentials: GitHub tokens, tracker and backend connections, and automation actions. Changing it makes them unreadable. |
Storage and retention
| Variable | Default | Description |
|---|---|---|
STORAGE_DRIVER |
local |
local or s3. |
STORAGE_DIR |
./storage |
Directory for recordings and event logs with the local driver. Compose sets /data/storage. |
S3_BUCKET |
Bucket name, with the s3 driver. |
|
S3_REGION |
us-east-1 |
Bucket region. |
S3_ENDPOINT |
Endpoint of a non-AWS store, such as MinIO or Cloudflare R2. | |
S3_ACCESS_KEY_ID |
Access key. Leave both keys empty to use the AWS default credential chain. | |
S3_SECRET_ACCESS_KEY |
Secret key. | |
S3_FORCE_PATH_STYLE |
true for stores that need path-style URLs, such as MinIO. |
|
TRACE_RETENTION_DAYS |
Delete traces older than this many days. Projects can override it. Empty keeps traces indefinitely. |
See Deploy with Docker for examples.
First admin
The Docker image creates the first admin when the database has no users.
| Variable | Default | Description |
|---|---|---|
ADMIN_EMAIL |
admin@example.com |
Email of the first admin. |
ADMIN_PASSWORD |
Generated, and printed once in the logs | Password of the first admin. |
Outside Docker, npm run db:seed creates the first admin from these:
| Variable | Description |
|---|---|
SEED_ADMIN_EMAIL |
Email of the first admin. |
SEED_ADMIN_PASSWORD |
Password of the first admin. |
SEED_DEMO_DATA |
true to also create a sample project. |
Sign-up
See Sign-in and SSO.
| Variable | Default | Description |
|---|---|---|
DISABLE_SIGNUP |
false |
true turns off public sign-up. Invitations keep working. |
REQUIRE_EMAIL_VERIFICATION |
true when Resend is set |
Whether new password accounts must confirm their email before signing in. |
Google sign-in
Google sign-in turns on when the client ID and secret are set. See Sign-in and SSO.
| Variable | Description |
|---|---|
GOOGLE_CLIENT_ID |
OAuth client ID from Google Cloud. |
GOOGLE_CLIENT_SECRET |
OAuth client secret. |
GOOGLE_ALLOWED_DOMAIN |
Optional. The only Google Workspace domain allowed to sign in, such as acme.com. |
Transactional email through Resend. Without it, emails are written to the server log. See Email.
| Variable | Description |
|---|---|
RESEND_API_KEY |
API key from Resend, starting with re_. |
EMAIL_FROM |
The sender, such as Laneshot <notifications@acme.com>, on a domain verified in Resend. |
Billing
Plans and Stripe billing, for hosted offers. Without STRIPE_SECRET_KEY, billing is off and every organization is unlimited. See Billing.
| Variable | Description |
|---|---|
STRIPE_SECRET_KEY |
Secret key, sk_live_… or sk_test_…. |
STRIPE_WEBHOOK_SECRET |
Signing secret of the webhook endpoint, whsec_…. |
STRIPE_PRICE_PRO_MONTHLY, STRIPE_PRICE_PRO_YEARLY |
Price IDs of the Pro plan, per member. |
STRIPE_PRICE_BUSINESS_MONTHLY, STRIPE_PRICE_BUSINESS_YEARLY |
Price IDs of the Business plan, per member. |
STRIPE_TRIAL_DAYS |
Optional free trial on a first paid plan, in days. |
GitHub
All optional. See GitHub.
| Variable | Default | Description |
|---|---|---|
GITHUB_OAUTH_CLIENT_ID |
Client ID of a GitHub OAuth App. Turns on Connect GitHub. | |
GITHUB_OAUTH_CLIENT_SECRET |
Its client secret. | |
GITHUB_WEBHOOK_URL |
<APP_URL>/api/github/webhook on public HTTPS deployments |
Where GitHub sends issue events. Set it to a tunnel to receive webhooks during development. |
GITHUB_WEBHOOK_SECRET |
Derived from ENCRYPTION_KEY |
Secret used to verify webhook signatures. Set it explicitly when you configure a GitHub App's webhook. |
GITHUB_APP_ID |
ID of a GitHub App, for connections that use one. | |
GITHUB_APP_PRIVATE_KEY |
The app's PEM private key, on one line with \n for line breaks. |
|
GITHUB_API_URL |
https://api.github.com |
API address. For GitHub Enterprise Server, such as https://github.acme.com/api/v3. |
GITHUB_WEB_URL |
https://github.com |
Web address, used for OAuth. For GitHub Enterprise Server, such as https://github.acme.com. |
Imports
All optional. Without them, people paste a token in the import wizard instead. See Imports from Asana and Trello.
| Variable | Default | Description |
|---|---|---|
ASANA_OAUTH_CLIENT_ID |
Client ID of an Asana app. Turns on Connect Asana. | |
ASANA_OAUTH_CLIENT_SECRET |
Its client secret. | |
TRELLO_API_KEY |
API key of a Trello Power-Up whose allowed origins include APP_URL. Turns on Connect Trello. |
Browser extension
All optional. The Browser extension page shows an install button for each browser with a store listing, and links to the manual install steps for the others.
| Variable | Description |
|---|---|
EXTENSION_CHROME_URL |
Chrome Web Store listing. Brave, Arc, Opera, and other Chromium browsers use it too. |
EXTENSION_FIREFOX_URL |
Firefox Add-ons listing. |
EXTENSION_EDGE_URL |
Microsoft Edge Add-ons listing. |
EXTENSION_SAFARI_URL |
Mac App Store listing. |
Issue trackers
| Variable | Default | Description |
|---|---|---|
TRACKER_SYNC_INTERVAL_MS |
300000 (5 minutes) |
How often open issues in Linear, Jira, GitLab, and other trackers are checked. See Linear, Jira, and more. |
Tracker credentials are set per project in the app, not in the environment.
Transcription
Recordings with a voice-over are transcribed when a speech-to-text API is configured. Any API compatible with OpenAI's /audio/transcriptions endpoint works: OpenAI, Groq, Azure OpenAI, or a self-hosted Whisper server such as Speaches. See Transcripts.
| Variable | Default | Description |
|---|---|---|
TRANSCRIPTION_API_URL |
Base address of the API, such as https://api.openai.com/v1. Laneshot posts to <url>/audio/transcriptions. Transcription is off when unset. |
|
TRANSCRIPTION_API_KEY |
Sent as a Bearer token. Leave empty for servers without authentication. | |
TRANSCRIPTION_MODEL |
whisper-1 |
The model name, such as whisper-large-v3 on Groq. |
TRANSCRIPTION_LANGUAGE |
Detected | An ISO-639-1 code, such as en or fr, to skip language detection. |
TRANSCRIPTION_MAX_BYTES |
26214400 (25 MB) |
Recordings above this size aren't sent. Raise it if your server accepts larger files. |
Examples:
# OpenAI
TRANSCRIPTION_API_URL=https://api.openai.com/v1
TRANSCRIPTION_API_KEY=sk-…
# Groq
TRANSCRIPTION_API_URL=https://api.groq.com/openai/v1
TRANSCRIPTION_API_KEY=gsk_…
TRANSCRIPTION_MODEL=whisper-large-v3
# Self-hosted, audio never leaves your network
TRANSCRIPTION_API_URL=http://speaches.acme.internal:8000/v1
TRANSCRIPTION_MODEL=Systran/faster-whisper-small
Automations
| Variable | Default | Description |
|---|---|---|
ALLOW_PRIVATE_NETWORK_REQUESTS |
true lets addresses people enter reach private and loopback addresses: automation webhooks and MCP servers, self-hosted issue trackers, backend telemetry, and imports. Off by default, to protect internal services. AUTOMATION_ALLOW_PRIVATE_NETWORKS is the older name and still works. See Security. |
Docker Compose only
| Variable | Default | Description |
|---|---|---|
POSTGRES_PASSWORD |
laneshot |
Password of the bundled PostgreSQL. Set a strong one before the first start. |
PORT |
3100 |
Host port the web server is published on. The container always listens on 3100. |
Set these two in your shell or in a .env file next to docker-compose.yml, not in .env.docker, because Compose reads them to build the services.