Appsettings.json File
Access to some configuration options after you have installed the AnyCAGateway REST are available in the appsettings.json file.
To update the appsettings.json file:
-
Navigate to the install directory, by default at:
C:\Program Files\Keyfactor\Keyfactor AnyCA Gateway\AnyGatewayREST\net8.0\Configuration - Open the appsettings.json file in a text editor such as Notepad and adjust the values as needed.
-
Save the file.
Copy
{
"Cache": {
"CertificateValidationCacheExpirationMinutes": 10,
"CAConfigurationCacheExpirationMinutes": 10,
"RoleClaimsCacheExpirationMinutes": 10
},
"Kestrel": {
"Certificates": {
"Default": {
"Path": "C:\\Program Files\\Keyfactor\\Keyfactor AnyCA Gateway\\AnyGatewayREST\\net8.0\\configuration\\Gatewaythcms.pfx"
}
},
"Endpoints": {
"HttpsCC": {
"Url": "https://*:8443"
}
}
},
"ExtensionsDirectory": "Extensions",
"Authentication": {
"SessionExpirationMinutes": 60,
"CookieExpirationMinutes": 5,
"DefaultIdentityProviderAuthScheme": "Keycloak",
"UseOAuth": "true"
},
"AllowedHosts": "*",
"CheckClientCertCRL": "True",
"LockTimeoutMilliseconds": 5000,
"LockHeartbeatIntervalMilliseconds": 60000,
"LockHoldTimeoutMilliseconds": 900000,
"NLogConfigFile": "configuration/nlog.config",
"BasePath": "AnyGatewayREST"
}
Table 959: Appsettings.json File Settings
Setting | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Allowed Hosts |
A Microsoft setting for host filtering. For more information, see: |
||||||||||
BasePath | For IIS hosting, this parameter is required. It should match the virtual directory per your installation (see IIS Hosting). When using OAuth, the SSL settings for the application should be set to Ignore client certificates. | ||||||||||
Authentication |
|
||||||||||
Cache | |||||||||||
Check Client Cert CRL | A Boolean that indicates whether the CRL will be checked against the client authentication certificate that authenticated to the portal true/false (see Login Claim for Client Certificate Authentication). | ||||||||||
Extension Directory |
The name of the directory where third-party integration artifacts will be installed. This defaults to Extensions, installed by default at: C:\Program Files\Keyfactor\Keyfactor AnyCA Gateway\AnyGatewayREST\net8.0\Extensions
|
||||||||||
Kestrel> Certificates > Default > Path | A string identifying the path to the local server authentication certificate. See -Server Certificate Path. | ||||||||||
Kestrel > Endpoints > HttpsCC > Url | A string identifying the URL, with the port number referenced by the -ServerPort parameter, assigned to this instance of the AnyCAGateway REST implementation. See -Server Port. | ||||||||||
Lock Timeout Milliseconds |
In the case of a High Availability implementation, the three Lock settings will set the lockout intervals (in milliseconds) during CA sync so multiple CA syncs are not running at the same time. It is unlikely these would need to be modified. The default for this is 5000 milliseconds. |
||||||||||
Lock Hold Timeout Milliseconds | The default for this is 900000 milliseconds. | ||||||||||
The default for this is 60000 milliseconds. | |||||||||||
NLog Config File | Optional. A string overriding the default location of the nlog.config file. |