Skip to content

Settings

Lyra’s settings live in deploy/.env. The first time ./start.sh runs, it copies deploy/.env.example to .env, fills in the secrets and writes your answers. After changing a setting, run docker compose up -d in the deploy folder.

Only APP_URL, AUTH_SECRET and the two Postgres passwords are needed, and ./start.sh sets all of them. Every other setting is optional:

  • Left out of the file, a setting gets the default in the tables below.
  • Set to nothing (SHARE_URL=), a setting that turns something on turns it off. Each table says what an empty value does.
  • Settings that take a number, true or false, or one of a few words can’t be empty. To go back to the default, remove the whole line.
Setting Default What it does
APP_URL Needed Where people open Lyra, like https://docs.acme.com. Sign-in links and emails point at it, and Lyra only shows the app on this address. It must use https, unless it points at the machine itself
SHARE_URL Empty A separate domain for published pages, like https://share.acme.com. Empty serves them on APP_URL. Published pages only run Lyra’s own scripts, and uploaded files open in a sandbox, so they can’t act as the signed-in person either way. A separate domain still protects people if Lyra has a bug there. It must use https, unless it points at the machine itself
OLD_APP_HOSTS Empty After moving Lyra to a new APP_URL, the hosts it used to answer on, separated by commas, like old.acme.com. Every request to them, other than /health and /ready, is redirected to the same path on APP_URL, so old links and bookmarks keep working. People sign in again on the new address, and AI agents added at the old address have to be added again. The hosts still need to point at this server, and Caddy doesn’t get certificates for them. Empty redirects nothing
TRUSTED_PROXIES Empty The proxies in front of Lyra, as addresses or ranges (10.0.0.0/8), or loopback, linklocal, uniquelocal. Only they may set the client’s address with X-Forwarded-For, which rate limits use. ./start.sh sets uniquelocal, which covers Caddy. Empty when nothing sits in front
LYRA_PORT 8080 The port Lyra answers on. 127.0.0.1:8080 answers only the machine itself; ./start.sh sets that when Caddy is in front. Caddy reaches Lyra on port 8080, so keep that port when using it
COMPOSE_PROFILES None Extra containers to start, separated by commas: https (Caddy), mail (the mail catcher for trying Lyra) and datadog (the Datadog agent). A new .env starts with mail, and ./start.sh changes it to https for a real domain
Setting Default What it does
AUTH_SECRET Needed Signs cookies and encrypts stored tokens. At least 32 random characters; ./start.sh makes one. Keep it once set: changing it signs everyone out, and stored tokens can no longer be read
POSTGRES_PASSWORD Needed The database administrator’s password, set when the database is first created. Only backups and setup use it
POSTGRES_APP_PASSWORD Needed The password of lyra_app, the database user Lyra runs as. It owns Lyra’s tables but can’t administer Postgres. It’s set again on every start, so it can be changed
DATABASE_URL Set by deploy/compose.yml The Postgres database Lyra uses. Set it yourself only when you run Lyra’s image without deploy/compose.yml
DATABASE_POOL_SIZE 20 The most database connections one copy of Lyra opens at a time
REDIS_URL Set by deploy/compose.yml The Redis that passes live events between copies of Lyra and counts rate limits. deploy/compose.yml points it at its own Redis. Without Redis, both stay in Lyra’s memory, which only works for a single copy
ROLE all Which parts of Lyra this copy runs: all, or api, collab or jobs to run each part on its own. Anything other than all needs REDIS_URL. See More than one machine
Setting Default What it does
SMTP_URL Empty The mail server for sign-in links and notifications, like smtps://user:password@smtp.acme.com:465. A new .env starts with smtp://mailpit:1025, the mail catcher for trying Lyra. Lyra only sends to an smtp:// server on another machine over STARTTLS; add ?requireTLS=false to allow sending without it. Empty sends no email, which turns off emailed sign-in links and passwords
SES_REGION Empty Send email through Amazon SES’s API in this region instead of SMTP_URL. Credentials come from AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, or the machine’s role, which needs ses:SendEmail for EMAIL_FROM. Set this or SMTP_URL, not both. Empty doesn’t use SES
SES_FROM_IDENTITY_ARN Empty When EMAIL_FROM’s domain is set up for SES in another AWS account, the ARN of that identity. Its owner must let this account send through it
EMAIL_FROM Lyra <lyra@localhost> Who Lyra’s emails come from, like Lyra <lyra@acme.com>. Can’t be empty

