Skip to content

Configuration

github-actions[bot] edited this page Nov 29, 2026 · 27 revisions

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 exceptions are the host in OUTPACE_PROXY and the entries in OUTPACE_CATALOG_HOSTS.

Exposed defaults

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

Setting Default Exposure
OUTPACE_BIND 127.0.0.1:6878 (container: 0.0.0.0:6878) HTTP API and playback. No authentication.
OUTPACE_RTMP_BIND 127.0.0.1:1935 (container: 0.0.0.0:1935) RTMP broadcast ingest. Always listening.
OUTPACE_SRT_BIND unset (off) Encrypted SRT ingest on UDP, in SRT-enabled builds only.
OUTPACE_PEER_LISTEN 0.0.0.0:8621 Inbound peer port on all interfaces. Used when inbound serving is on.
OUTPACE_ENABLE_INBOUND true Accept inbound peers and announce yourself to trackers and the DHT.
OUTPACE_ENABLE_SEEDING true Upload to peers you connect to.
OUTPACE_ENABLE_PORT_MAPPING false Ask your router (UPnP/NAT-PMP) to open the peer port.
OUTPACE_ENABLE_CAST false Add /cast/* routes on OUTPACE_BIND that discover LAN renderers on request and start or stop playback on them.
OUTPACE_ALLOWED_HOSTS unset Extra Host names the HTTP API answers. Other public DNS names get 403. See Allowed host names.
OUTPACE_DATA_DIR platform data dir + outpace Node identity and broadcast signing keys.
OUTPACE_CACHE_DIR <data dir>/cache Disk 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, 1.2.0, 1.3.0, 1.4.0: that release 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

Setting Default Accepted values Avail. Notes
OUTPACE_BIND 127.0.0.1:6878 socket address all HTTP 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. Anyone who can reach it can see the IP address of every viewer in /streams (see Playing Streams). Casting needs a LAN-reachable address here: on loopback, play fails with 409 loopback_bind.
OUTPACE_RTMP_BIND 127.0.0.1:1935 socket address all RTMP ingest for broadcasting. Use port 0 for a random local port if you never use RTMP.
OUTPACE_PEER_LISTEN 0.0.0.0:8621 socket address all TCP peer listener. Its port is also the port Outpace announces, so the router's external port must match. See NAT and Port Mapping.
OUTPACE_ALLOWED_HOSTS unset comma-separated host names, *.suffix, or * edge Extra Host names the HTTP API answers, such as a reverse proxy's public name. See Allowed host names.
OUTPACE_HOST_CHECK default default or strict edge strict stops answering single-label and local-suffix names that aren't in OUTPACE_ALLOWED_HOSTS. See Allowed host names.

SRT listener settings are under Broadcasting and ingest.

Allowed host names

The HTTP API checks each request's Host header to block DNS rebinding. In that attack, a web page you open points its own public name at 127.0.0.1 or at your server's LAN address. Your browser then sends requests to Outpace with that page's name in Host, and it can read the answers. The attacker needs a name in public DNS for this, so Outpace answers every Host that isn't one:

  • IP addresses, IPv4 or IPv6, with or without a port;
  • localhost and names ending in .localhost;
  • single-label names such as a Docker service name (outpace) or a machine's LAN name;
  • names ending in .local, .lan, .internal, .home.arpa or .localdomain;
  • the names in OUTPACE_ALLOWED_HOSTS, plus the --public-host of outpace broadcast (without its port).

Any other name gets 403 Forbidden with a short plain-text body, on every route. The log shows [http] refused request with Host ... for the first refusal, then the 2nd, 4th, 8th and so on. A request without a Host header is allowed: browsers always send one.

If players or a reverse proxy reach Outpace by a public name, list it:

OUTPACE_ALLOWED_HOSTS=outpace.example.com,*.tail.example
  • An entry is an exact host name. Case, a trailing dot and the request's port don't matter.
  • *.example.com or .example.com matches any subdomain of example.com, but not example.com itself.
  • Entries can't have a port or scheme, and there can be at most 64 of them. An invalid entry stops startup.
  • * turns the check off. Only use it when something in front of Outpace already rejects unexpected Host values.

A reverse proxy that rewrites Host to the upstream address, such as nginx's default proxy_pass http://127.0.0.1:6878, needs no entry. The proxy's public name does need one when the proxy forwards it, as Caddy and Traefik do by default and nginx does with proxy_set_header Host $host. See Deployment.

Strict mode

Single-label names and the .local, .lan, .internal, .home.arpa and .localdomain suffixes are safe only while your local DNS resolver is honest. A hostile network, such as public Wi-Fi or a compromised router, can push a DHCP search domain that turns outpace into a name it controls, or run the resolver itself and answer for those suffixes. It can then rebind those names like any public one. localhost and *.localhost are not affected, because browsers resolve them to loopback without asking DNS, and IP addresses can't be rebound.

On a laptop that joins untrusted networks, turn the implicit names off:

OUTPACE_HOST_CHECK=strict

Then only IP addresses, localhost, *.localhost and the OUTPACE_ALLOWED_HOSTS entries are answered. List any LAN or Docker names you still use, for example OUTPACE_ALLOWED_HOSTS=outpace,nas.local. The default value is default; any other value stops startup.

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.

Setting Default Accepted values Avail. Notes
OUTPACE_PREBUFFER_MS 30000 ms, 0 disables all Target 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_BYTES 134217728 (128 MiB) bytes, at least 188 all Hard cap on the startup queue. Reaching it releases playback early.
OUTPACE_PREBUFFER_TIMEOUT_MS 15000 ms, at least 1 when prebuffering is on all Longest 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_PIECES unset (automatic) pieces all How 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_BUFFER 256 messages, at least 1 all Per-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.

Setting Default Accepted values Avail. Notes
OUTPACE_REQUEST_TIMEOUT_MS 1500 ms, at least 1, below the stale timeout all How long to wait for one piece before asking another peer. Raising it turns a short hiccup into a visible gap.
OUTPACE_STALE_UPSTREAM_TIMEOUT_MS 12000 ms, at least 1 all No progress from any peer for this long rebuilds the peer pool. Don't lower it much: discovery needs this margin.
OUTPACE_REQUEST_CHECK_INTERVAL_MS 1000 ms, at least 1, no more than the request timeout all How often outstanding requests are checked.
OUTPACE_MAX_ACTIVE_UPSTREAMS 4 1–256 all Peers one stream downloads from at the same time.
OUTPACE_MAX_PARALLEL_CONNECT 12 1–1024 all Peers dialled at once while searching for upstreams.
OUTPACE_MAX_PIECE_ADVANCE 256 1–16384 all Pieces scheduled in one forward step.
OUTPACE_MAX_REASM_PIECES_AHEAD 512 at least OUTPACE_MAX_PIECE_ADVANCE, at most 65536 all Pieces accepted ahead of the playback cursor.

HLS

See HLS Output for how these interact.

Setting Default Accepted values Avail. Notes
OUTPACE_HLS_SEGMENT_DURATION_MS 5000 ms, at least 1 all Target segment length. Segments cut on the next keyframe after this time.
OUTPACE_HLS_WINDOW_SEGMENTS 8 at least 1 all Segments kept in the live playlist.
OUTPACE_HLS_STARTUP_SEGMENTS 6 0 to the window size (0 acts as 1) all Completed segments needed before the first playlist is returned. Lower it for faster HLS starts.
OUTPACE_HLS_STARTUP_TIMEOUT_MS 45000 ms, at least the segment duration all How long a playlist request waits for startup before returning 503. Also the startup deadline for audio normalisation.
OUTPACE_HLS_SEGMENT_PACKETS 65536 (about 12.3 MB) at least 3 all Memory 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.

Setting Default Accepted values Avail. Notes
OUTPACE_HLS_AUDIO_NORMALIZE false boolean all Convert AC3 or MPEG audio to AAC for live HLS only.
OUTPACE_LIVE_AUDIO_NORMALIZE false boolean all Convert once per source, before TS, HLS and support fan-out. Takes over from the HLS-only switch when both are on.
OUTPACE_FFMPEG_PATH ffmpeg path or name on PATH all The FFmpeg executable. Resolved once at startup and only used when a switch above is on.

Timeshift

Off by default. See Timeshift.

Setting Default Accepted values Avail. Notes
OUTPACE_HISTORY_SECONDS 0 (off) 0–3600 seconds all How far back viewers can rewind. Any nonzero value turns timeshift on.
OUTPACE_HISTORY_BYTES 134217728 (128 MiB) bytes, 188 up to the platform pool limit all Memory budget per source. At 8 Mbit/s, 128 MiB is about two minutes.
OUTPACE_HISTORY_TOTAL_BYTES 268435456 (256 MiB) bytes, at least OUTPACE_HISTORY_BYTES all Memory budget shared by all sources and managed-origin viewers.

Managed HLS origins

Setting Default Accepted values Avail. Notes
OUTPACE_MANAGED_HLS false boolean all Serve 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.
OUTPACE_HLS_AS_TS false boolean edge Serve such origins from /ace/getstream as one MPEG-TS body, for clients that only accept TS. Only getstream changes; it takes precedence over the relay there. The daemon then fetches public origin URLs itself. See HLS-as-TS output.

Casting

Setting Default Accepted values Avail. Notes
OUTPACE_ENABLE_CAST false boolean 1.2.0 1 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.

Setting Default Accepted values Avail. Notes
OUTPACE_BROADCAST_OPTIONS {} JSON object, at most 64 names and 262144 bytes all Per-broadcast title, bitrate, piece size, quality and categories, applied when a broadcast identity is created. From edge, also register, which opts one broadcast into catalog registration when it is created or resumed (ignored in private peer mode).
OUTPACE_BROADCAST_SOURCES {} JSON object, at most 64 names and 256 KiB all HTTP(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_REGISTER false boolean 1.3.0 Register 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. When off, broadcasts can still opt in one at a time (edge): outpace broadcast <name> --register, POST /broadcast/<name>/register or a profile's register key. Turning the flag off doesn't clear such a saved choice. See Broadcasting.
OUTPACE_ALLOW_NON_GLOBAL_BROADCAST_SOURCE off exact 1 all Let broadcast pull sources use private, loopback, CGNAT and IPv6 ULA addresses. Link-local and cloud-metadata addresses stay blocked.
OUTPACE_TRACKERS built-in public tracker comma-separated URLs, at most 64 kept all Trackers 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. From edge (not yet in a numbered release) the entries are also asked, after the built-in tracker, when this daemon or outpace play resolves a content id through OUTPACE_BEP9_CONTENT_ID_FALLBACK.
OUTPACE_SRT_BIND unset (off) numeric socket address srt build Turns on the SRT listener (UDP), for example 127.0.0.1:9000. Starting a non-SRT build with this set fails.
OUTPACE_SRT_PASSPHRASE_FILE unset absolute file path srt build Required 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_MS 120 20–2000 srt build SRT receiver latency.
OUTPACE_SRT_MAX_CONNECTIONS 4 1–16 srt build Simultaneous SRT connections, including ones still connecting or closing.

Seeding and inbound peers

See Seeding and Peers.

Setting Default Accepted values Avail. Notes
OUTPACE_ENABLE_SEEDING true boolean all Answer piece requests from peers you downloaded from.
OUTPACE_ENABLE_INBOUND true boolean all Run 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_ADOPT_INBOUND false boolean edge Offer an inbound TCP peer to the live stream it asks for, as a download source, once that stream is sending media and when the peer's live window is at or past what the stream still needs. One per stream. Peers behind it, or that the stream doesn't take, are served as usual. Needs OUTPACE_ENABLE_INBOUND. See inbound peers as download sources.
OUTPACE_MAX_INBOUND 64 integer (0 acts as 1) all Inbound connections kept open in total, including ones still handshaking. Extra connections close at once.
OUTPACE_MAX_INBOUND_PER_STREAM 16 integer, 0 = no per-stream cap all Inbound connections admitted per stream.
OUTPACE_MAX_UNCHOKED 8 integer all Peers per stream allowed to download from you at once, plus one rotating "optimistic" slot. 0 still allows the optimistic slot.
OUTPACE_SEED_TTL_SECS 300 seconds, 0 disables all Safety net that removes a stream's seeding data when nothing owns it any more. Normal teardown doesn't wait for this.

Storage and cache

Setting Default Accepted values Avail. Notes
OUTPACE_DATA_DIR platform data dir + outpace directory all Identity, broadcast state and last-known-good descriptors. Container: /var/lib/outpace. Keep it persistent and private.
OUTPACE_CACHE_TYPE memory memory or disk all Where retained pieces for seeding are kept. disk saves RAM on small machines.
OUTPACE_CACHE_DIR <data dir>/cache directory all Disk cache root, used only with disk. Wiped at startup. It may be inside the data directory, but it must not be the data directory, contain it, or sit inside <data dir>/descriptors. A cache you kept under descriptors/ must move elsewhere before you upgrade.
OUTPACE_SEED_STORE_BYTES 134217728 (128 MiB) bytes all Ceiling 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_SECS 45 seconds, 0 = byte cap only all For 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_BYTES 268435456 (256 MiB) bytes, 0 = 5% margin only 1.2.0 Free 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).

For one file of a multi-file torrent (Multi-file VOD), the check uses the pieces covering that file, minus those already cached, and runs the first time each file is selected instead of once for the whole torrent.

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.

Setting Default Accepted values Avail. Notes
OUTPACE_ENABLE_PORT_MAPPING false boolean all Ask 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_BACKEND auto auto, upnp, natpmp, none all auto tries UPnP-IGD, then NAT-PMP.
OUTPACE_PORT_MAP_EXTERNAL_PORT same as the peer port 1–65535 all External port to request. Leave unset so the announced port matches.

Outbound proxy

See Outbound Proxy.

Setting Default Accepted values Avail. Notes
OUTPACE_PROXY unset socks5://[user:password@]host:port (socks5h:// also accepted) 1.2.0 SOCKS5 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_MODE off off, on, fallback 1.2.0 on 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.

Setting Default Accepted values Avail. Notes
OUTPACE_PRIVATE_PEERS unset (public mode) comma-separated IPv4:port, at most 256 entries and 8 KiB all Any value switches on outbound-only private mode: only these peers, no trackers, no DHT, no inbound. An empty value is an error.
OUTPACE_PRIVATE_DESCRIPTORS unset JSON object {"alias":"/abs/path"}, at most 64 entries and 64 KiB all Local descriptor files playable as local:<alias>. Setting it without OUTPACE_PRIVATE_PEERS fails startup.

Discovery, trackers and resolution

Setting Default Accepted values Avail. Notes
OUTPACE_ACE_PEERS unset comma-separated IPv4:port all Extra bootstrap peers tried on every live stream. In public mode malformed entries are skipped silently; in private mode they must be in the allowlist. For a content-id lookup through OUTPACE_BEP9_CONTENT_ID_FALLBACK they are not extra: when set, only they are asked, instead of trackers and the DHT.
OUTPACE_CATALOG_HOSTS the built-in hosts comma-separated host[:port], at most 8 entries edge Catalog endpoints tried in order for content-id and infohash lookups. See Catalog hosts.
OUTPACE_BEP9_CONTENT_ID_FALLBACK false boolean all If 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. Peers come from the built-in tracker, the udp:// entries of OUTPACE_TRACKERS and the DHT, or only from OUTPACE_ACE_PEERS when that is set (only from the allowed peers in private mode). Up to four are tried at once. See Broadcasting.
OUTPACE_DESCRIPTOR_FALLBACK_ENTRIES 64 integer 0–512, 0 = off 1.4.0 How many content ids keep their last good catalog descriptor, so they still play while the catalog is unreachable. See Last-known-good descriptors.
OUTPACE_ALLOW_NON_GLOBAL_TRANSPORT off exact 1 all Allow 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_GLOBAL off exact 1 all Allow announcing to trackers on private or local addresses. For self-hosted or offline swarms.

Last-known-good descriptors

Playing a content id normally needs an answer from the AceStream catalog. From v1.4.0, after every successful lookup of a live content id, Outpace saves the descriptor (the swarm's infohash, trackers, geometry, source key and title) in <data dir>/descriptors/. If the catalog can't be reached later, for example because your network blocks its hosts or it is down after a restart, the stream starts from the saved descriptor. The swarm's peers are often still reachable when the catalog isn't.

  • The saved copy is used only when the catalog can't be reached: a timeout, a refused or failed connection, or every catalog host answering with an error status such as 503. A reply that rejects the id, including "not found", never falls back.
  • A fresh catalog answer always wins and replaces the saved copy, because live infohashes change.
  • The first start that falls back still waits for every catalog host to fail, which takes up to about 16 seconds. Starts of the same id in the next 30 seconds then use the saved copy without waiting for the catalog again.
  • Descriptors older than 30 days are dropped. When the store is full, the oldest descriptor is dropped first.
  • Only live swarm descriptors are kept. HLS origin links are signed for each playback and are never saved, and VOD files aren't included.
  • A descriptor served from the saved copy isn't used to make its infohash playable on its own (ih:). Only fresh catalog answers do that.
  • The default of 64 covers a typical channel list in about 64 KiB of disk. Each entry is limited to 8 KiB, so the file stays at about 4 MiB or less even at the 512 maximum. Set 0 to turn the fallback off. Private peer mode never uses it. With OUTPACE_BEP9_CONTENT_ID_FALLBACK on, a saved descriptor is tried before asking peers.
  • The file is private to the daemon user (0600 in a 0700 directory). Outpace ignores it if it is malformed, a symlink, or readable by others. A malformed file is replaced after the next successful lookup. If another Outpace process (such as outpace play) holds the store, descriptors are kept in memory and the store is opened again on a later save. On Windows the descriptors are kept in memory only, so the fallback works only until the daemon restarts.

The log shows [resolve] catalog unreachable; using the last-known-good descriptor stored <N>m ago each time a saved descriptor is used.

Catalog hosts

Outpace looks up content IDs and infohashes in the signed AceStream catalog. By default, it tries four built-in catalog hosts in a fixed order. If your network can't reach them, set OUTPACE_CATALOG_HOSTS (edge) to your own list, tried in the order given:

OUTPACE_CATALOG_HOSTS=catalog.example.net:80,192.0.2.10,[2001:db8::10]:8081
  • Each entry is an ASCII DNS name, an IPv4 address or an IPv6 address, with an optional port. The default port is 8081, as used by the built-in hosts. To specify an IPv6 port, enclose the address in brackets. For example, 2001:db8::10 uses 8081 and [2001:db8::10]:8082 uses 8082.
  • Spaces around entries are ignored. An empty value, an empty entry, a malformed name or address, a port outside 1 to 65535, or more than 8 entries fails startup. The error names the entry number and the rule it broke, not the value.
  • The list replaces the built-in hosts rather than adding to them.
  • Every endpoint must serve the AceStream catalog protocol. A lookup tries the next host after a connection failure, timeout or rejected catalog reply. The first reply that passes the signature, nonce and checksum checks supplies the descriptor. Outpace then decodes it and, for an infohash lookup, checks that it matches the requested infohash. A mismatch fails the lookup.
  • Each host gets at most 4 seconds and the whole lookup at most 16 seconds, so later hosts may be skipped. The [catalog] lookup failed on every host: log line gives the reason for each failed attempt and the number of hosts skipped.
  • The system resolver resolves names, or the proxy resolves them while OUTPACE_PROXY is in use. Resolved addresses share the host's timeout, so a slow connection attempt may use the time available to subsequent addresses.
  • The daemon and outpace play both read the list, and their startup log shows the number of configured hosts. Private peer mode skips the list because it never contacts the catalog.
  • The first custom list installed at startup applies to the whole process. Restart Outpace to change or remove it. When embedding Outpace, later runtime instances share that list, even if created with the default configuration.
  • Stream search and broadcast catalog registration use other services and ignore it.
  • If every host fails, an HTTP 200 response that fails catalog reply validation counts as a rejection and prevents last-known-good descriptor fallback.

Limits and admission

Setting Default Accepted values Avail. Notes
OUTPACE_MAX_SESSIONS 0 (unlimited) non-negative integer all Cap 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

Setting Default Accepted values Avail. Notes
OUTPACE_SUPPORT_SOURCES unset (off) JSON object {"name":"selector"}, at most 8 entries and 64 KiB all Live streams to keep running and seeding with no viewer. Requires inbound serving and seeding. See Support Sources and Operations.

AceStream compatibility API

Setting Default Accepted values Avail. Notes
OUTPACE_ACE_COMPAT true boolean all Serves /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_COMPAT unset boolean all Deprecated 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

Setting Default Accepted values Avail. Notes
OUTPACE_COMPAT_ACESTREAM_SERVICES false boolean all Enables /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.

Setting Default Accepted values Avail. Notes
OUTPACE_ACESTREAM_IDENTITY false boolean 1.1.0 1 or true installs the profile for the process.
OUTPACE_ACESTREAM_IDENTITY_VERSION 3.2.11 X.Y.Z 1.1.0 Search, catalog, handshake and the User-Agent use this version. The numeric code is X*1000000 + Y*10000 + Z*100.
OUTPACE_ACESTREAM_IDENTITY_PLATFORM linux linux 1.1.0 Any other value is rejected.
OUTPACE_ACESTREAM_IDENTITY_DEVICE_ID random, persisted 40 hex digits 1.1.0 Stable id for search and the UPnP label. Stored in the data directory when unset.
OUTPACE_ACESTREAM_IDENTITY_HARDWARE_KEY derived from this host 40 hex digits 1.1.0 Linux default comes from the machine's memory size. Hosts without /proc/meminfo must set it.
OUTPACE_ACESTREAM_IDENTITY_ASN looked up integer, optional AS prefix 1.1.0 Set both this and the country to skip the lookup. Setting only one is an error.
OUTPACE_ACESTREAM_IDENTITY_COUNTRY looked up two letters 1.1.0 ISO 3166 alpha-2. Paired with the ASN.
OUTPACE_ACESTREAM_IDENTITY_USER_AGENT engine UA for the version printable ASCII, at most 256 characters 1.1.0 Sent to search and AceStream web hosts. Catalog requests keep a per-request Chrome User-Agent.

Diagnostics

Setting Default Notes
OUTPACE_METRICS false 1 or true serves Prometheus text metrics at GET /metrics on the HTTP bind. See Support sources and operations.
OUTPACE_SEED_DEBUG unset Any 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:

Variable Default Meaning
OUTPACE_IMAGE ghcr.io/outpace-stream/outpace-engine:latest Image to run. Pin a release tag.
OUTPACE_HTTP_HOST 127.0.0.1 Host address the HTTP port is published on.
OUTPACE_HTTP_PORT 6878 Host port for HTTP.
OUTPACE_RTMP_HOST 127.0.0.1 Host address the RTMP port is published on.
OUTPACE_RTMP_PORT 1935 Host 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, OUTPACE_COMPAT_ACESTREAM_SERVICES, OUTPACE_ALLOWED_HOSTS and OUTPACE_HOST_CHECK. 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.

Clone this wiki locally