Environment Variables

This page lists the NocoDB environment variables by area: database, storage, authentication, cache, rate limits and more.

For a production deployment, set all environment variables that show "Mandatory". These variables affect performance, security and core functions.

Backward compatibility

NocoDB is fully compatible with legacy environment variable names. If you use an old variable name, it continues to work. We recommend the new names, because they are clearer and more consistent. When a variable has more than one name, NocoDB checks the names in this order:

  1. New recommended name (for example, NC_RATE_LIMIT_DATA_API_DURATION)
  2. Legacy name (for example, NC_DATA_API_TTL)
  3. Default value

You can change to the new names step by step. Existing deployments continue to work.

Database

VariableMandatoryDescriptionIf Not Set
NC_DBYesThe primary database. NocoDB stores all metadata and data in it. Example format: pg://host.docker.internal:5432?u=username&p=password&d=database_name.If NC_DB is not set, NocoDB creates a local SQLite database in the root folder.
NC_DB_JSONNoSets the database connection with a valid knex connection JSON string instead of NC_DB.
NC_DB_JSON_FILENoThe path to a knex connection JSON file that sets the database connection. Use it instead of NC_DB.
DATABASE_URLNoA JDBC URL string for the database connection. Use it instead of NC_DB.
DATABASE_URL_FILENoThe path to a file that contains a JDBC URL for the database connection. Use it instead of NC_DB.
NC_CONNECTION_ENCRYPT_KEYNoThe key used to encrypt the credentials of external databases.
Warning: Do not change this variable directly. A change can break the application. To change it, use the CLI as the NocoDB Secret CLI documentation shows.
NocoDB keeps connection credentials as plain text in the database.
NC_DB_POOL_MAXNoThe maximum number of connections in the database connection pool. This is the number of database connections that NocoDB can keep open at the same time.Defaults to 10.

Authentication

VariableMandatoryDescriptionIf Not Set
NC_AUTH_JWT_SECRETYesThe JWT secret that NocoDB uses to make authentication tokens.NocoDB makes a random secret automatically.
NC_JWT_EXPIRES_INNoThe expiration time for JWT tokens.Defaults to 10h.
NC_GOOGLE_CLIENT_IDNoThe Google client ID. Necessary for Google authentication.
NC_GOOGLE_CLIENT_SECRETNoThe Google client secret. Necessary for Google authentication.
NC_ADMIN_EMAILNoThe super admin email address. Use it to recover your username and password. See update requirements.When you open the UI for the first time, NocoDB asks for an email and a password.
NC_ADMIN_PASSWORDNoThe super admin password. It must have at least 8 characters, with one uppercase letter, one number and one special character from $&+,:;=?@#'.^*()%!_-\". Use it to recover your username and password. See update requirements.
NC_DISABLE_EMAIL_AUTHNoDisables email and password authentication. Use it when you set the Google authentication variables.
NC_REFRESH_TOKEN_EXP_IN_DAYSNoThe expiration time for refresh tokens, in days. It must be a positive number. (On-premise only)Defaults to 30 days.
NC_SSONoEnables SSO. Set to oidc to activate OpenID Connect or saml to activate SAML.SSO disabled.
NC_OIDC_PROVIDER_NAMENoThe name that the login page shows for the OIDC provider.Defaults to OpenID Connect.
NC_SSO_SAML_PROVIDER_NAMENoThe name that the login page shows for the SAML provider.Defaults to SAML.

Updating super admin credentials

To update NC_ADMIN_EMAIL or NC_ADMIN_PASSWORD, set both variables together.

If you set NC_ADMIN_EMAIL and NC_ADMIN_PASSWORD is empty or missing, NocoDB stops during startup. It shows the error Missing admin password. To fix this, do one of these:

  • Set the password.
  • Unset NC_ADMIN_EMAIL. Then create the super admin through the first-signup prompt.

Storage