Sign-in explains how to set up each method.

Setting Default What it does
SIGN_UP_EMAIL_DOMAINS Empty Email domains, separated by commas, whose people may create an account or an organization, like acme.com. Anyone else needs a page shared with them or an invite first. Empty lets anyone who can sign in create an account
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET Empty Turn on Google sign-in. Empty leaves out the Google button
OIDC_ISSUER_URL, OIDC_CLIENT_ID, OIDC_CLIENT_SECRET Empty Turn on single sign-on with any OpenID Connect provider, for everyone it signs in. Set all three or none. Empty leaves out the single sign-on button
OIDC_LABEL Sign in with SSO The single sign-on button’s text, up to 60 characters. Can’t be empty
OIDC_REQUIRE_EMAIL_VERIFIED true Refuses ID tokens that don’t say email_verified: true. Set false only for a provider that never sends it, like Entra ID, and only when people can’t change their own email there
PASSWORD_SIGN_IN true Lets people sign in with an email and a password. It only works when Lyra can send email. false turns it off
PWNED_PASSWORDS_URL https://api.pwnedpasswords.com Where new passwords are checked against Have I Been Pwned’s list of breached passwords. Only the first five characters of each password’s SHA-1 hash are sent. Empty turns the check off
APPLE_CLIENT_ID, APPLE_TEAM_ID, APPLE_KEY_ID, APPLE_PRIVATE_KEY Empty Turn on Sign in with Apple: the Services ID, your Apple Developer team ID, and the id and contents of a key with Sign in with Apple turned on. Set all four or none. Empty leaves out the Apple button
APPLE_ID_URL https://appleid.apple.com Apple’s sign-in address. Leave it out; only tests change it
Setting Default What it does
S3_BUCKET Empty Keep uploaded files in this S3-compatible bucket instead of the files volume. Empty keeps them in the volume. See Your own proxy and S3
S3_REGION us-east-1 The bucket’s region. Can’t be empty
S3_ENDPOINT Empty The storage service’s address, for anything other than AWS, like Cloudflare R2, Garage or MinIO. Empty uses AWS
S3_FORCE_PATH_STYLE false true puts the bucket’s name in the path instead of the host name, which most services other than AWS need
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY Empty Credentials for the bucket, and for Amazon SES. Empty uses the machine’s role
FILE_STORAGE_DIR /data/files The folder for uploaded files when there’s no bucket. The files volume is mounted there
DESKTOP_RELEASES_DIR Set by deploy/compose.yml The folder Lyra serves desktop app downloads and updates from, at /desktop/<file>. deploy/compose.yml sets it to the desktop volume. Without it, Lyra serves no downloads
DESKTOP_RELEASES_S3_PREFIX Empty Serve desktop app downloads and updates from S3_BUCKET under this prefix, like desktop/, instead of the folder. Needs S3_BUCKET. Empty uses the folder
Setting Default What it does
SIGN_IN_LINKS_PER_IP 30 How many sign-in links one network address can ask for, and open, in 10 minutes, and the same again for sign-up and password reset links. Each email address is also limited to 5 a minute and 10 an hour
UPLOAD_MB_PER_DAY 5000 How many megabytes one person can upload in 24 hours. Files brought in by a Notion import don’t count. Each file can be up to 50 MB
HEAVY_QUERIES_PER_ORG 2 How many database views one organization can load at once on each copy of Lyra: row lists, group counts and charts, which can each hold a database connection for up to 15 seconds. Others wait their turn, so one organization never takes every connection. Opening a single row doesn’t wait
HEAVY_QUERY_WAIT_SECONDS 10 How long a database view waits for its turn before Lyra answers that it’s busy and to try again in a few seconds. The web app tries again by itself
MAX_DATABASES_PER_ORG 500 How many databases one organization can have, counting those in the trash. Creating, copying or importing one more is refused with a message saying so. Each database is a table in Postgres, so this keeps one organization from filling the server with tables
Setting Default What it does
HELP_DOCS_URL https://lyra-docs.com/docs Where the Help menu’s documentation link goes. Point it at your own pages, or set it empty to hide it
HELP_CHANGELOG_URL https://lyra-docs.com/changelog Where the Help menu’s link to what’s new goes. Empty hides it
SUPPORT_EMAIL Empty The address the Help menu gives for support. Empty hides Contact support. Set it, TERMS_URL and PRIVACY_URL to your own support address, terms of service and privacy policy, since Lyra cloud’s documents don’t cover your server
TERMS_URL, PRIVACY_URL Empty Your terms of service and privacy policy, linked under the sign-in buttons and in the account menu. Empty hides each link
ABUSE_REPORT_EMAIL Empty Where reports from the Report abuse link on published pages are emailed. Empty hides the link. Day to day has the commands to act on a report

