Skip to content

Configuration

Almost everything about a running Credenza server is set in the browser, under Settings → Server: libraries, users, transcoding, metadata providers and more. This page covers what you can set outside the browser, before the server starts — the database connection, the port, a first administrator, and the defaults behind the settings pages.

Every option is an environment variable whose name is its path with double underscores between the parts, such as MediaServer__Database__ConnectionString. Restart the server after changing one.

Docker Compose — add it under the credenza service’s environment: in docker-compose.yml, then run docker compose up -d:

docker-compose.yml
services:
credenza:
environment:
MediaServer__Updates__Enabled: "false"

Linux — add it to /etc/credenza/credenza.env, one NAME="value" per line, then restart the service. Upgrades never overwrite this file.

/etc/credenza/credenza.env
MediaServer__Updates__Enabled="false"
Terminal window
sudo systemctl restart credenza

Windows — add it to appsettings.Local.json in C:\Program Files\Credenza\app\, creating the file if it is not there, with each part of the name as a level of JSON. Then restart the Credenza service. Setup never touches this file; the appsettings.Production.json beside it is rewritten by every install, so changes made there are lost. See Installing on Windows.

C:\Program Files\Credenza\app\appsettings.Local.json
{
"MediaServer": {
"Updates": {
"Enabled": false
}
}
}
Terminal window
Restart-Service Credenza

macOS — the same file, appsettings.Local.json, in ~/Library/Application Support/Credenza/app/, creating it if it is not there. An upgrade carries it over; the appsettings.Production.json beside it is rewritten by every install. Then restart the server. See Installing on macOS.

Terminal window
launchctl kickstart -k gui/$(id -u)/tv.credenza.server

An environment variable still wins over the file, on Windows and macOS as everywhere else.

A few value formats come up repeatedly:

Kind Format Example
Duration hh:mm:ss, or d.hh:mm:ss for days 00:05:00 is five minutes, 1.00:00:00 is a day
List One variable per entry, numbered from 0 MediaServer__Library__VideoExtensions__0=".mkv"
True or false true or false MediaServer__Mcp__Enabled="true"

Most options below are only defaults. Where a settings page has a field for the same thing, a value saved in the browser takes precedence over configuration, and it is stored in the database, so it survives restarts and upgrades.

Each of those fields shows the configured value as its placeholder, with a note underneath:

  • Using the configured default (…) — nothing is saved in the browser, so the configuration value applies.
  • Leave blank to go back to … — a value is saved in the browser and overrides the configuration. Clear the field and save to hand control back to configuration.

So if you change an environment variable and nothing happens, check whether the same setting has a value saved on its settings page. The tables below give the settings page for each option that has one.

Variable Default What it does
MediaServer__Database__ConnectionString none The PostgreSQL connection string. The Compose file and the Linux and Windows installers set it for you. The database needs the pgmq and pg_search extensions — see Installation
ASPNETCORE_URLS http://+:27333 (Docker), http://0.0.0.0:27333 (Linux), the port chosen in setup (Windows) The address and port the server listens on. To move a Docker install to another port, change the host side of ports: instead; to move a Windows install, run the installer again and choose another, which moves the firewall rule too

The database schema is created and upgraded automatically each time the server starts.

Variable Default Settings page What it does
MediaServer__ApplicationName mediaserver General → Server name What the server calls itself
MediaServer__PublicUrl none General → Public address The address people outside the machine use, such as https://media.example.com. Links the server hands out, like invite links, are built from it
MediaServer__Auth__InitialUser__Username none — Creates an administrator with this username on first start
MediaServer__Auth__InitialUser__Password none — That administrator’s password, at least 12 characters
MediaServer__Auth__Invites__MaximumUses 25 — The most people a single invite link can let in
MediaServer__Auth__Invites__MaximumLifetimeDays 30 — The longest an invite link can stay valid, in days

The initial administrator is optional. Without it, the server asks for one in the browser on first visit — see First run. It is created only when the database has no accounts at all, so changing it later does not change anyone’s password; use Settings → User → Account for that.

