Information
-
Here you will find a description of the PLANTA Web Client configuration.
Basics
Information
-
There are several ways to apply configurations. Below, all options are listed from lowest to highest priority.
-
If a variable has been defined at more than one position, the position with the highest priority will be used:
-
appsettings.json: Main (default) configuration, changes are not recommended -
appsettings.[Environment].json: environmental specific (e.g. production) configuration -
Environment Variables
-
Command line parameter
-
Define parameters outside the JSON format
Information
-
You have to use a particular format for conversion variables and command line parameters:
Define parameters within a block
|
JSON: |
Commanfd line: |
|
JavaScript
|
|
Define parameters within an array
|
JSON: |
Overwrite ServerB port in the command line: |
|
JavaScript
|
|
Parameter
Information
-
The following parameters can be used to configure the Web Client.
Connection Settings
Information
-
Parameters which define the server start and the communication with the PLANTA Server.
-
Must be defined within a
ConnectionSettingsblock.
|
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
|
int |
6 |
Zlib compression level, number between 0 and 9. Will be ignored if |
|
|
string |
de-DE |
Culture Code which is used by the application. Depends on the host operating system. A list of culture codes can be found online as well. |
|
|
string |
null |
|
|
|
int |
60 |
Time interval between keepalive signals sent to the PLANTA Server in seconds |
|
|
int |
5 |
Request timeout for routing requests to PLANTA link |
|
|
string |
null |
The PLANTA link webhook which is required for routing |
|
|
int |
1440 |
Time in minutes for which the web server saves panel information when the user has interrupted the connection or left the page |
|
|
string |
null |
|
|
|
int |
7200 |
Time in minutes for which the web server saves session information when the user has interrupted the connection or left the page |
|
|
array |
null |
List of the PLANTA Server must at least contain one entry. Further information |
|
|
bool |
true |
Defines whether communication with the PLANTA Server is to be compressed |
|
|
string |
null |
|
|
|
bool |
false |
Defines whether SSL is to be activated for communication with the PLANTA Server |
Settings of the Servers parameter
|
Parameter |
Type |
Description |
|---|---|---|
|
|
string |
server host name |
|
|
int |
server port |
AI Settings
|
Parameter |
Type |
Description |
|---|---|---|
|
ChatHost |
string |
URL of the AI assistant chat. |
Authentication Settings
Information
-
Parameters which are used to configure whether and how the reverse proxy informs us about the authenticated user. This requires the use of PLANTA secure.
-
Must be defined within a
AuthenticationSettingsblock.
|
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
|
bool |
false |
If this option is activated, the Web Client sends a message to the server during session initialization which informs him/her about the pre-authentication and the corresponding user code. |
|
|
string |
plain |
The format in which the value is provided. So far, only the "plain" format has been implemented, which passes the header value to the server. |
|
|
string |
x-forwarded-user |
The name of the HTTP header field which contains the user ID authenticated by the reverse proxy. |
|
|
string |
/ |
The web base path that the reverse proxy uses for the Web Client, e.g. if the Web Client can be accessed on the reverse proxy under http://www.example.com/webclient, the base path will be /webclient. |
|
|
string |
|
Logout route which is opened when the user wants to terminate his/her session on the reverse proxy. |
WebAPI Authentication Settings
|
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
|
string |
APIKEY |
API key which is used to access the web API end points |
Adaptive Card Settings
Signature settings
|
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
|
string |
|
XML formatted private RSA key for signing Adaptive Cards |
Upload Settings
Information
-
Parameters which define the behavior in file uiploads.
-
Must be defined within a
FileUploadSettingsblock.
|
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
|
int |
6 |
Zlib compression level, number between 0 and 9. Will be ignored if |
|
|
string |
.doc, .docx, .xls, .txt |
File endings which can be uploaded |
|
|
int |
2000000 |
Maximum size of files in kB |
|
|
int |
100000 |
If a number > 0 is defined, the file will be uploaded in chunks according to the specified size. If 0 is defined, the file will be iploaded in a request. |
|
|
string |
. |
Path under which the files are temporarily saved during upload |
Message Dumper Settings
Information
-
Message Dumper saves the communication with PLANTA Server: one xml file per session.
-
The parameters must be defined within a
MessageDumperSettingblock.
|
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
|
bool |
true |
Activate Message Dump feature |
|
|
string |
.\Logs\Dump |
Path under which message dump files are saved |
Logging Settings
Information
-
The PLANTA Web Client uses Serilog for logging.
-
Serilog uses so-called "Sinks” for showing logs. The Web Client currently supports the following sinks:
-
Console
-
File
-
Change Host URL
Information
-
ASP.Net Core applications use ports 5000 (http) and 5001 (https) by default.
-
With the
Urlsparameter it can be overwritten as follows:
|
JSON: |
Commanfd line: |
|
JavaScript
|
|