This page lists all appsettings.json settings available for Control Center BL (Web API).
The appsettings.json file is located in the folder <AMT Environment>\AmtTools\ControlCenterWebApi\
The appsettings file is divided into the following sections.
| Section | Description |
|---|---|
| AMT | The main section where most settings are located. |
| Logging | The section for the logging settings for the web application. |
| AllowedHosts | Settings that restrict which hosts can access the web application. |
The authentication type used to validate tokens received from the Control Center. The only valid option is "JWT" (JSON Web Token).
"AuthenticationType": "JWT",The 'JWT' section contains settings needed to validate tokens received from the Control Center.
preferred_username is used as claim type."JWT": {
"Authority": "https://login.example.org/amt-applications/v2/auth",
"Audience": "amt-controlcenter-api",
"TokenValidationParameters": {
"NameClaimType": "preferred_username"
},
"RequireHttpsMetadata": true
}Sets the logging levels for the various ASP.NET Core components of the web application. These settings do not need to be adjusted in a normal situation.
The allowed log levels are, from most to least detailed: Trace, Debug, Information, Warning, Error, Critical and None.
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
}
},In the AllowedHosts section, access to the web application can be restricted to specific hostnames.
The value is a semicolon-delimited list of host names without port numbers.
By default, all hostnames are allowed by the asterisk (*) wildcard.
Disallowed users receive an HTTP 400 error code (Bad Request).
"AllowedHosts": "*",