Post Upgrade Configurations for 12.2.4
Perform the following configuratons after upgrading to 12.2.4:
Procedure
-
From the base version Backup directory, restore the following files:
- <Installation Root Path>\DiscoverCaptureSocket.cfg
- <Installation Root Path>\DCMaint.cfg
- <Installation Root Path>\HBR_PipeLine-base.cfg
- <Installation Root Path>\Beats\filebeat\filebeat.yml
- <Installation Root Path>\Beats\winlogbeat\winlogbeat.yml
- <Installation Root Path>\Portal\WebApp\Web.config
- <Installation Root Path>\Portal\WebService\Web.config
- Navigate to <Discover_Installed_Dir>\Portal\WebApp directory.
-
In Web.config file, under AppSettings
section,
- Navigate to <Discover_Installed dir>\Portal\api\PortalConfig\ directory.
-
In appsettings.json file, under
Admin: section, replace {{localhost}} with Portal
server IP with the following lines:
"prodUrl": "https://{{localhost}}/PortalAPI/api/", "prodV1Url": "https://{{localhost}}/PortalV1/",Note: Only HTTPS URLs will work. -
If you want to use NT authentication, in the same same
appsettings.json file, under
AuthenticationSchemes: within the
AuthConfig: section, add the following lines:
"NT": { "Name": "NT", "Enabled": false } - Restart all services of Portal/Report server.
What to do next
Removing SyncFusion Configurations
Procedure
- Access the file web.config from the <Installation Root Path>\Portal\WebApp location.
-
Within the root
<configuration>, make the following changes:
Blocking Host Header Injection
About this task
To avoid Host Header Injection, complete the following steps:
Procedure
- Download and install the URL rewrite module from the Microsoft website.
- Access the web.config file from the <discover installed directory>\Portal\web\ location.
-
In the
<system.webServer>within the<configuration>section, add the following code:<rewrite> <rules> <rule name="Block Host Header Injection" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^(comp-4614-1\.discover\.com)$" negate="true" /> </conditions> <action type="AbortRequest" /> </rule> </rules> </rewrite>In case of multiple domains use
|as the separator. Example:127\.0\.0\.1|<hostname>\.discover\.comSome examples for configuring domains are as follows:
11\.111\.123\.12|localhost|127\.0\.0\.1|<hostname>\.discover\.com - Save the changes.
- Restart the Application Server.
Enabling or Disabling REST API Access
About this task
Procedure
- Navigate to the <discover installed directory>\Portal\api\ location.
- Open the appsettings.json file.
-
Go to the
Swaggersection of the code. -
Configure the value of the
Enabledparameter to:- true - to enable access to REST API.
- false - to block access to REST API.
- After configuring the value, restart the IIS server.