VariableMandatoryDescriptionIf Not SetLegacy Names (Still Supported)
NC_S3_BUCKET_NAMENoThe name of the AWS S3 bucket for the S3 storage plugin.-
NC_S3_REGIONNoThe AWS S3 region of the S3 storage plugin bucket. If you set NC_S3_ENDPOINT, it takes precedence, because the endpoint URL includes the region.-
NC_S3_ENDPOINTNoThe S3 endpoint for the S3 storage plugin.Defaults to s3.<region>.amazonaws.com-
NC_S3_ACCESS_KEYNoThe AWS access key ID for the S3 storage plugin. Necessary if you do not use role access.-
NC_S3_ACCESS_SECRETNoThe AWS access secret for the S3 storage plugin. Necessary if you do not use role access.-
NC_S3_FORCE_PATH_STYLENoForces path-style requests for the S3 storage plugin.-
NC_S3_ACLNoThe ACL for the objects in S3.-
NC_ATTACHMENT_FIELD_SIZENoThe maximum file size for attachments in bytes.Defaults to 20971520 (20 MiB).-
NC_FORM_FIELD_MAX_SIZENoThe maximum size in bytes of one form field during multipart uploads in shared form views. Increase it for large text or JSON fields. This prevents 'Field value too long' errors when people outside your organization submit the form.Defaults to 10485760 (10 MiB).NC_NON_ATTACHMENT_FIELD_SIZE
NC_MAX_ATTACHMENTS_ALLOWEDNoThe maximum number of attachments in one cell.Defaults to 10.-
NC_ATTACHMENT_RETENTION_DAYSNoThe number of days that NocoDB keeps an attachment in storage after you delete all references to it. Set 0 to keep it forever.Defaults to 10.-
NC_ATTACHMENT_ACCESS_CONTROL_ENABLEDNoEnables access control for attachments through pre-signed URLs. Set to true to enable. All other values mean false. ⚠ Note: When you enable it, existing links stop working.Defaults to false.NC_SECURE_ATTACHMENTS
NC_ATTACHMENT_EXPIRE_SECONDSNoThe time in seconds before pre-signed attachment URLs start to expire. The URLs expire 10 minutes after this time. Applies only if you enable NC_ATTACHMENT_ACCESS_CONTROL_ENABLED.Defaults to 7200 (2 hours).-
NC_THUMBNAIL_MAX_SIZENoThe maximum size in bytes of an image file that gets a thumbnail. Larger images get no thumbnail.Defaults to 3145728 (3 MiB).-
NC_THUMBNAIL_MAX_INPUT_PIXELSNoThe maximum image resolution for thumbnails, in pixels (width times height). NocoDB skips larger images, so that it does not run out of memory.Defaults to 24000000 (24 MP).-
NC_THUMBNAIL_MAX_INPUT_PIXELS_SHRINKABLENoThe upper limit in pixels for thumbnails. Above this limit, NocoDB makes no thumbnail, also for formats that support shrink-on-load decoding.Defaults to 100000000 (100 MP).-
NC_DATA_IMPORT_FILE_SIZENoThe maximum file size in bytes for the data import upload endpoint. NocoDB uses this endpoint when you import CSV, Excel or JSON files into a base.Defaults to 104857600 (100 MiB).-

Email notifications

  • NocoDB uses these SMTP variables to send email notifications to users, for example invites.
VariableMandatoryDescriptionIf Not Set
NC_SMTP_FROMYesThe sender email address for the SMTP plugin.
NC_SMTP_HOSTYesThe hostname of the email server for the SMTP plugin.
NC_SMTP_PORTYesThe network port of the email server for the SMTP plugin.
NC_SMTP_USERNAMEYesThe username for authentication with the SMTP plugin.
NC_SMTP_PASSWORDYesThe password for authentication with the SMTP plugin.
NC_SMTP_SECURENoEnables secure authentication for the SMTP plugin. Set to true to enable. All other values mean false.Defaults to false.
NC_SMTP_IGNORE_TLSNoIgnores TLS for the SMTP plugin. This disables STARTTLS, also when the SMTP server supports it. Set to true to ignore TLS. All other values mean false. This setting can decrease security. For more details, see Nodemailer's SMTP documentation.Defaults to false.
NC_SMTP_REJECT_UNAUTHORIZEDNoRejects connections to SMTP servers with invalid (self-signed) TLS certificates. Set to true to reject. All other values mean false. This setting gives more protection against man-in-the-middle attacks. For more details, see Nodemailer's SMTP documentation.Defaults to false.

