# Configuration

Source: https://dropshelf.ai/docs/reference/configuration

Every key of the dropshelf server's configuration file, with its environment variable, type and default.

The dropshelf server reads one YAML file and the environment. This page lists every key it reads.

## How the server reads its configuration [#how-the-server-reads-its-configuration]

- **The file.** Its path comes from `--config` or `DROPSHELF_CONFIG`. There is no default path: with
  neither set, the server reads no file.
- **Precedence.** An environment variable wins over the file, and the file wins over the defaults.
- **Environment variables.** Every key has one, except the keys inside a list of objects. Join the
  key's path with underscores, split camelCase words, upper-case it and prefix `DROPSHELF_`:
  `server.baseDomain` is `DROPSHELF_SERVER_BASE_DOMAIN`. A list is comma separated.
- **References in the file.** A value may name a variable as `${VAR}` or `${VAR:-default}`. The
  server expands them before it parses the YAML, comments included, so an unset variable without a
  default stops the server even inside a comment.
- **Sizes** are binary: `100MB` is 100 MiB. **Durations** use Go's syntax, such as `90s` or `15m`,
  plus `d` for 24 hours.
- **Validation** runs at startup and reports every problem at once.

## Secrets [#secrets]

Keys marked **secret** never go in the file. Set them in the environment, from a Kubernetes Secret
on Helm installs, and the server hides them in its logs. Write the OIDC client secret as
`DROPSHELF_AUTH_OIDC_CLIENT_SECRET`, not as a `${...}` reference: a secret can contain characters
YAML reads as syntax, and a variable never passes through the YAML parser.

## server

The listeners, the public addresses and the server's timeouts.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `server.baseDomain` | string | **required** | The hostname drops are served under, with no scheme, port or path: drops live at `<name>.<baseDomain>`. `publicBaseURL` must use the same host. Variable: `DROPSHELF_SERVER_BASE_DOMAIN`. |
| `server.publicBaseURL` | string | **required** | The http or https URL of the dashboard and API, with no path, query or fragment. Its host must equal `baseDomain`, and it must be https wherever TLS is terminated in front of the server. Variable: `DROPSHELF_SERVER_PUBLIC_BASE_URL`. |
| `server.listen` | string | `:8080` | The address the main listener binds, which serves the dashboard, the API and every drop host. Variable: `DROPSHELF_SERVER_LISTEN`. |
| `server.metricsListen` | string | `:9090` | The address `/metrics` is served on, which is never the main listener. It must not be empty. Variable: `DROPSHELF_SERVER_METRICS_LISTEN`. |
| `server.trustedProxies` | list of strings | empty | The CIDR ranges whose `X-Forwarded-For` header is honoured. Set it to the ingress controller's pod range, or the logs record the proxy's address instead of the client's. Variable: `DROPSHELF_SERVER_TRUSTED_PROXIES`. |
| `server.spoolDir` | string | `/tmp/dropshelf` | The directory deploys and asset uploads are written to before they reach storage. It is emptied at every startup, so it must not hold `storage.fs.root` or overlap `cache.dir`. Variable: `DROPSHELF_SERVER_SPOOL_DIR`. |
| `server.timeouts.readHeader` | duration | `10s` | How long a client may take to send a request's headers. It must be positive, because zero means no limit and leaves the listener open to slowloris attacks. Variable: `DROPSHELF_SERVER_TIMEOUTS_READ_HEADER`. |
| `server.timeouts.idle` | duration | `2m` | How long a kept-alive connection may sit idle between requests. It must be positive. Variable: `DROPSHELF_SERVER_TIMEOUTS_IDLE`. |
| `server.timeouts.upload` | duration | `15m` | How long the body of a zip or file upload, a database import or an MCP tool call may take to arrive. It must be positive when `platform.assets.enabled` is true. Variable: `DROPSHELF_SERVER_TIMEOUTS_UPLOAD`. |
| `server.timeouts.longPollMax` | duration | `1m` | The longest one request may wait on a deploy's status. A client that asks for longer gets this long and polls again. Variable: `DROPSHELF_SERVER_TIMEOUTS_LONG_POLL_MAX`. |
| `server.timeouts.default` | duration | `30s` | How long a request body may take to arrive on every route without a budget of its own, and how long the listeners drain on shutdown. Variable: `DROPSHELF_SERVER_TIMEOUTS_DEFAULT`. |
| `server.timeouts.shutdown` | duration | `50s` | How long in-flight deploys get to finish once the server is told to stop. It must be at least `server.timeouts.default`. Variable: `DROPSHELF_SERVER_TIMEOUTS_SHUTDOWN`. |