If something in front of Credenza terminates HTTPS — nginx, Caddy, Traefik, a tunnel — set Public address and tick Behind a reverse proxy on Settings → Server → General. With it on, the server trusts the proxy’s X-Forwarded-Proto and X-Forwarded-For headers, so the sign-in cookie is marked Secure whenever the browser reached the proxy over HTTPS, and the sign-in rate limit (below) counts each visitor’s own address rather than the proxy’s. Credenza never serves HTTPS itself — the proxy holds the certificate — and the cookie stays usable over plain HTTP, so signing in at http://<LAN address>:27333 at home keeps working beside the proxy. A proxy on a public address, such as a VPS forwarding over the internet, has to be named in KnownProxies or KnownNetworks — and so does one on your LAN that connects over a global IPv6 address rather than IPv4 or fd…, as does a Tailscale proxy on another machine (name 100.64.0.0/10).

Variable Default Settings page What it does
MediaServer__ReverseProxy__Enabled false General → Behind a reverse proxy Honour X-Forwarded-Proto and X-Forwarded-For
MediaServer__ReverseProxy__KnownProxies__0 none — Only accept the header from these proxy IP addresses. When neither this nor KnownNetworks is set, it is accepted only from loopback and private addresses (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, ::1, fc00::/7 and fe80::/10), which covers a proxy on the same machine, in a container beside it or on your LAN. Setting any entry replaces that default
MediaServer__ReverseProxy__KnownNetworks__0 none — Only accept the header from these networks, in CIDR form such as 172.18.0.0/16
MediaServer__ReverseProxy__ForceDisable false — Force the setting off, whatever is saved in the browser

Over HTTPS the sign-in cookie is named __Host-credenza.auth, which a browser lets only this exact address set; over plain HTTP it stays credenza.auth. Anyone already signed in is moved to the new name on their next visit, without signing in again.

The routes anyone can reach without an account — signing in, first-run setup, redeeming an invite, signing in a television and the sign-in page’s picture — are limited per visitor address. Past the limit the server answers 429 Too Many Requests with a Retry-After header, and the sign-in form says how long to wait. This sits beside the account lockout (five wrong passwords lock that one account for five minutes): the lockout protects an account, the rate limit stops one address trying many. An IPv6 visitor is counted by its /64, since one home usually holds the whole prefix.

Variable Default What it does
MediaServer__Auth__RateLimits__SignIn__PermitLimit 10 Sign-in, setup and invite redemption, together, per address per window
MediaServer__Auth__RateLimits__SignIn__Window 00:01:00 The window those are counted over
MediaServer__Auth__RateLimits__Anonymous__PermitLimit 120 Everything else anyone can reach — the setup check, an invite’s preview, a television asking for and polling its code, and the sign-in picture — per address per window
MediaServer__Auth__RateLimits__Anonymous__Window 00:01:00 The window those are counted over
Variable Default What it does
MediaServer__RequestLimits__MaxRequestBodyBytes 1048576 (1 MiB) The largest request body accepted. Anything larger is refused with 413 Content Too Large. Uploading a game save or a save state has its own limit, worked out from the Games caps below

These are the defaults behind Settings → Server → Transcoding. See How playback works and Hardware acceleration for what they mean in practice.

Variable Default Settings page field What it does
MediaServer__Streaming__Encoder auto Hardware when available / Software only auto uses a working hardware encoder if there is one. Or name one: libx264 (software), nvenc (NVIDIA), vaapi (AMD and Intel on Linux), qsv (Intel on Windows), amf (AMD on Windows) or videotoolbox (macOS). One that is not usable falls back to software, and the page says why
MediaServer__Streaming__MaxConcurrentSessions 0 Concurrent streams How many transcodes can run at once. 0 means no limit
MediaServer__Streaming__EncoderPreset veryfast Encoder preset The software encoder’s speed–quality trade-off, from ultrafast to placebo
MediaServer__Streaming__EncoderCrf 21 Quality (CRF) Software encoding quality; lower is better and larger
MediaServer__Streaming__MaxRate 8M Bitrate ceiling The highest video bitrate a transcode may use
MediaServer__Streaming__AudioBitrate 192k Audio bitrate The bitrate of transcoded audio
MediaServer__Streaming__SegmentDuration 6 Segment length Seconds of video per streaming segment
MediaServer__Streaming__IdleTimeout 00:05:00 Idle timeout How long an abandoned stream keeps transcoding before it is stopped
MediaServer__Streaming__SegmentReadyTimeout 00:00:30 Segment timeout How long a request for a segment waits for the transcoder before giving up
MediaServer__Streaming__LookaheadTolerance 3 Lookahead tolerance How far ahead of the transcoder, in segments, a player can ask before the transcode restarts at the new position
MediaServer__Streaming__WorkDirectory /tmp/credenza in Docker, /var/cache/credenza/transcode with the Linux packages, C:\ProgramData\Credenza\transcode on Windows Storage → Transcoding scratch Where transcoded segments are written while a stream plays. In Docker the default is the container’s small writable layer; mount a dedicated folder for anything beyond light use, never under /data
MediaServer__Streaming__MinimumFreeSpaceMegabytes 2048 Free space to keep A new transcode is refused, with a reason, when the transcoding folder has less free than this many megabytes. 0 never refuses
MediaServer__Streaming__NvencMaxSessions 8 NVENC session limit How many NVIDIA hardware transcodes can run at once. 0 means no limit
MediaServer__Streaming__VaapiDevice /dev/dri/renderD128 VAAPI device The render device used for AMD and Intel hardware encoding on Linux