Backend

VariableMandatoryDescriptionIf Not Set
PORTNoThe network port that NocoDB runs on.Defaults to 8080.
NODE_OPTIONSNoThe Node.js options for the instance.

Frontend

VariableMandatoryDescriptionIf Not SetLegacy Names (Still Supported)
NC_SITE_URLYes Required for outbound emails to work. Invitation and password-reset emails make their links from this URL. If you do not set it, these links point to the wrong host. NocoDB also uses it for the Swagger docs URL and other backend URLs. Set it to your public NocoDB URL, for example https://nocodb.example.com.The backend gets the URL from the incoming request. If the server is behind a proxy, the URLs can be incorrect.NC_PUBLIC_URL
NC_DASHBOARD_URLNoA custom dashboard URL path.Defaults to /dashboard.
NUXT_PUBLIC_NC_BACKEND_URLNoA custom backend URL.Defaults to http://localhost:8080.

Cache

VariableMandatoryDescriptionIf Not SetLegacy Names (Still Supported)
NC_CACHE_REDIS_URLYesThe Redis URL for the cache.
Example: redis://:authpassword@127.0.0.1:6380/4
Caching layer of backendNC_REDIS_URL
NC_JOBS_REDIS_URLNoA separate Redis URL for the job queue. Falls back to NC_REDIS_JOB_URL. Use it to keep the job queue workload apart from cache operations. (On-premise only)Required if using job queue features.NC_REDIS_JOB_URL
NC_RATE_LIMIT_REDIS_URLNoA separate Redis URL for rate limits. Falls back to NC_THROTTLER_REDIS. Use it to keep rate limit operations apart from the cache and jobs. (On-premise only)NocoDB keeps rate limits in memory.NC_THROTTLER_REDIS

Rate limiting

(On-premise only) NocoDB sets rate limits for each API type. Rate limits prevent abuse and keep usage fair. Each API type has three parameters:

ParameterWhat it sets
DURATIONThe time window, in milliseconds
MAX_REQUESTSThe maximum number of requests in that window
BLOCK_DURATIONHow long NocoDB blocks requests after they go above the limit, in milliseconds

REST API with auth token

Rate limits for authenticated API requests that use auth tokens.

VariableMandatoryDescriptionIf Not SetLegacy Names (Still Supported)
NC_RATE_LIMIT_DATA_API_DURATIONNoThe time window in milliseconds for data API rate limits.Defaults to 1000 (1s).NC_DATA_API_TTL
NC_RATE_LIMIT_DATA_API_MAX_REQUESTSNoThe maximum number of data API requests in one duration window.Defaults to 5.NC_DATA_COUNT
NC_RATE_LIMIT_DATA_API_BLOCK_DURATIONNoDuration in milliseconds to block requests after exceeding the limit.Defaults to 30000 (30s).NC_DATA_BLOCK_DURATION

REST API with auth token (metadata operations)

Rate limits for metadata operations (base, table and field management) that use auth tokens.

VariableMandatoryDescriptionIf Not SetLegacy Names (Still Supported)
NC_RATE_LIMIT_META_API_DURATIONNoThe time window in milliseconds for meta API rate limits.Defaults to 60000 (60s).NC_META_API_TTL
NC_RATE_LIMIT_META_API_MAX_REQUESTSNoThe maximum number of meta API requests in one duration window.Defaults to 60.NC_META_COUNT
NC_RATE_LIMIT_META_API_BLOCK_DURATIONNoDuration in milliseconds to block requests after exceeding the limit.Defaults to 30000 (30s).NC_META_BLOCK_DURATION