## database

The Postgres database that holds every record but the deployed files.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `database.driver` | string | `postgres` | The database driver. `postgres` is the only one. Variable: `DROPSHELF_DATABASE_DRIVER`. |
| `database.url` | string, **secret** | **required** | The Postgres connection URL, such as `postgres://user:pass@host/db?sslmode=require`; keyword DSNs are refused. It carries a password, so set it in the environment or a Secret, not the file. Variable: `DROPSHELF_DATABASE_URL`. |
| `database.autoMigrate` | boolean | `true` | Whether each replica applies schema migrations at startup. Set it to `false` to run `dropshelf-server migrate` as a job of its own instead. Variable: `DROPSHELF_DATABASE_AUTO_MIGRATE`. |

## storage

The object store that holds deployed files, uploaded assets and profile pictures.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `storage.driver` | string | `s3` | Which object store to use: `s3`, `fs`, `gcs` or `azure`. Only the chosen driver's block is read. Variable: `DROPSHELF_STORAGE_DRIVER`. |
| `storage.s3.bucket` | string | empty | The bucket objects are stored in. Credentials come from the AWS default chain: IRSA, instance credentials, or `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` in the environment. Variable: `DROPSHELF_STORAGE_S3_BUCKET`. |
| `storage.s3.region` | string | `eu-north-1` | The bucket's region. Variable: `DROPSHELF_STORAGE_S3_REGION`. |
| `storage.s3.endpoint` | string | empty | The URL of an S3-compatible store, such as MinIO. Leave it empty for Amazon S3. Variable: `DROPSHELF_STORAGE_S3_ENDPOINT`. |
| `storage.s3.prefix` | string | empty | A path inside the bucket that every object is stored under, so the bucket can hold other data too. Variable: `DROPSHELF_STORAGE_S3_PREFIX`. |
| `storage.s3.forcePathStyle` | boolean | `false` | Whether to name the bucket in the URL path rather than in the hostname. MinIO needs `true`. Variable: `DROPSHELF_STORAGE_S3_FORCE_PATH_STYLE`. |
| `storage.s3.checksums` | string | `auto` | When requests carry checksums: `auto`, `whenRequired` or `whenSupported`. `auto` is `whenSupported` on Amazon S3 and `whenRequired` when `endpoint` is set, which keeps older S3-compatible stores working. Variable: `DROPSHELF_STORAGE_S3_CHECKSUMS`. |
| `storage.fs.root` | string | `/data/blobs` | The directory objects are stored in. It must not be inside `server.spoolDir` or overlap `cache.dir`, because both are emptied at every startup. Variable: `DROPSHELF_STORAGE_FS_ROOT`. |
| `storage.gcs.bucket` | string | empty | The bucket objects are stored in. Variable: `DROPSHELF_STORAGE_GCS_BUCKET`. |
| `storage.gcs.prefix` | string | empty | A path inside the bucket that every object is stored under, so the bucket can hold other data too. Variable: `DROPSHELF_STORAGE_GCS_PREFIX`. |
| `storage.gcs.endpoint` | string | empty | The URL of a storage emulator, such as fake-gcs-server. Setting it turns authentication off, so leave it empty for Google Cloud Storage itself. Variable: `DROPSHELF_STORAGE_GCS_ENDPOINT`. |
| `storage.azure.account` | string | empty | The storage account name. It is required unless `connectionString` or `endpoint` is set, since either one names the account. Variable: `DROPSHELF_STORAGE_AZURE_ACCOUNT`. |
| `storage.azure.container` | string | empty | The blob container objects are stored in. Variable: `DROPSHELF_STORAGE_AZURE_CONTAINER`. |
| `storage.azure.prefix` | string | empty | A path inside the container that every object is stored under, so the container can hold other data too. Variable: `DROPSHELF_STORAGE_AZURE_PREFIX`. |
| `storage.azure.endpoint` | string | empty | The full https service URL, which names the account, for a sovereign cloud. Variable: `DROPSHELF_STORAGE_AZURE_ENDPOINT`. |
| `storage.azure.connectionString` | string, **secret** | empty | A connection string, for Azurite or a store reached without Entra ID; it replaces the default credentials. It is a secret, so set it in the environment or a Secret, not the file. Variable: `DROPSHELF_STORAGE_AZURE_CONNECTION_STRING`. |

