Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

Outpace is configured entirely through OUTPACE_* environment variables. There is no config file and no command-line flag for daemon settings. This page lists every setting the daemon reads.

How settings are applied

  • Precedence: your environment wins over the container image's defaults, and those win over the built-in defaults.
  • Read once at startup. Nothing reloads while the daemon runs. Restart it after any change. With Docker Compose, recreate the container (docker compose up -d --wait); a plain docker compose restart keeps the old environment.
  • Strict validation. A malformed value or an impossible combination stops the daemon before it opens any listener, with a message naming the setting. A typo never silently turns a feature off.
  • Booleans accept exactly 1, true, 0 or false. Anything else, including an empty value, is an error.
  • "Exact 1" switches. Three security-sensitive switches (OUTPACE_ALLOW_NON_GLOBAL_BROADCAST_SOURCE, OUTPACE_ALLOW_NON_GLOBAL_TRANSPORT, OUTPACE_TRACKER_ALLOW_NON_GLOBAL) turn on only for the string 1. Every other value, including true, leaves them off.
  • Units are in the setting name: _MS is milliseconds, _SECS/_SECONDS is seconds and _BYTES is bytes. Byte values are plain integers: write 134217728, not 128MiB.
  • Addresses are numeric socket addresses: 127.0.0.1:6878, 0.0.0.0:8621, [::1]:6878. Hostnames aren't accepted. The one exception is the host in OUTPACE_PROXY.

Exposed defaults

These settings decide what the daemon exposes to the network. Change them deliberately.