Web UI - data operations

Rate limits for data operations in the web interface (browser sessions).

VariableMandatoryDescriptionIf Not SetLegacy Names (Still Supported)
NC_RATE_LIMIT_DATA_GUI_DURATIONNoThe time window in milliseconds for web UI data operation rate limits.Defaults to 1000 (1s).NC_DATA_GUI_API_TTL
NC_RATE_LIMIT_DATA_GUI_MAX_REQUESTSNoThe maximum number of web UI data requests in one duration window.Defaults to 30000.NC_DATA_GUI_COUNT
NC_RATE_LIMIT_DATA_GUI_BLOCK_DURATIONNoDuration in milliseconds to block requests after exceeding the limit.Defaults to 0 (no block).NC_DATA_GUI_BLOCK_DURATION

Web UI - metadata operations

Rate limits for metadata operations (base, table and field management) in the web interface (browser sessions).

VariableMandatoryDescriptionIf Not SetLegacy Names (Still Supported)
NC_RATE_LIMIT_META_GUI_DURATIONNoThe time window in milliseconds for web UI metadata operation rate limits.Defaults to 1000 (1s).NC_META_GUI_API_TTL
NC_RATE_LIMIT_META_GUI_MAX_REQUESTSNoThe maximum number of web UI metadata requests in one duration window.Defaults to 1000.NC_META_GUI_COUNT
NC_RATE_LIMIT_META_GUI_BLOCK_DURATIONNoDuration in milliseconds to block requests after exceeding the limit.Defaults to 0 (no block).NC_META_GUI_BLOCK_DURATION

Shared views & forms (public access)

Rate limits for public shared views and forms. These need no authentication.

VariableMandatoryDescriptionIf Not SetLegacy Names (Still Supported)
NC_RATE_LIMIT_PUBLIC_API_DURATIONNoThe time window in milliseconds for public API rate limits.Defaults to 1000 (1s).NC_PUBLIC_API_TTL
NC_RATE_LIMIT_PUBLIC_API_MAX_REQUESTSNoThe maximum number of public API requests in one duration window.Defaults to 10.NC_PUBLIC_COUNT
NC_RATE_LIMIT_PUBLIC_API_BLOCK_DURATIONNoDuration in milliseconds to block requests after exceeding the limit.Defaults to 0 (no block).NC_PUBLIC_BLOCK_DURATION

Product configuration