By default Credenza uses whichever ffmpeg and ffprobe are on the server’s PATH, which is what both install methods set up.

Variable Default Settings page field What it does
MediaServer__Ffmpeg__Path ffmpeg on the PATH General → ffmpeg path A specific ffmpeg to use
MediaServer__Ffmpeg__ProbePath ffprobe on the PATH General → ffprobe path A specific ffprobe to use

These are the defaults behind Settings → Server → Scanning. A list you set replaces the built-in one rather than adding to it.

Variable Default Settings page field What it does
MediaServer__Library__VideoExtensions__0 … .mkv .mp4 .m4v .avi .mov .ts .webm Video file types Which files film and television scans pick up
MediaServer__Library__ExcludedDirectoryNames__0 … extras, featurettes, behind the scenes, deleted scenes, trailers, samples, @eaDir Folders to skip Folder names a scan never looks inside
MediaServer__Library__WatchdogInterval 00:05:00 Stuck-scan check How often the server looks for a scan that has stopped making progress
MediaServer__Library__ScanDeadline 1.00:00:00 Scan deadline How long a scan may stay running before it is marked failed
MediaServer__Library__GameExtensions__<System>__0 … see below — Which files a games scan picks up for one console

For GameExtensions, <System> is one of Nes, Snes, Nintendo64, GameBoy, GameBoyColor or GameBoyAdvance. Setting a list for one console leaves the others at their defaults:

Console Default file types
Nes .nes .fds .unf .unif
Snes .sfc .smc .swc .fig
Nintendo64 .z64 .v64 .n64
GameBoy .gb
GameBoyColor .gbc
GameBoyAdvance .gba

Provider credentials are usually entered on Settings → Server → Metadata, but they can be supplied as configuration instead — useful when you manage secrets outside the browser.

Variable Default Settings page field What it does
MediaServer__Metadata__ApiReadAccessToken none TMDB read access token Your TMDB API Read Access Token, for film and television details and artwork
MediaServer__Metadata__ArtworkDirectory credenza/artwork in the data folder Storage → Artwork cache Where downloaded posters, backdrops and headshots are kept
MediaServer__Metadata__Language en-US — The language TMDB answers in, as a language and region code such as fr-FR
MediaServer__Metadata__ProxyUrl none Proxy address A proxy for every outbound request to metadata providers and the update check: an http, https, socks4, socks4a or socks5 address. If it is set but unusable, those requests stop rather than going direct
MediaServer__Metadata__ScreenScraper__DevId Credenza’s own Developer id Your own ScreenScraper developer credentials, used instead of the ones Credenza comes with
MediaServer__Metadata__ScreenScraper__DevPassword none Developer password
MediaServer__Metadata__ScreenScraper__Username none ScreenScraper username Your own ScreenScraper account, optional
MediaServer__Metadata__ScreenScraper__Password none ScreenScraper password
MediaServer__Metadata__ScreenScraper__Language en — The language ScreenScraper answers in, falling back to English
MediaServer__Metadata__ScreenScraper__Region us — The region ScreenScraper answers for
MediaServer__Metadata__Igdb__ClientId none Twitch client id IGDB credentials, which come from a Twitch developer application
MediaServer__Metadata__Igdb__ClientSecret none Twitch client secret
MediaServer__Metadata__GameProviders__0 … screenscraper, igdb Games Which game providers are switched on, in the order they’re asked: screenscraper and igdb. The first one that has a game keeps it

When no outbound proxy is set, requests follow the machine’s own HTTP_PROXY environment variable if it has one.

Limits on what a player’s browser can store on the server while playing. See Saves.