## auth

How people sign in, who is an admin, and how sessions and agent sign-ins work.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `auth.provider` | string | `oidc` | How people sign in: `oidc` through an identity provider, or `none`, where every request acts as one local admin and every drop is open to anyone who can reach the server. Variable: `DROPSHELF_AUTH_PROVIDER`. |
| `auth.oidc.issuer` | string | **required** | The identity provider's issuer URL, whose `/.well-known/openid-configuration` document describes it. Discovery runs at startup, and a failure stops the server. Variable: `DROPSHELF_AUTH_OIDC_ISSUER`. |
| `auth.oidc.clientId` | string | **required** | The client ID registered with the identity provider, whose redirect URI is `<publicBaseURL>/auth/callback`. Variable: `DROPSHELF_AUTH_OIDC_CLIENT_ID`. |
| `auth.oidc.clientSecret` | string, **secret** | **required** | The client secret registered with the identity provider. Set it in the environment or a Secret, not the file. Variable: `DROPSHELF_AUTH_OIDC_CLIENT_SECRET`. |
| `auth.oidc.scopes` | list of strings | `openid, profile, email` | The scopes requested at sign-in. Keep `email`, because dropshelf identifies people by their address. Variable: `DROPSHELF_AUTH_OIDC_SCOPES`. |
| `auth.oidc.allowedEmailDomains` | list of strings | empty | The email domains that may sign in, checked against the verified address. An empty list allows any address. Variable: `DROPSHELF_AUTH_OIDC_ALLOWED_EMAIL_DOMAINS`. |
| `auth.oidc.requireVerifiedEmail` | boolean | `true` | Must stay `true`: a sign-in whose address is unverified is always refused, and `false` stops the server at startup. Variable: `DROPSHELF_AUTH_OIDC_REQUIRE_VERIFIED_EMAIL`. |
| `auth.oidc.assumeEmailVerified` | boolean | `false` | Counts an ID token with no `email_verified` claim as verified, for a directory that controls every address it admits. A token whose claim is `false` is still refused. Variable: `DROPSHELF_AUTH_OIDC_ASSUME_EMAIL_VERIFIED`. |
| `auth.admins.emails` | list of strings | empty | The addresses of people who are admins, matched without regard to case. Variable: `DROPSHELF_AUTH_ADMINS_EMAILS`. |
| `auth.admins.claim.name` | string | empty | The name of the ID token claim to read, exactly as the identity provider emits it. The claim may be a string or a list of strings. Variable: `DROPSHELF_AUTH_ADMINS_CLAIM_NAME`. |
| `auth.admins.claim.values` | list of strings | empty | The claim values that make a person an admin. Any one of them is enough. Variable: `DROPSHELF_AUTH_ADMINS_CLAIM_VALUES`. |
| `auth.session.secrets` | list of strings, **secret** | **required** | The keys that encrypt session cookies and OAuth codes, each at least 32 bytes. The first signs and every one verifies, so rotation puts a new key first; set them in the environment or a Secret, not the file. Variable: `DROPSHELF_AUTH_SESSION_SECRETS`. |
| `auth.session.ttl` | duration | `1d` | How long a sign-in to the dashboard and drop hosts lasts. It must be positive, and the cookie is renewed once half of it has passed. Variable: `DROPSHELF_AUTH_SESSION_TTL`. |
| `auth.oauth.enabled` | boolean | `true` | Whether MCP clients can sign in with OAuth. It is ignored when `auth.provider` is `none`. Variable: `DROPSHELF_AUTH_OAUTH_ENABLED`. |
| `auth.oauth.accessTokenTTL` | duration | `1h` | How long an access token issued through OAuth lasts before its app refreshes it, from `5m` to `24h`. Variable: `DROPSHELF_AUTH_OAUTH_ACCESS_TOKEN_TTL`. |
| `auth.oauth.idleTTL` | duration | `30d` | How long a sign-in lasts without its app refreshing it. It may not exceed `tokens.maxTTL`, which also ends every sign-in however often it refreshes. Variable: `DROPSHELF_AUTH_OAUTH_IDLE_TTL`. |
| `auth.oauth.clients` | list of objects | `null, null` | The MCP clients allowed to sign in, each named by `id` or `idPrefix`. A list here replaces the default rather than adding to it, and the `dropshelf` CLI is always allowed. Set it in the file. Variable: `DROPSHELF_AUTH_OAUTH_CLIENTS`. |
| `auth.oauth.clients[].id` | string | empty | The https URL of one client's metadata document. Set either `id` or `idPrefix`, not both. Set in the file only. |
| `auth.oauth.clients[].idPrefix` | string | empty | An https URL prefix ending in `/`: every client whose metadata document is under it may sign in. Set in the file only. |
| `auth.oauth.clients[].name` | string | empty | The client's name, which pins an `id` entry so its metadata document is never fetched. Set it together with `redirectURIs`, for an instance with no way out to the internet. Set in the file only. |
| `auth.oauth.clients[].redirectURIs` | list of strings | empty | The redirect URIs of a pinned client: `http` to `localhost`, `127.0.0.1` or `[::1]` on any port, or `https`. Set them together with `name`. Set in the file only. |