VariableMandatoryDescriptionIf Not SetLegacy Names (Still Supported)
NC_DB_QUERY_LIMIT_DEFAULTNoThe default pagination limit for data tables.Defaults to 25. Maximum is 100DB_QUERY_LIMIT_DEFAULT
NC_DB_QUERY_LIMIT_GROUP_BY_GROUPNoThe number of groups on one page.Defaults to 10.DB_QUERY_LIMIT_GROUP_BY_GROUP
NC_DB_QUERY_LIMIT_GROUP_BY_RECORDNoThe number of records in one group.Defaults to 10.DB_QUERY_LIMIT_GROUP_BY_RECORD
NC_DB_QUERY_LIMIT_MAXNoThe maximum pagination limit.Defaults to 1000.DB_QUERY_LIMIT_MAX
NC_DB_QUERY_LIMIT_MINNoThe minimum pagination limit.Defaults to 10DB_QUERY_LIMIT_MIN
NC_CONNECT_TO_EXTERNAL_DB_DISABLEDNoStops users from creating bases on external databases.-
NC_INVITE_ONLY_SIGNUPNoDisables public signup. Users can sign up only through invitations. Since version 0.99.0, this setting is also in the super admin settings menu.-
NC_REQUEST_BODY_SIZENoThe maximum number of bytes in the request body, based on ExpressJS limits.Defaults to 1048576 (1 MB).-
NC_WEBHOOK_MAX_BODY_SIZENoThe maximum size in bytes of an outgoing webhook request or response body that NocoDB buffers. This limits memory use from large webhook payloads.Defaults to 10485760 (10 MB).-
NC_FORMULA_MAX_OUTPUT_LENGTHNoThe maximum number of characters in the string output of a formula field. NocoDB truncates longer output.Falls back to NC_MAX_TEXT_LENGTH (default 100000).-
NC_WEBHOOK_ALLOW_PRIVATE_NETWORKNoLets webhooks call private network addresses (localhost, RFC1918 ranges). Set to true to enable. All other values mean false. ⚠ Security risk.Defaults to false.NC_ALLOW_LOCAL_HOOKS
NC_ALLOW_LOCAL_EXTERNAL_DBSNoLets NocoDB connect to external databases on local network addresses. This can be a security risk. Set to true to enable. All other values mean false.Defaults to false.-
NC_ALLOW_LOCAL_DATA_IMPORTNoLets the Add from URL data import get files from local or private network addresses (localhost, RFC1918 ranges). Set to true to enable. All other values mean false. ⚠ Security risk.Defaults to false.-
NC_DATABASE_COLUMN_NAME_SANITIZE_ENABLEDNoSanitizes column names when you create them, to prevent SQL injection. Set to false to disable it.Defaults to true (enabled).NC_SANITIZE_COLUMN_NAME
NC_APP_DATA_DIRNoThe directory for metadata and app files. In Docker setups, this is /usr/app/data/, where you mount volumes.Defaults to the current working directory.NC_TOOL_DIR
NC_DISABLE_PG_DATA_REFLECTIONNoStops NocoDB from creating a schema for each base in Postgres. Click here for more detailDefaults to false.-
NC_MIGRATIONS_DISABLEDNoDisables NocoDB migrations.-
NC_DISABLE_AUDITNoDisables the audit log feature.Defaults to false.-
NC_DISABLE_TOURSNoDisables in-app product tours. Product tours are guided walkthroughs that highlight parts of the interface. They can start on their own, for example when a new user first opens their workspace. Set to true to disable.Defaults to false. Product tours are currently inactive by default.-
NC_WEBHOOK_LOG_LEVELNoSets the log level for webhook runs. Possible values: OFF, ERROR, ALL. For more details, refer to Webhooks.Defaults to OFF.NC_AUTOMATION_LOG_LEVEL
NC_IFRAME_ALLOWED_DOMAINSNoA comma-separated list of domains that you can embed in iframes. (On-premise only) Example: *.nocodb.com,*.mycompany.comNC_IFRAME_WHITELIST_DOMAINS
NC_API_BULK_OPERATION_MAX_RECORDSNoThe maximum number of records that one v3 API request can insert, update or delete. This prevents memory problems with large bulk operations. (On-premise only)Defaults to 10 for v3 APIs.NC_DATA_PAYLOAD_LIMIT
NC_WORKER_MODE_ENABLEDNoSet to true to make this instance a background job processor. The instance then only processes jobs. It does not serve HTTP requests. (On-premise only)Defaults to false.NC_WORKER_CONTAINER
NC_WORKER_CONCURRENCYNoThe number of jobs that each worker processes at the same time. (On-premise only)NocoDB default.-
NC_ALLOW_LEGACY_API_TOKENSNoLets you create legacy (not fine-grained) API tokens through the API again on a licensed instance. Set to true to enable. Legacy tokens never expire, and fine-grained scopes do not apply to them. ⚠ Security risk.Defaults to false. Licensed deployments block the creation of legacy tokens.-
NC_MCP_DATA_PAYLOAD_LIMITNoThe maximum number of records that the MCP record tools accept in one call. NC_API_BULK_OPERATION_MAX_RECORDS caps this value. This variable does not change the limit for v3 API requests.Defaults to 100.-
NC_MCP_BUDGET_BASES_PER_DAYNoThe maximum number of bases that one MCP connection can create in one day. Set -1 for no limit. Set 0 to block base creation over MCP. NocoDB counts each connection separately. The limit applies only when you configure a cache.Defaults to 25.-
Behavior change for URL-based data import. Previously, setting NC_ALLOW_LOCAL_HOOKS=true (now NC_WEBHOOK_ALLOW_PRIVATE_NETWORK=true) also disabled SSRF protection for the Add from URL data import. It no longer does. To let the URL-based data import reach local or private network hosts, you must now additionally set NC_ALLOW_LOCAL_DATA_IMPORT=true. Default deployments are unaffected by this change.

