The /api/v3/config
endpoints allow you to inspect, modify, and reload the configuration of the datarhei Core.
Retrieve the currently active Core configuration with additionally a list of all fields that have an override by an environment variable. Such fields can be changed, but it will have no effect because the enviroment variable will always override the value.
Example:
The actual config is in config.Config
which is an interface{}
type. Depending on the returned version, you have to cast it to the corresponding type in order to access the fields in the config:
Description:
Upload a modified configuration. You can provide a partial configuration with only the fields you want to change. The minimal valid configuration you have to provide contains the version number:
Example:
This has no effect until the configuration is reloaded.
Description:
After changing the configuration, the datarhei Core has to be restarted in order to reload the changed configuration.
Example:
Configuration reload will restart the Core! The in-memory file system and sessions will remain intact.
Description:
Complete config example:
Required fields: version
Retrieve the currently active Restreamer configuration
OK
seconds
seconds
Update the current Restreamer configuration by providing a complete or partial configuration. Fields that are not provided will not be changed.
Restreamer configuration
seconds
seconds
OK
Reload the currently active configuration. This will trigger a restart of the Core.
OK