## deploy

The size limits on one deploy, and how many earlier versions and drafts each drop keeps.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `deploy.maxZipBytes` | size | `100MB` | The largest zip a deploy may upload. Variable: `DROPSHELF_DEPLOY_MAX_ZIP_BYTES`. |
| `deploy.maxFiles` | integer | `5000` | The most files one deploy may contain. Variable: `DROPSHELF_DEPLOY_MAX_FILES`. |
| `deploy.maxFileBytes` | size | `25MB` | The largest one file in a deploy may be, uncompressed. Variable: `DROPSHELF_DEPLOY_MAX_FILE_BYTES`. |
| `deploy.maxTotalBytes` | size | `500MB` | The largest all the files in a deploy may be together, uncompressed. Variable: `DROPSHELF_DEPLOY_MAX_TOTAL_BYTES`. |
| `deploy.uploadConcurrency` | integer | `16` | How many files one deploy writes to storage at once. Variable: `DROPSHELF_DEPLOY_UPLOAD_CONCURRENCY`. |
| `deploy.maxConcurrentDeploys` | integer | `4` | How many deploys one replica runs at once. Beyond it a deploy is refused with 503 and a `Retry-After` header, and the client retries. Variable: `DROPSHELF_DEPLOY_MAX_CONCURRENT_DEPLOYS`. |
| `deploy.leaseTTL` | duration | `2m` | How long a running deploy's lease lasts without renewal. A replica that dies mid-deploy blocks new deploys to that drop for about this long. Variable: `DROPSHELF_DEPLOY_LEASE_TTL`. |
| `deploy.supersededGracePeriod` | duration | `1m` | How long a version beyond the kept counts stays in storage after it stops being live or finishes uploading, before its files are purged. Variable: `DROPSHELF_DEPLOY_SUPERSEDED_GRACE_PERIOD`. |
| `deploy.keepHistory` | integer | `5` | How many versions that were once live each drop keeps besides the live one, as rollback targets. `0` keeps none. Variable: `DROPSHELF_DEPLOY_KEEP_HISTORY`. |
| `deploy.keepDrafts` | integer | `5` | How many drafts, versions that were never live, each drop keeps, counted apart from `keepHistory`. `0` purges a draft once `supersededGracePeriod` has passed, which turns drafts off. Variable: `DROPSHELF_DEPLOY_KEEP_DRAFTS`. |

