Configuration
Server
Server can be configured with the following parameters using command-line arguments or environment variables.
Port
The network port Server binds to for the API and UI.
| Command-Line Argument | Environment Variable | Default Value | Possible Values |
|---|---|---|---|
--port | SW_SERVER_PORT | 9091 | Any valid port number |
Media Storage Root
The root folder on-disk under which recordings are stored.
| Command-Line Argument | Environment Variable | Default Value | Possible Values |
|---|---|---|---|
--default-media-storage-root | SW_SERVER_DEFAULT_MEDIA_STORAGE_ROOT | %APPDATA%\Second Wave Holdings Pty Ltd\Server\media | Any valid path |
Local IP
The externally accessible IP of the machine Server is running on. While the default case will try and get this from the OS APIs, there are cases where that fails (e.g. networks without DHCP) and in those cases this configuration is required.
Specifying the local IP can also be used to select the network interface that should be used for streaming when there are multiple valid NICs on a machine.
| Command-Line Argument | Environment Variable | Default Value | Possible Values |
|---|---|---|---|
--local-ip | SW_SERVER_LOCAL_IP | The machine's IP as retrived from OS APIs. | Any valid IPv4 address |
Streaming Ports
Limit the port range used for live-streaming.
| Command-Line Argument | Environment Variable | Default Value | Possible Values |
|---|---|---|---|
--streaming-min-port | SW_SERVER_STREAMING_MIN_PORT | 49152 | Any valid port number |
--streaming-max-port | SW_SERVER_STREAMING_MAX_PORT | 65535 | Any valid port number |
Log Level
The level of detail in the log output.
| Command-Line Argument | Environment Variable | Default Value | Possible Values |
|---|---|---|---|
--log-level | SW_SERVER_LOG_LEVEL | info | error, warn, info, debug, trace |
Streamer
Streamer can be configured with the following parameters using command-line arguments or environment variables.
Server URL
The network address for Server.
| Command-Line Argument | Environment Variable | Default Value | Possible Values |
|---|---|---|---|
--server-url | SW_STREAMER_SERVER_URL | http://localhost:9091 | Any valid URL |
Application Identifier
A unique identifier used to manage this Streamer in Server.
The Application Identifier should remain consistent. Changing it will cause Server to register a new Streamer.
| Command-Line Argument | Environment Variable | Default Value | Possible Values |
|---|---|---|---|
--application-id | SW_STREAMER_APPLICATION_ID | hostname | Any combination of letters and numbers |
Display Name
The name shown in the Server UI for this Streamer.
| Command-Line Argument | Environment Variable | Default Value | Possible Values |
|---|---|---|---|
--display-name | SW_STREAMER_DISPLAY_NAME | hostname | Any combination of letters and numbers |
Streaming Ports
Limit the port range used for live-streaming.
| Command-Line Argument | Environment Variable | Default Value | Possible Values |
|---|---|---|---|
--streaming-min-port | SW_SERVER_STREAMING_MIN_PORT | 49152 | Any valid port number |
--streaming-max-port | SW_SERVER_STREAMING_MAX_PORT | 65535 | Any valid port number |
Log Level
The level of detail in the log output.
| Command-Line Argument | Environment Variable | Default Value | Possible Values |
|---|---|---|---|
--log-level | SW_STREAMER_LOG_LEVEL | info | error, warn, info, debug, trace |