Genetec Mission Control™ Web API configuration parameters - Genetec Mission Control™ 2.13.3.0

Genetec Mission Control™ Deployment Guide 2.13.3.0

series
Genetec Mission Control™ 2.13.3.0
revised_modified
2020-07-15

You can use the configuration parameters in appSettings.json to control the Web API behavior.

The appSettings.json file stores the configuration of the Web API. It is found in the Web API installation folder, at C:\Program Files (x86)\Genetec\Genetec Mission Control Web API\ by default.

The following table lists the configuration parameters:

Parameter Description
Serilog Top-level parameter of the Web API logging configuration. Serilog is a .NET library that captures diagnostic information using log sinks. The following log sinks are integrated with the Web API and are enabled by default:
serilog-sinks-file
Writes log events to a text or JSON file.
serilog-sinks-eventlog
Writes log events to the Windows Event Log.

For more information on configuring Serilog, see the descriptions of serilog-sinks-file and serilog-sinks-eventlog on GitHub.

AllowedHosts Semicolon-separated list of host headers that are allowed to connect to the Web API. If the local server uses virtual hosting, use this list to specify which hosts accept connections to the Web API. By default, an asterisk (*) is used to specify all virtual hosts.

See the Microsoft documentation for allowed values and more information.

Port Sets the listening port for the Web API. By default, port 9550 is used.
EnableWebDocumentation Enables access to developer documentation for the Web API. By default, false is used to ensure that the developer documentation is only enabled when needed.
AllowedOrigins Enables cross-origin requests (CORS) to the Web API. It is a whitelist of domains that can access the Web API from a browser. For example:

"AllowedOrigins": [ "https://genetec.com", "https://www.genetec.com" ]

For more information, refer to Microsoft documentation on how CORS works .