Postgres data reflection

The NocoDB UI mirrors your Postgres database schema, with the same tables and the same columns. To do this, NocoDB creates a schema for each base in Postgres. This feature is on by default if the user has the necessary permissions. To disable it, set the NC_DISABLE_PG_DATA_REFLECTION environment variable to true.

AI & script execution

Code execution sandbox

E2B gives the sandboxed cloud environments that NocoDB uses to run untrusted code: the Webhook Run Script action, the Workflow Run Script node, and the AI assistant's code-analysis tools.

VariableMandatoryDescriptionIf Not Set
NC_COMPUTE_E2B_API_KEYNoThe API key for the E2B service. Necessary for all code-execution features.Script execution and AI code-analysis features are off.
NC_COMPUTE_E2B_TEMPLATE_SCRIPTNoThe E2B sandbox template ID for webhook and workflow scripts.Defaults to NocoDB's script-execution template, yah8ggzfy44fpdop51ai.
NC_COMPUTE_E2B_TEMPLATE_CHATNoThe E2B sandbox template ID for the analysis sandbox of the AI assistant. The default NocoDB image includes a document toolchain (LaTeX, pandoc, LibreOffice, OCR).Defaults to NocoDB's chat-analyst template, hefmkx6afen2dhjf3i0u.
NC_CHAT_CODE_EXECUTION_TIMEOUT_MSNoThe maximum wall-clock time in milliseconds for one AI assistant code run. After this time, NocoDB stops the run.Defaults to 60000 (60s).
NC_CHAT_COMPUTE_TIMEOUT_MSNoThe idle lifetime in milliseconds of the AI assistant sandbox. Each chat turn resets it. It is only a safety limit.Defaults to 120000 (120s).
Renamed variables: old names no longer work. E2B_API_KEY, E2B_TEMPLATE_ID, and E2B_CHAT_TEMPLATE_ID were renamed to NC_COMPUTE_E2B_API_KEY, NC_COMPUTE_E2B_TEMPLATE_SCRIPT, and NC_COMPUTE_E2B_TEMPLATE_CHAT. Unlike the variables covered under Backward compatibility, the old names are no longer read at all. If your deployment still sets only the old names after upgrading, script execution and AI code-analysis features are silently disabled. Update the variable names when you upgrade. The template variables are now optional: each workload falls back to NocoDB's own template if unset.

Exa runs the web search and web page fetch tools of the AI assistant.

VariableMandatoryDescriptionIf Not Set
NC_WEB_EXA_API_KEYNoThe API key for the Exa service. It replaces the old EXA_API_KEY. NocoDB no longer reads EXA_API_KEY.AI web search and fetch tools are off.

Logging & monitoring

VariableMandatoryDescriptionIf Not Set
NC_SENTRY_DSNNoThe Data Source Name (DSN) for Sentry, for monitoring and error tracking.
NC_DISABLE_ERR_REPORTSNoDisables the default Sentry error reports.TRUE

Debugging only

VariableMandatoryDescriptionIf Not Set
DEBUGNoEnables levels of debug logs. Set to nc:* to enable all NocoDB debug logs. Set to nc:*,knex:* to also log database queries. Use only for debugging.Unset by default.
NC_ENABLE_ALL_API_ERROR_LOGGINGNoEnables more detailed API error logs. Use only for debugging.Defaults to false.
NC_DISABLE_CACHENoDisables the cache. NocoDB then gets metadata directly from the database, not from Redis or the cache. Use only for debugging.Defaults to false.

