Configuration

Location

You have to provide the location of the config file by setting the environment variable CORE_CONFIGFILE to path to the config file. Example:

export CORE_CONFIGFILE=./config/config.json

The config file is written in JSON format.

circle-check
circle-check
circle-exclamation

A minimal valid config file must contain at least the config version:

{
    "version": 3
}

Configuration

Configuration values can be changed by either editing the config file directly, or via the JSON API (API for short) or via environment variables (ENV for short). All environment variables have the prefix CORE_ followed by the JSON names in uppercase. Example:

Following, every field of the configuration file will be described in detail:

id (string)

ID of the Core. If not set, a UUIDv4 will be generated. Default: unset

name (string)

Human-readable name of the Core. If not set a custom name will be generated. Default: unset

address (string)

HTTP listening address. Default: :8080

circle-info

The default :8080 will listen on all interfaces on port 8080. To use a specific interface, write additionally it's IP, e.g. 127.0.0.1:8080 to only listen on the loopback interface.

log

Log settings.

Loggingchevron-right

db

Database (processes, metadata, ...) endpoint.

Databasechevron-right

host

Configuration to detect or set the host-/domainname.

Hostnamechevron-right

api

API Security options.

API Securitychevron-right

tls

TLS/HTTPS settings (also required for RTMPS).

TLS / HTTPSchevron-right

storage

General configuration, DiskFS, MemFS, and S3.

Storagechevron-right

rtmp

RTMP server for publishing and playing streams.

RTMPchevron-right

srt

SRT server for publishing and playing streams.

SRTchevron-right

ffmpeg

General FFmpeg settings.

FFmpegchevron-right

session

HLS-/MPEG-DASH session management and bandwidth limitations.

Sessionschevron-right

metrics

General metrics settings.

Metricschevron-right

route

HTTP/S route configuration (e.g., to inject UI's).

Routerchevron-right

debug

Core / Golang debugging options.

Debugchevron-right

update_check (bool)

All about datarhei Update-Checks and data tracking.

Check for updates and send anonymized data (default: false). Requires service.url.

circle-check

service.url (string)

URL for the update_check Service API. Default: https://service.datarhei.com

About anonymizied data:

We receive: id, os architecture, uptime, process stats (total: running, failed, killed), viewer count

The data is used exclusively for the further development of the products and error detection. Domains/IP addresses, companies, and persons remain anonymous.

Last updated

Was this helpful?