Using the Configuration.json File

The CygNet Thin Web Client uses a Configuration.json file to store important key-value pairs used by the TWC application. Some values are built into the product and others are assigned when the TWC is first installed. The Configuration.json file is found in the C:\CygNetTWC\Config folder on the host where TWC is installed.

configuration.json Attributes

The following table describes the keys and values found in the configuration.json file.

Key Default Value Description

"Domain":

<DomainID>,

The CygNet Domain ID, specified during installation.

"ACS":

"<CYGNET>.ACS",

The CygNet Access Control Service (ACS), specified during installation.

"PublishPath":

"C:\\CygNetTWC\\TWC.Service.Server\\",

The path to the TWC web service server files.

"PublishingWorkingFolder":

"C:\\CygNetTWC\\TWC.PublishingService.WorkingFolder",

The path to the TWC publishing service working folder.

"ClientZipPath":

"C:\\CygNetTWC\\TWC.PublishingService.Server\\Collected-TWC.Service.Client.zip",

The path to the TWC publishing service server Collected-TWC.Service.Client.zip file.

"PackagesZipPath":

"C:\\CygNetTWC\\TWC.PublishingService.Server\\Collected-Packages.zip",

The path to the TWC publishing service server Collected-Packages.zip file, a compressed file containing various software packages, which are used to compile an application during the publishing process.

See Updating the Collected-Packages .zip File for more information.

"CertificateSubject":

"CN=www.service.twc",

The name of the SSL certificate subjects, specified during installation.

"PublishedScreenListPath":

"C:\\CygNetTWC\\TWC.PublishingService.WorkingFolder\\PublishedScreens.json",

The name of the .json file in the TWC publishing service working folder specifying all published screens.

"RefreshInterval":

"5",

The frequency, in seconds, each server metric is reported to CygNet. The default is every 5 seconds.

See Monitoring the Performance of your TWC Servers for more information.

"MetricsSiteService":

"<CYGNET>.UIS",

The name of the UIS where the metrics are written, specified during installation. Usually this is the same site as the ACS.

See Monitoring the Performance of your TWC Servers for more information.

"MetricsFacilityId":

"AAA",

The name of the facility to which all server metrics are assigned. All server metrics, regardless of their source, will be associated with this facility ID.
By default, the facility ID is "AAA", so it appears at the top of the list in the FAC pane in CygNet Explorer, but you can rename the facility to whatever you like.

See Monitoring the Performance of your TWC Servers for more information.

"TWC.PublishingService.Server.HttpPort":

7300,

The unsecure port number of the TWC publishing service server.

"TWC.PublishingService.Server.HttpsPort":

7301,

The secure port number of the TWC publishing service server.

"TWC.Service.Server.HttpPort":

5000,

The unsecure port number of the TWC web service server.

"TWC.Service.Server.HttpsPort":

5001,

The secure port number of the TWC web service server.

"SystemAccessEvent":

"TWC+ACCESS"

The system access security application and event in the CygNet ACS. See Thin Web Client Security for more information.

Attribute Notes

Editing notes:

The following notes apply to attributes in the configuration.json file.

Change Port Numbers

The port numbers where the TWC services run are configurable.

  1. Edit the configuration.json file in a text edit and change the port numbers assigned to the servers, as necessary.
  2. Restart the affected server(s).