Telemetry

VariableMandatoryDescriptionIf Not Set
NC_DISABLE_TELENoDisables telemetry, so NocoDB sends no anonymous usage data. Keep telemetry on. It helps us understand how people use the product and how a breaking change can affect them.

Support chat

VariableMandatoryDescriptionIf Not Set
NC_DISABLE_SUPPORT_CHATNoDisables the support chat in the product. The support chat uses Chatwoot, an open source support system.FALSE

Litestream

NocoDB uses Litestream only when NC_DB is set to SQLite. Litestream backs up the SQLite database to S3.

VariableMandatoryDescriptionIf Not Set
LITESTREAM_S3_ENDPOINTNoThe endpoint URL of an S3-compatible object storage service. Litestream replicates the default NocoDB SQLite database to it. Example: s3.eu-central-1.amazonaws.com.Defaults to AWS S3.
LITESTREAM_S3_REGIONNoThe AWS region of the Litestream replication bucket. If you set LITESTREAM_S3_ENDPOINT, it takes precedence, because the endpoint URL includes the region.Defaults to the default region configured in AWS.
LITESTREAM_S3_BUCKETNoThe name of the object storage bucket for the Litestream replication.Litestream replication is disabled if this variable is not set.
LITESTREAM_S3_PATHNoThe directory path in the Litestream replication bucket.Defaults to nocodb.
LITESTREAM_S3_ACCESS_KEY_IDNoThe authentication key ID for the Litestream replication bucket.Litestream replication is disabled if this variable is not set.
LITESTREAM_S3_SECRET_ACCESS_KEYNoThe authentication secret for the Litestream replication bucket.Litestream replication is disabled if this variable is not set.
LITESTREAM_S3_SKIP_VERIFYNoDisables TLS verification for the Litestream replication storage service. Use it when you test with a local node, such as MinIO, that has self-signed certificates.Defaults to false.
LITESTREAM_RETENTIONNoHow long Litestream keeps snapshot and WAL files. After this period, Litestream creates a new snapshot and removes the old one. It also removes WAL files that are older than the oldest snapshot.Defaults to 1440h (60 days).
LITESTREAM_RETENTION_CHECK_INTERVALNoHow often Litestream checks if it must apply the retention period.Defaults to 72h (3 days).
LITESTREAM_SNAPSHOT_INTERVALNoHow often Litestream creates a new snapshot. More frequent snapshots make restores faster, because newer snapshots have fewer WAL frames to apply. The retention period also applies to these snapshots.Defaults to 24h (1 day).
LITESTREAM_SYNC_INTERVALNoHow often Litestream sends frames to the replica. More frequent syncs can increase object storage costs by a large amount.Defaults to 60s (1 minute).
LITESTREAM_AGE_PUBLIC_KEYNoage public key generated by age-keygen (age1...) or SSH public key (ssh-ed25519 AAAA..., ssh-rsa AAAA...) that Litestream uses to encrypt the replication. Refer to the relevant Litestream documentation for details.Litestream replication is unencrypted if this variable is not set.
LITESTREAM_AGE_SECRET_KEYNoage secret key (AGE-SECRET-KEY-1...) that Litestream uses to encrypt the replication. Refer to the relevant Litestream documentation for details.Litestream replication is unencrypted if this variable is not set.
AWS_ACCESS_KEY_IDNoDeprecated. Use LITESTREAM_S3_ACCESS_KEY_ID instead.
AWS_SECRET_ACCESS_KEYNoDeprecated. Use LITESTREAM_S3_SECRET_ACCESS_KEY instead.
AWS_BUCKETNoDeprecated. Use LITESTREAM_S3_BUCKET instead.
AWS_BUCKET_PATHNoDeprecated. Use LITESTREAM_S3_PATH instead.

Last updated on

Latest product updates?See Changelog
Stay in the loop? Follow us onLinkedInLinkedInYouTubeYouTubeXX