SettingDefaultExposure
OUTPACE_BIND127.0.0.1:6878 (container: 0.0.0.0:6878)HTTP API and playback. No authentication.
OUTPACE_RTMP_BIND127.0.0.1:1935 (container: 0.0.0.0:1935)RTMP broadcast ingest. Always listening.
OUTPACE_SRT_BINDunset (off)Encrypted SRT ingest on UDP, in SRT-enabled builds only.
OUTPACE_PEER_LISTEN0.0.0.0:8621Inbound peer port on all interfaces. Used when inbound serving is on.
OUTPACE_ENABLE_INBOUNDtrueAccept inbound peers and announce yourself to trackers and the DHT.
OUTPACE_ENABLE_SEEDINGtrueUpload to peers you connect to.
OUTPACE_ENABLE_PORT_MAPPINGfalseAsk your router (UPnP/NAT-PMP) to open the peer port.
OUTPACE_ENABLE_CASTfalseAdd /cast/* routes on OUTPACE_BIND that discover LAN renderers on request and start or stop playback on them.
OUTPACE_DATA_DIRplatform data dir + outpaceNode identity and broadcast signing keys.
OUTPACE_CACHE_DIR<data dir>/cacheDisk cache and recent peer hints. Wiped at startup when disk caching is on.

The image binds HTTP and RTMP to 0.0.0.0 inside the container so that published ports work. What reaches your network is decided by the -p/ports: mapping. See Deployment.

Availability

The Avail. column shows where each setting is available:

  • all: every release, v1.0.0 and later. Earlier 0.x tags were development builds and aren't supported; see Releases and Versions.
  • 1.1.0: v1.1.0 and later, also in edge and builds from main. Earlier releases ignore these variables.
  • 1.2.0: v1.2.0 and later, also in edge and builds from main. Earlier releases ignore these variables.
  • srt build: v1.0.0 and later, only in binaries built with the srt feature.
  • edge: current main and the edge image, not yet in a numbered release.

Network and listeners

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_BIND127.0.0.1:6878socket addressallHTTP API, playback, HLS and ingest. Set 0.0.0.0:6878 to reach it from other machines, and protect it with a firewall or proxy first. Casting needs a LAN-reachable address here: on loopback, play fails with 409 loopback_bind.
OUTPACE_RTMP_BIND127.0.0.1:1935socket addressallRTMP ingest for broadcasting. Use port 0 for a random local port if you never use RTMP.
OUTPACE_PEER_LISTEN0.0.0.0:8621socket addressallTCP peer listener. Its port is also the port Outpace announces, so the router's external port must match. See NAT and Port Mapping.

SRT listener settings are under Broadcasting and ingest.

Playback and startup buffering

These control how long Outpace waits before sending the first media, and how it recovers when peers stall. The defaults favour smooth playback over a fast start.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_PREBUFFER_MS30000ms, 0 disablesallTarget amount of media to queue on the server before a live stream is released to viewers (direct TS and HLS alike). Measured on the media clock when possible, otherwise from the advertised bitrate. Lower it (for example 5000) for faster starts; 0 sends media immediately. When the peers hold less live history than the target, playback starts as soon as everything up to the live edge has arrived, with that shorter lead.
OUTPACE_PREBUFFER_BYTES134217728 (128 MiB)bytes, at least 188allHard cap on the startup queue. Reaching it releases playback early.
OUTPACE_PREBUFFER_TIMEOUT_MS15000ms, at least 1 when prebuffering is onallLongest wait, counted from the first media byte, before releasing whatever is queued. A short live window degrades to a shorter buffer, not a failure. It is absolute: source gaps don't restart it.
OUTPACE_PREFETCH_PIECESunset (automatic)piecesallHow far behind the live edge to start. When unset it is derived from the prebuffer target and the advertised bitrate, or 32 pieces if the bitrate is unknown. Leave unset unless you are debugging.
OUTPACE_SESSION_BUFFER256messages, at least 1allPer-viewer fan-out queue depth. Lower it (for example 64) on small devices. A viewer that falls this far behind skips ahead and sees a discontinuity.

Live recovery (advanced)

Leave these at their defaults unless you are diagnosing stalls with a maintainer. The defaults have been tuned against real swarms.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_REQUEST_TIMEOUT_MS1500ms, at least 1, below the stale timeoutallHow long to wait for one piece before asking another peer. Raising it turns a short hiccup into a visible gap.
OUTPACE_STALE_UPSTREAM_TIMEOUT_MS12000ms, at least 1allNo progress from any peer for this long rebuilds the peer pool. Don't lower it much: discovery needs this margin.
OUTPACE_REQUEST_CHECK_INTERVAL_MS1000ms, at least 1, no more than the request timeoutallHow often outstanding requests are checked.
OUTPACE_MAX_ACTIVE_UPSTREAMS41–256allPeers one stream downloads from at the same time.
OUTPACE_MAX_PARALLEL_CONNECT121–1024allPeers dialled at once while searching for upstreams.
OUTPACE_MAX_PIECE_ADVANCE2561–16384allPieces scheduled in one forward step.
OUTPACE_MAX_REASM_PIECES_AHEAD512at least OUTPACE_MAX_PIECE_ADVANCE, at most 65536allPieces accepted ahead of the playback cursor.

HLS

See HLS Output for how these interact.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_HLS_SEGMENT_DURATION_MS5000ms, at least 1allTarget segment length. Segments cut on the next keyframe after this time.
OUTPACE_HLS_WINDOW_SEGMENTS8at least 1allSegments kept in the live playlist.
OUTPACE_HLS_STARTUP_SEGMENTS60 to the window size (0 acts as 1)allCompleted segments needed before the first playlist is returned. Lower it for faster HLS starts.
OUTPACE_HLS_STARTUP_TIMEOUT_MS45000ms, at least the segment durationallHow long a playlist request waits for startup before returning 503. Also the startup deadline for audio normalisation.
OUTPACE_HLS_SEGMENT_PACKETS65536 (about 12.3 MB)at least 3allMemory safety ceiling per segment, in 188-byte packets. Also the cut size for streams without usable timing. Raise it only for very high bitrates.

Audio normalisation

Off by default. Turning either switch on requires FFmpeg; see HLS Output.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_HLS_AUDIO_NORMALIZEfalsebooleanallConvert AC3 or MPEG audio to AAC for live HLS only.
OUTPACE_LIVE_AUDIO_NORMALIZEfalsebooleanallConvert once per source, before TS, HLS and support fan-out. Takes over from the HLS-only switch when both are on.
OUTPACE_FFMPEG_PATHffmpegpath or name on PATHallThe FFmpeg executable. Resolved once at startup and only used when a switch above is on.

Timeshift

Off by default. See Timeshift.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_HISTORY_SECONDS0 (off)0–3600 secondsallHow far back viewers can rewind. Any nonzero value turns timeshift on.
OUTPACE_HISTORY_BYTES134217728 (128 MiB)bytes, 188 up to the platform pool limitallMemory budget per source. At 8 Mbit/s, 128 MiB is about two minutes.
OUTPACE_HISTORY_TOTAL_BYTES268435456 (256 MiB)bytes, at least OUTPACE_HISTORY_BYTESallMemory budget shared by all sources and managed-origin viewers.

Managed HLS origins

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_MANAGED_HLSfalsebooleanallServe descriptors that point at an HTTP(S) HLS origin through a local relay instead of redirecting the player to the origin. The daemon then fetches public origin URLs itself. See Managed HLS Origins.

Casting

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_ENABLE_CASTfalseboolean1.2.01 or true adds the /cast/* routes for DLNA/UPnP media renderers. Discovery runs only when GET /cast/targets is called, and its result is cached for 60 seconds. OUTPACE_BIND must be reachable from the renderer. See Casting.

Broadcasting and ingest

See Broadcasting.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_BROADCAST_OPTIONS{}JSON object, at most 64 names and 262144 bytesallPer-broadcast title, bitrate, piece size, quality and categories, applied when a broadcast identity is created.
OUTPACE_BROADCAST_SOURCES{}JSON object, at most 64 names and 256 KiBallHTTP(S) MPEG-TS sources to pull from and broadcast at startup. URLs can contain tokens, so treat this as a secret. An explicitly empty value is an error.
OUTPACE_BROADCAST_CATALOG_REGISTERfalsebooleanedgeRegister each public broadcast with the AceStream catalog, as the original engine does, so its catalog acestream:// id plays on stock clients. Sends the transport descriptor to the catalog operator. Ignored in private peer mode. See Broadcasting.
OUTPACE_ALLOW_NON_GLOBAL_BROADCAST_SOURCEoffexact 1allLet broadcast pull sources use private, loopback, CGNAT and IPv6 ULA addresses. Link-local and cloud-metadata addresses stay blocked.
OUTPACE_TRACKERSbuilt-in public trackercomma-separated URLs, at most 64 keptallTrackers written into new broadcast descriptors and used for their announcements. When set, it fully replaces the default. Outpace itself only announces to lowercase udp:// entries. Existing broadcasts keep the trackers they were created with.
OUTPACE_SRT_BINDunset (off)numeric socket addresssrt buildTurns on the SRT listener (UDP), for example 127.0.0.1:9000. Starting a non-SRT build with this set fails.
OUTPACE_SRT_PASSPHRASE_FILEunsetabsolute file pathsrt buildRequired with OUTPACE_SRT_BIND. The file holds a 10–79 byte passphrase, is owned by the daemon user, and has no group or other permissions.
OUTPACE_SRT_LATENCY_MS12020–2000srt buildSRT receiver latency.
OUTPACE_SRT_MAX_CONNECTIONS41–16srt buildSimultaneous SRT connections, including ones still connecting or closing.

Seeding and inbound peers

See Seeding and Peers.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_ENABLE_SEEDINGtruebooleanallAnswer piece requests from peers you downloaded from.
OUTPACE_ENABLE_INBOUNDtruebooleanallRun the peer listener on OUTPACE_PEER_LISTEN, serve inbound peers and announce to trackers and the DHT. Set both this and seeding to 0 for download-only. Defaults to off, and can't be 1, with OUTPACE_PROXY_MODE=on.
OUTPACE_MAX_INBOUND64integer (0 acts as 1)allInbound connections kept open in total, including ones still handshaking. Extra connections close at once.
OUTPACE_MAX_INBOUND_PER_STREAM16integer, 0 = no per-stream capallInbound connections admitted per stream.
OUTPACE_MAX_UNCHOKED8integerallPeers per stream allowed to download from you at once, plus one rotating "optimistic" slot. 0 still allows the optimistic slot.
OUTPACE_SEED_TTL_SECS300seconds, 0 disablesallSafety net that removes a stream's seeding data when nothing owns it any more. Normal teardown doesn't wait for this.

Storage and cache

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_DATA_DIRplatform data dir + outpacedirectoryallIdentity and broadcast state. Container: /var/lib/outpace. Keep it persistent and private.
OUTPACE_CACHE_TYPEmemorymemory or diskallWhere retained pieces for seeding are kept. disk saves RAM on small machines.
OUTPACE_CACHE_DIR<data dir>/cachedirectoryallDisk cache root, used only with disk. Wiped at startup. It may be inside the data directory, but it must not be the data directory or contain it.
OUTPACE_SEED_STORE_BYTES134217728 (128 MiB)bytesallCeiling on retained pieces per stream (not a total). In memory mode it is capped per platform (about 512 MiB on 32-bit, 8 GiB on 64-bit). It must hold at least one full piece of every broadcast you run.
OUTPACE_SEED_RETENTION_SECS45seconds, 0 = byte cap onlyallFor live streams, keep only about this many seconds of recent pieces, so memory follows the bitrate instead of filling the byte cap. VOD always uses the byte cap.
OUTPACE_VOD_DISK_RESERVE_BYTES268435456 (256 MiB)bytes, 0 = 5% margin only1.2.0Free space a VOD download must leave on the cache filesystem with disk. See VOD free-space check.

How the disk cache wipe works

Disk-cache contents are throwaway live data and are never reused after a restart. To avoid deleting the wrong directory, Outpace only wipes a cache directory that is empty or contains a regular file named .outpace-cache. It writes that file itself the first time it uses an empty directory. If you point OUTPACE_CACHE_DIR at a non-empty directory without that file, startup fails instead of deleting anything.

VOD free-space check

With OUTPACE_CACHE_TYPE=disk, a VOD start first checks the free space on the filesystem that holds OUTPACE_CACHE_DIR. The download needs the file's size from its descriptor, capped at OUTPACE_SEED_STORE_BYTES (the store never keeps more than that), minus whatever the cache already holds for the same file. A store that is already at that cap still needs room for one more chunk, because a new chunk is written before an old piece is evicted; only a file that is fully cached needs nothing. It must fit with a margin to spare: the larger of OUTPACE_VOD_DISK_RESERVE_BYTES and 5% of the bytes needed. Otherwise the start is refused with 507 and the no_space code (error codes).

The check is one filesystem query per VOD start. It uses statvfs on Linux, Android, macOS and the BSDs, and GetDiskFreeSpaceExW on Windows. Where free space can't be read, the start is allowed. The memory cache and live streams skip it. If the disk fills during a download anyway, the download stops and the next request for that VOD gets no_space; the request after that runs the check again.

If a stream's cache directory can't be created later (for example after a permission change), playback continues but that stream keeps no pieces for seeding. The log shows [cache] ERROR: disk store creation failure.

NAT and port mapping

See NAT and Port Mapping.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_ENABLE_PORT_MAPPINGfalsebooleanallAsk the gateway to forward the peer port. Only works when Outpace owns the LAN address (bare metal or host networking), and only when inbound serving is on. Failure is logged and isn't fatal. Not allowed with OUTPACE_PROXY_MODE=on.
OUTPACE_PORT_MAP_BACKENDautoauto, upnp, natpmp, noneallauto tries UPnP-IGD, then NAT-PMP.
OUTPACE_PORT_MAP_EXTERNAL_PORTsame as the peer port1–65535allExternal port to request. Leave unset so the announced port matches.

Outbound proxy

See Outbound Proxy.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_PROXYunsetsocks5://[user:password@]host:port (socks5h:// also accepted)1.2.0SOCKS5 proxy for outgoing peer connections, UDP tracker announces and catalog/search requests. Catalog and search host names are resolved by the proxy; UDP tracker host names are still resolved locally. Never logged with its credentials.
OUTPACE_PROXY_MODEoffoff, on, fallback1.2.0on proxies from the start and turns inbound serving and port mapping off (setting either to 1 is an error). fallback stays direct until a live start finds no peers, or none connects within 10 seconds, then proxies engine-wide until restart. on and fallback require OUTPACE_PROXY.

While the proxy is active the DHT is off, the advertised listen port is 0 and there is no self-announce. UDP trackers use SOCKS5 UDP ASSOCIATE and are turned off if the proxy refuses it.

Private peers and descriptors

See Private Peer Mode.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_PRIVATE_PEERSunset (public mode)comma-separated IPv4:port, at most 256 entries and 8 KiBallAny value switches on outbound-only private mode: only these peers, no trackers, no DHT, no inbound. An empty value is an error.
OUTPACE_PRIVATE_DESCRIPTORSunsetJSON object {"alias":"/abs/path"}, at most 64 entries and 64 KiBallLocal descriptor files playable as local:<alias>. Setting it without OUTPACE_PRIVATE_PEERS fails startup.

Discovery, trackers and resolution

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_ACE_PEERSunsetcomma-separated IPv4:portallExtra bootstrap peers tried on every live stream. In public mode malformed entries are skipped silently; in private mode they must be in the allowlist.
OUTPACE_BEP9_CONTENT_ID_FALLBACKfalsebooleanallIf the catalog can't resolve a content id, ask peers for its metadata. Needed to play an Outpace broadcast's acestream:// link from a different daemon.
OUTPACE_ALLOW_NON_GLOBAL_TRANSPORToffexact 1allAllow transport-file URLs on private, loopback or CGNAT hosts. Link-local, multicast and documentation ranges stay blocked. For self-hosted LAN swarms.
OUTPACE_TRACKER_ALLOW_NON_GLOBALoffexact 1allAllow announcing to trackers on private or local addresses. For self-hosted or offline swarms.

Limits and admission

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_MAX_SESSIONS0 (unlimited)non-negative integerallCap on distinct sources (live streams, VOD files, support sources) the daemon runs at once. All viewers of one stream share one slot. New sources at the cap get 503 with Retry-After: 1; existing ones stay joinable. It doesn't cap viewers, memory or sockets.

Support sources

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_SUPPORT_SOURCESunset (off)JSON object {"name":"selector"}, at most 8 entries and 64 KiBallLive streams to keep running and seeding with no viewer. Requires inbound serving and seeding. See Support Sources and Operations.

AceStream compatibility API

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_ACE_COMPATtruebooleanallServes /ace/*, /server/api and /webui/api/service. Set 0 or false to turn them off; they then return 404. Required for Timeshift seeking. The default was false up to 1.2.1.
OUTPACE_EXPERIMENTAL_ACE_COMPATunsetbooleanallDeprecated old name. Read only when OUTPACE_ACE_COMPAT is unset. Set the alias to 0 or false to disable compatibility in that case. The canonical variable takes precedence.

AceStream search services

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_COMPAT_ACESTREAM_SERVICESfalsebooleanallEnables /search and external index requests. Independent of OUTPACE_ACE_COMPAT; rejected in private peer mode.

No operator API key is required. Search uses external plain HTTP services, exposing queries and the server IP to the service and network observers. See Stream Search for limits and client integration. Existing signed-catalog content-ID resolution and its defaults remain unchanged.

AceStream identity

See Engine Camouflage. Off by default: Outpace keeps its own labels. Turn it on only when every value a peer, tracker, search host or catalog can observe should match one official Linux engine profile. A bad value stops startup and names the variable. Overrides are ignored while the switch is off.

SettingDefaultAccepted valuesAvail.Notes
OUTPACE_ACESTREAM_IDENTITYfalseboolean1.1.01 or true installs the profile for the process.
OUTPACE_ACESTREAM_IDENTITY_VERSION3.2.11X.Y.Z1.1.0Search, catalog, handshake and the User-Agent use this version. The numeric code is X*1000000 + Y*10000 + Z*100.
OUTPACE_ACESTREAM_IDENTITY_PLATFORMlinuxlinux1.1.0Any other value is rejected.
OUTPACE_ACESTREAM_IDENTITY_DEVICE_IDrandom, persisted40 hex digits1.1.0Stable id for search and the UPnP label. Stored in the data directory when unset.
OUTPACE_ACESTREAM_IDENTITY_HARDWARE_KEYderived from this host40 hex digits1.1.0Linux default comes from the machine's memory size. Hosts without /proc/meminfo must set it.
OUTPACE_ACESTREAM_IDENTITY_ASNlooked upinteger, optional AS prefix1.1.0Set both this and the country to skip the lookup. Setting only one is an error.
OUTPACE_ACESTREAM_IDENTITY_COUNTRYlooked uptwo letters1.1.0ISO 3166 alpha-2. Paired with the ASN.
OUTPACE_ACESTREAM_IDENTITY_USER_AGENTengine UA for the versionprintable ASCII, at most 256 characters1.1.0Sent to search and AceStream web hosts. Catalog requests keep a per-request Chrome User-Agent.

Diagnostics

SettingDefaultNotes
OUTPACE_METRICSfalse1 or true serves Prometheus text metrics at GET /metrics on the HTTP bind. See Support sources and operations.
OUTPACE_SEED_DEBUGunsetAny value logs every inbound seeding message ([seed-session] lines). Very verbose. Turn it on only while debugging.

Variables named OUTPACE_TEST_*, OUTPACE_DHT_COMPARE_* or OUTPACE_RUN_*, and OUTPACE_CAST_LIVE, belong to the test suite and do nothing in normal operation.

Docker Compose variables

The repository's compose.yml also reads these. They configure Compose, not the daemon:

VariableDefaultMeaning
OUTPACE_IMAGEghcr.io/outpace-stream/outpace-engine:latestImage to run. Pin a release tag.
OUTPACE_HTTP_HOST127.0.0.1Host address the HTTP port is published on.
OUTPACE_HTTP_PORT6878Host port for HTTP.
OUTPACE_RTMP_HOST127.0.0.1Host address the RTMP port is published on.
OUTPACE_RTMP_PORT1935Host port for RTMP.

Compose only passes a fixed list of daemon settings from .env into the container: OUTPACE_BROADCAST_SOURCES, OUTPACE_ALLOW_NON_GLOBAL_BROADCAST_SOURCE, OUTPACE_ENABLE_INBOUND, OUTPACE_ENABLE_SEEDING, OUTPACE_ENABLE_PORT_MAPPING, OUTPACE_CACHE_TYPE, OUTPACE_CACHE_DIR, OUTPACE_SEED_STORE_BYTES, OUTPACE_ACE_COMPAT and OUTPACE_COMPAT_ACESTREAM_SERVICES. The bind addresses and data directory are fixed in the file. Any other setting you put in .env is ignored. Add those to a compose.override.yml; see Deployment.


These pages are generated from docs/wiki/ in the main repository and published both as the GitHub wiki and as the documentation site. To fix or improve a page, open a pull request there; both are republished automatically when it merges, and edits made in the wiki web UI are overwritten.