## limits

What each member may own. Admins are exempt.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `limits.maxDropsPerUser` | integer | `100` | The most live drops one member may own. `0` means no limit. Variable: `DROPSHELF_LIMITS_MAX_DROPS_PER_USER`. |
| `limits.maxLiveBytesPerUser` | size | `0` | The most bytes one member's live versions may hold across their drops, uploads in progress included; kept versions and drafts do not count. `0` means no limit. Variable: `DROPSHELF_LIMITS_MAX_LIVE_BYTES_PER_USER`. |

## tokens

The lifetimes of personal access tokens.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `tokens.defaultTTL` | duration | `90d` | How long a personal access token lasts when its request names no lifetime. It must be positive and at most `tokens.maxTTL`. Variable: `DROPSHELF_TOKENS_DEFAULT_TTL`. |
| `tokens.maxTTL` | duration | `365d` | The longest a personal access token or an OAuth sign-in may last. A request for longer is shortened to this, not refused. Variable: `DROPSHELF_TOKENS_MAX_TTL`. |

## retention

How long a new drop lives and which lifetimes members may choose.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `retention.default` | duration | `30d` | How long a new drop lives before it expires, in whole days. It may not exceed `retention.maxCustom`. Variable: `DROPSHELF_RETENTION_DEFAULT`. |
| `retention.presets` | list of durations | `1d, 7d, 30d` | The lifetimes the dashboard offers as choices, in whole days, each at most `retention.maxCustom`. Variable: `DROPSHELF_RETENTION_PRESETS`. |
| `retention.maxCustom` | duration | `365d` | The longest lifetime a member may choose, in whole days of at least `1d`. Variable: `DROPSHELF_RETENTION_MAX_CUSTOM`. |
| `retention.allowForever` | boolean | `true` | Whether a member may keep a drop Forever, so it never expires. Variable: `DROPSHELF_RETENTION_ALLOW_FOREVER`. |

## slugs

Names no drop may take.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `slugs.reserved` | list of strings | `www, api, admin, mail, static, assets, docs, status, auth, login, logout, signin, sso, oauth, account, accounts, secure, security, password, mcp, cli, dropshelf, help, support, it, hr` | Names no drop may take. A list here replaces the default rather than adding to it. Variable: `DROPSHELF_SLUGS_RESERVED`. |

## social

The limit on comments.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `social.maxCommentBytes` | integer | `4096` | The largest a comment may be, in bytes rather than characters, after surrounding space is trimmed. It must be positive. Variable: `DROPSHELF_SOCIAL_MAX_COMMENT_BYTES`. |

## visibility

Which drop visibilities the instance offers.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `visibility.allowPrivate` | boolean | `false` | Whether a drop may be made private. Turn it on only once every replica runs a release that knows private drops, because an older replica would open them to the drop's whole list. Variable: `DROPSHELF_VISIBILITY_ALLOW_PRIVATE`. |

## profiles

The limits on what a member puts on their profile.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `profiles.maxAvatarBytes` | size | `2MB` | The largest profile picture a member may upload. It must be positive. Variable: `DROPSHELF_PROFILES_MAX_AVATAR_BYTES`. |
| `profiles.maxBioBytes` | integer | `1024` | The largest a member's bio may be, in bytes rather than characters, after surrounding space is trimmed. It must be positive. Variable: `DROPSHELF_PROFILES_MAX_BIO_BYTES`. |

## platform