Monitoring explains what each service gets.

Setting Default What it does
LOG_LEVEL info How much Lyra logs: debug, info, warn or error
DEPLOY_ENV production This server’s name in Sentry and Datadog. Empty uses production
SENTRY_DSN Empty Where server errors, traces and logs are reported. Empty turns Sentry off
SENTRY_WEB_DSN Empty Where web app errors, and problem reports from people and agents, are reported. Empty uses SENTRY_DSN
SENTRY_TRACES_SAMPLE_RATE 1 How many requests and jobs Sentry traces, from 0 to 1. 1 traces every one. Empty uses 1
DATADOG_ENABLED false true sends traces, metrics and runtime stats to the Datadog agent. Also add datadog to COMPOSE_PROFILES
DD_API_KEY Empty The Datadog agent’s API key
DD_SITE datadoghq.com Your Datadog site, like datadoghq.eu

These are for Lyra cloud, which sells paid plans through Paddle. Leave them empty on your own server.

Setting Default What it does
PADDLE_ENVIRONMENT, PADDLE_API_KEY, PADDLE_CLIENT_TOKEN, PADDLE_WEBHOOK_SECRET, PADDLE_PRICE_TEAM_MONTHLY, PADDLE_PRICE_TEAM_YEARLY, PADDLE_PRICE_EXTRA_MEMBER_MONTHLY, PADDLE_PRICE_EXTRA_MEMBER_YEARLY Empty Paid plans through Paddle Billing. Empty leaves out the Billing screen and every plan limit, so organizations can have any number of members and files. Set all of them or none

Lyra’s Docker image and deploy/compose.yml set these. You don’t need to change them.

Setting Value What it does
SERVER_PORT 8080 The port the server listens on inside its container
WEB_DIST_DIR /app/apps/web/dist The built web app the server sends to browsers. Empty serves only the API, for when a CDN serves the web app
APP_VERSION The commit The version shown in Sentry and Datadog. ./start.sh sets it from the commit you’re on
NODE_ENV production Turns on the checks a real server needs, such as an https address and a way to sign in
NOTION_API_URL https://api.notion.com/v1 Where Notion imports read from. Only tests change it
SHOW_SIGN_IN_LINKS false Shows sign-in links on screen instead of emailing them. Only for developing Lyra on your own computer: a server refuses to start with it on

Older versions used ALLOWED_EMAIL_DOMAIN, WORKSPACE_NAME, GUEST_URL and SHARE_URL_STATIC_ONLY. Lyra ignores them and logs a warning naming any that are still set, so remove them. Organizations took their place: in place of ALLOWED_EMAIL_DOMAIN, add your email domain to your organization under Settings → Email domains, or with orgs.ts add-domain (Day to day).