Configuration
[object Object]
Tessra reads its settings from appsettings.json in the image, then from environment variables, which win. In environment variables a double underscore separates levels: Tessra:Storage:Provider becomes Tessra__Storage__Provider. With Compose, put them in .env and reference it with env_file.
Tessra checks its configuration at startup and refuses to start with a list of what is wrong. Error messages name the setting, never its value.
Core
| Setting | Default | Meaning |
|---|---|---|
Tessra__BaseUrl | (required) | Public address, e.g. https://files.example.com. Used for every generated link and for the sign-in origin check. Never taken from the request's Host header. |
Tessra__DataDirectory | /data | Where the database, keys, local files and temporary files live. |
Tessra__MaxUploadBytes | 104857600 (100 MB) | Largest accepted upload. Enforced while streaming, even without a trustworthy Content-Length. |
Tessra__TrashRetentionDays | 30 | Days a deleted file stays in Trash before it is deleted for good. 0 turns Trash off, so deleting removes files immediately. Trashed files still use storage. |
Tessra__MinFreeDiskBytes | 536870912 (512 MB) | Uploads to local storage are refused when less than this would remain free. The readiness check fails when the disk is full. |
Tessra__ResumableUploads__ChunkBytes | 8388608 (8 MiB) | Largest piece of a resumable upload the web app sends in one request. Keep it under your reverse proxy's body limit. See Resumable uploads. |
Tessra__ResumableUploads__SessionLifetime | 1.00:00:00 | How long an unfinished resumable upload is kept after its last piece. Its bytes are held in /data/temp/uploads until then. |
First-run setup
Without either setting, Tessra generates a secret into /data/bootstrap-secret.
| Setting | Meaning |
|---|---|
Tessra__BootstrapSecret | Your own setup secret, at least 16 characters (openssl rand -base64 32). |
Tessra__BootstrapSecretFile | Path to a file holding it, e.g. a Docker secret at /run/secrets/tessra_bootstrap. |
Set at most one. Both are ignored once the administrator exists.
Single sign-on
Tessra__Oidc__* settings connect an OpenID Connect provider such as Pocket ID, Authentik, Authelia or Keycloak. They are listed with setup steps on Single sign-on.
Imports
Tessra__Imports__* settings choose which folders imports may read. They are listed on Importing.
Storage
| Setting | Default | Meaning |
|---|---|---|
Tessra__Storage__Provider | local | local (files under /data/blobs) or s3. |
Tessra__Storage__S3__ServiceUrl | Endpoint, e.g. https://<account_id>.r2.cloudflarestorage.com (Cloudflare R2), https://nyc3.digitaloceanspaces.com or https://s3.us-east-1.amazonaws.com. Must be https. | |
Tessra__Storage__S3__Region | us-east-1 | Signing region: auto for Cloudflare R2, the Spaces or AWS region otherwise. |
Tessra__Storage__S3__Bucket | Bucket name. The bucket must already exist and should not be public. | |
Tessra__Storage__S3__Prefix | Optional key prefix, for sharing a bucket. Lowercase letters, digits, ., _, - and /. | |
Tessra__Storage__S3__ForcePathStyle | true | Path-style addressing. Set false for DigitalOcean Spaces and AWS. |
Tessra__Storage__S3__AccessKey, SecretKey | Credentials. | |
Tessra__Storage__S3__AccessKeyFile, SecretKeyFile | Or paths to files holding them (Docker secrets). Set one of each pair. | |
Tessra__Storage__S3__ConditionalWrites | true | Uses If-None-Match so the service itself refuses overwrites. Set false for services that reject it (DigitalOcean Spaces). |
Tessra__Storage__S3__AllowInsecureHttp | false | Allows an http:// endpoint. For private development endpoints only. |
SeaweedFS runs the storage contract tests in CI, and a stricter fake that refuses what Cloudflare R2 refuses (streaming signatures, checksum trailers, unequal multipart parts) checks the request shapes. The DigitalOcean installer fills these in for R2, Spaces or AWS from the endpoint (see Files in a bucket). The full suite has not yet run against real R2, Spaces or AWS. Use Settings › Storage › Test storage to check your bucket, or run the contract tests against it (see the repository README).
Changing the provider does not move existing files: each file remembers the storage it was written to. To move an installation between local disk and S3, back it up and restore it with the new provider configured.
Cleanup
| Setting | Default | Meaning |
|---|---|---|
Tessra__Cleanup__Interval | 00:15:00 | How often interrupted uploads and failed deletes are cleaned up. 00:00:00 turns the background run off. |
Tessra__Cleanup__PendingUploadGrace | 1.00:00:00 (one day) | An upload unfinished after this long is treated as abandoned. Must exceed your slowest successful upload. |
Background jobs
Cleanup and other background work run as jobs in a queue stored in the database, so nothing extra needs to run alongside Tessra. Jobs that fail are retried with a growing delay, and ones that run out of attempts are listed under Settings > Operations, where an administrator can retry them.
| Setting | Default | Meaning |
|---|---|---|
Tessra__Jobs__Workers | 2 | How many jobs run at once. 0 stops background processing. |
Tessra__Jobs__LeaseDuration | 00:02:00 | How long a job stays reserved without a heartbeat before it is handed to another worker. |
Tessra__Jobs__RetryDelay | 00:00:30 | Wait before the first retry. Each further retry doubles it, up to an hour. |
Tessra__Jobs__ShutdownGrace | 00:00:10 | On shutdown, how long running jobs may finish before they are stopped and requeued. |
Tessra__Jobs__SucceededRetention | 7.00:00:00 | How long finished jobs are kept. |
Tessra__Jobs__FailedRetention | 30.00:00:00 | How long failed jobs are kept. |
Plugins
Built-in features such as image thumbnails are plugins. Each can be turned off with Tessra__Plugins__<id>__Enabled=false, for example Tessra__Plugins__tessra.images__Enabled=false. See Plugin development.
AI steps (tessra.ai) take these upper bounds, which every step and connection must stay within:
| Variable | Default | Controls |
|---|---|---|
Tessra__Plugins__tessra.ai__MaxOutputTokens | 4096 | Output tokens any AI request may ask for |
Tessra__Plugins__tessra.ai__MaxInputCharacters | 16000 | Text characters any AI request may send |
Tessra__Plugins__tessra.ai__MaxImageBytes | 10485760 | Largest image an AI step may send, in bytes |
Tessra__Plugins__tessra.ai__DefaultOutputTokens | 1024 | Output tokens when neither the step nor the connection sets them |
ASP.NET Core settings
| Setting | Meaning |
|---|---|
ASPNETCORE_HTTP_PORTS | Port inside the container. Default 8080; the Docker health check follows it. |
ASPNETCORE_FORWARDEDHEADERS_ENABLED | true makes Tessra trust X-Forwarded-For and X-Forwarded-Proto from any sender. Enable it only when Tessra is reachable solely through your reverse proxy. Sign-in rate limiting is per client IP, so without it every visitor shares the proxy's limit. |
Logging__LogLevel__Default | Information. Use Debug while troubleshooting. Tessra never logs file contents, share tokens or passwords. |