Variable Default What it does
MediaServer__Games__SaveDirectory credenza/game-saves in the data folder Where saves and save states are kept. Also moved at Storage → Game saves
MediaServer__Games__MaxSaveBytes 1048576 (1 MiB) The largest in-game save file accepted
MediaServer__Games__MaxStateBytes 16777216 (16 MiB) The largest save state accepted
MediaServer__Games__MaxScreenshotBytes 2097152 (2 MiB) The largest screenshot stored with a save state

Each of the three must be between 1 byte and 1 GiB, or the server refuses to start.

These control backups exported from Settings → Server → Storage. See Storage, backups and restoring.

Variable Default What it does
MediaServer__Backups__Directory credenza/backups in the data folder Where exported backups are written. Also moved at Storage → Exported backups
MediaServer__Backups__PgDumpPath found automatically The pg_dump to use for the database. When set, it is used even if it is unusable, and the Storage page says why
MediaServer__Backups__RetainedExports 5 How many finished backups to keep. Older ones are deleted as new ones finish. At least 1

The server checks credenza.tv for a newer release at startup and then on a schedule, and tells administrators when one is out — see Updating. The request carries nothing about your server.

Variable Default What it does
MediaServer__Updates__Enabled true Set to false to never check. The Updates section of Settings → Server → General then says it is switched off
MediaServer__Updates__Interval 12:00:00 How often to check. At least one minute

Credenza writes its log as JSON files, one per day, which Settings → Server → Logs reads back — see Logs.

Variable Default What it does
MediaServer__Logging__Directory /data/logs (Docker), /var/log/credenza (Linux), C:\ProgramData\Credenza\logs (Windows) Where log files are written. Also moved at Storage → Logs
MediaServer__Logging__RetainedFileCountLimit 14 How many log files to keep before the oldest is deleted
MediaServer__Logging__FileSizeLimitBytes 67108864 (64 MiB) The size at which a day’s log file is closed and a new one started
MediaServer__Logging__Enabled true Set to false to write no log files
MediaServer__Logging__Loki__Enabled false in both installs Also send the log to a Grafana Loki server
MediaServer__Logging__Loki__Uri http://localhost:3100 The Loki server’s address
Logging__LogLevel__Default Information The least severe level written: Debug, Information, Warning or Error

The Model Context Protocol endpoint lets an AI assistant help fix unmatched items — see MCP.

Variable Default Settings page field What it does
MediaServer__Mcp__Enabled false Integrations → Answer on the MCP endpoint Whether the endpoint answers
MediaServer__Mcp__Path /mcp — The path it is served at. Must begin with /
MediaServer__Mcp__MaxResults 50 — The most results one tool call returns

Every folder Credenza writes to can be moved two ways: with a variable here, or with Change on its row at Settings → Server → Storage. As everywhere else, a folder chosen on the page wins over the variable, and Use default on the page hands it back. The page always shows the folder actually in use, whichever of the two chose it.

Variable Default What goes there
MediaServer__DataDirectory /data (Docker), /var/lib (Linux), C:\ProgramData (Windows) The data folder. The defaults below that say “in the data folder” are under it. It has no field on the page, because moving it would move every folder still at its default
MediaServer__Games__SaveDirectory credenza/game-saves in the data folder Game saves: saves and save states
MediaServer__Logging__Directory /data/logs (Docker), /var/log/credenza (Linux), C:\ProgramData\Credenza\logs (Windows) Logs: the log files
MediaServer__Backups__Directory credenza/backups in the data folder Exported backups
MediaServer__Metadata__ArtworkDirectory credenza/artwork in the data folder Artwork cache: downloaded posters, backdrops and headshots
MediaServer__Streaming__WorkDirectory /tmp/credenza (Docker), /var/cache/credenza/transcode (Linux), C:\ProgramData\Credenza\transcode (Windows) Transcoding scratch: segments for streams in progress, about 3.6 GB per hour per viewer at Original. In Docker, mount a dedicated folder for it rather than leaving it in the container

A relative path in any of these variables is taken relative to the folder Credenza is installed in (/app in Docker, /usr/lib/credenza with the Linux packages, C:\Program Files\Credenza\app on Windows), never the directory it was started from. A folder chosen on the page must be an absolute path.

Two places are listed on the Storage page but can’t be moved from it: the database, which is wherever MediaServer__Database__ConnectionString points, and the web app, the built interface that ships with Credenza and is replaced on every upgrade. The web app’s folder is MediaServer__Spa__RootPath, wwwroot in the folder Credenza is installed in. There’s no reason to change it.

Moving a folder doesn’t carry its contents across. Copy game saves yourself before moving them, or they will appear to be gone.