The APIs a drop's own pages call: the drop database and uploaded assets. Each is off until switched on.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `platform.db.enabled` | boolean | `false` | Whether every drop host serves `/_dropshelf/db/{collection}` and its change stream. While it is off those routes answer 404. The data lives in the instance's Postgres. Variable: `DROPSHELF_PLATFORM_DB_ENABLED`. |
| `platform.db.maxCollectionsPerDrop` | integer | `50` | The most collections one drop may have. Variable: `DROPSHELF_PLATFORM_DB_MAX_COLLECTIONS_PER_DROP`. |
| `platform.db.maxDocsPerDrop` | integer | `20000` | The most documents one drop may hold across its collections. Variable: `DROPSHELF_PLATFORM_DB_MAX_DOCS_PER_DROP`. |
| `platform.db.maxDocsPerMemberPerDrop` | integer | `5000` | The most documents one member may own in one drop. It may not exceed `platform.db.maxDocsPerDrop`. Variable: `DROPSHELF_PLATFORM_DB_MAX_DOCS_PER_MEMBER_PER_DROP`. |
| `platform.db.maxDocBytes` | size | `64KB` | The largest one document may be, at most `1MB`. Variable: `DROPSHELF_PLATFORM_DB_MAX_DOC_BYTES`. |
| `platform.db.maxBytesPerDrop` | size | `64MB` | The most bytes of documents one drop may hold. Variable: `DROPSHELF_PLATFORM_DB_MAX_BYTES_PER_DROP`. |
| `platform.db.maxImportBytes` | size | `16MB` | The largest body one import through the API may send. Variable: `DROPSHELF_PLATFORM_DB_MAX_IMPORT_BYTES`. |
| `platform.db.writesPerMinutePerMember` | integer | `300` | How many document writes one member may make per minute. Variable: `DROPSHELF_PLATFORM_DB_WRITES_PER_MINUTE_PER_MEMBER`. |
| `platform.db.maxSubscribersPerDrop` | integer | `500` | The most change streams one drop may have open on one replica. Variable: `DROPSHELF_PLATFORM_DB_MAX_SUBSCRIBERS_PER_DROP`. |
| `platform.db.maxSubscribersPerMember` | integer | `20` | The most change streams one member may have open in one drop on one replica. Variable: `DROPSHELF_PLATFORM_DB_MAX_SUBSCRIBERS_PER_MEMBER`. |
| `platform.db.maxSubscribers` | integer | `5000` | The most change streams one replica holds open in all. Variable: `DROPSHELF_PLATFORM_DB_MAX_SUBSCRIBERS`. |
| `platform.db.heartbeat` | duration | `25s` | How often an idle change stream sends a keep-alive, so proxies do not close it. It must be between `5s` and `5m`. Variable: `DROPSHELF_PLATFORM_DB_HEARTBEAT`. |
| `platform.db.replayBufferBytes` | size | `32MB` | The memory one replica keeps of recent changes, so a stream that reconnects can catch up. Variable: `DROPSHELF_PLATFORM_DB_REPLAY_BUFFER_BYTES`. |
| `platform.db.subscriberQueue` | integer | `256` | How many changes may wait for one slow stream before it is closed. It must be at least `16`, and times `platform.db.maxDocBytes` it may not exceed `64MB`. Variable: `DROPSHELF_PLATFORM_DB_SUBSCRIBER_QUEUE`. |
| `platform.assets.enabled` | boolean | `false` | Whether every drop host serves `/_dropshelf/assets`. While it is off those routes answer 404. Variable: `DROPSHELF_PLATFORM_ASSETS_ENABLED`. |
| `platform.assets.maxFileBytes` | size | `25MB` | The largest one asset may be. It may not exceed `platform.assets.maxBytesPerDrop`, and a proxy in front must accept request bodies this large. Variable: `DROPSHELF_PLATFORM_ASSETS_MAX_FILE_BYTES`. |
| `platform.assets.maxBytesPerDrop` | size | `500MB` | The most bytes of assets one drop may hold. Variable: `DROPSHELF_PLATFORM_ASSETS_MAX_BYTES_PER_DROP`. |
| `platform.assets.writesPerMinutePerMember` | integer | `30` | How many asset uploads and deletes, counted together, one member may make per minute. Variable: `DROPSHELF_PLATFORM_ASSETS_WRITES_PER_MINUTE_PER_MEMBER`. |

## connectors

Connectors, which let a drop read company data through a source an admin connects. Off until switched on.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `connectors.enabled` | boolean | `false` | Whether drops may run queries against sources an admin connects. While it is off a deploy with a queries file is refused and the query routes answer 404. Variable: `DROPSHELF_CONNECTORS_ENABLED`. |
| `connectors.secrets` | list of strings, **secret** | empty | The keys that seal the sources' credentials in the database, each at least 32 bytes; at least one is required when connectors are on. The first seals and every one opens; set them in the environment or a Secret, not the file. Variable: `DROPSHELF_CONNECTORS_SECRETS`. |
| `connectors.cacheBytes` | size | `64MB` | The memory each replica uses to cache query answers. Variable: `DROPSHELF_CONNECTORS_CACHE_BYTES`. |
| `connectors.runsPerMinutePerDrop` | integer | `120` | How many queries one drop may run against its sources per minute on one replica. Answers served from the cache do not count. Variable: `DROPSHELF_CONNECTORS_RUNS_PER_MINUTE_PER_DROP`. |
| `connectors.defaults.cache` | duration | `15m` | How long a query's answer is cached. It must be positive and at least `minCache`. Variable: `DROPSHELF_CONNECTORS_DEFAULTS_CACHE`. |
| `connectors.defaults.minCache` | duration | `1m` | The shortest cache time a drop's query may ask for. It must be positive and may not exceed `cache`. Variable: `DROPSHELF_CONNECTORS_DEFAULTS_MIN_CACHE`. |
| `connectors.defaults.timeout` | duration | `30s` | How long one query may run, at most `5m`. Variable: `DROPSHELF_CONNECTORS_DEFAULTS_TIMEOUT`. |
| `connectors.defaults.maxRows` | integer | `10000` | The most rows one query may return, at most 100,000. Variable: `DROPSHELF_CONNECTORS_DEFAULTS_MAX_ROWS`. |
| `connectors.defaults.maxConcurrent` | integer | `4` | How many connections a source may open per replica, at most 32. They close after ten idle minutes. Variable: `DROPSHELF_CONNECTORS_DEFAULTS_MAX_CONCURRENT`. |
| `connectors.defaults.maxBytes` | size | `5MB` | The largest answer one query may return, at most `50MB`. Variable: `DROPSHELF_CONNECTORS_DEFAULTS_MAX_BYTES`. |
| `connectors.mcp.allowHTTP` | boolean | `false` | Whether an admin may connect an MCP server at an `http://` address. Off, a source's address must be `https://`. Turn it on only for servers inside your own network that are served without TLS: members' tokens are sent to the address as they are. Variable: `DROPSHELF_CONNECTORS_MCP_ALLOW_HTTP`. |

## cache

The drop host's object cache on disk and its manifest cache in memory.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `cache.dir` | string | `/var/cache/dropshelf` | The directory the object cache keeps its files in, on a writable volume of its own. It is emptied at every startup and may not overlap `server.spoolDir` or `storage.fs.root`. Variable: `DROPSHELF_CACHE_DIR`. |
| `cache.maxBytes` | size | `1GB` | The most disk the object cache may use. Size it below the volume behind `cache.dir`. Variable: `DROPSHELF_CACHE_MAX_BYTES`. |
| `cache.maxObjectBytes` | size | `64MB` | The largest object the cache keeps; a larger one streams from storage on every request. It may not exceed `cache.maxBytes`. Variable: `DROPSHELF_CACHE_MAX_OBJECT_BYTES`. |
| `cache.manifestMaxBytes` | size | `40MB` | The memory the manifest cache may use, measured as the manifests' JSON. The parsed manifests take up to 1.6 times that, so allow for it in the container's memory limit. Variable: `DROPSHELF_CACHE_MANIFEST_MAX_BYTES`. |

## reaper

The background job that expires drops and purges what they leave behind.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `reaper.interval` | duration | `1m` | How often the reaper runs: it expires drops whose retention has passed, purges versions beyond the kept counts and fails deploys whose replica died. Variable: `DROPSHELF_REAPER_INTERVAL`. |

## log

The server's log output.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `log.level` | string | `info` | The lowest level logged: `debug`, `info`, `warn` or `error`. Every change writes an event record at `info`, so `warn` or `error` turns that history off. Variable: `DROPSHELF_LOG_LEVEL`. |
| `log.format` | string | `json` | The log line format: `json` or `text`. Variable: `DROPSHELF_LOG_FORMAT`. |
