Skip to main content
Version: 2027 R1

appsettings.json file configuration

The appsettings.json file contains the runtime settings of the WEBCON Portal and the WebCon WorkFlow Service (hereinafter: the Service). Among other things, it defines the connection to the configuration database, how logs are written, telemetry, web server limits, and how headers forwarded by proxy servers are handled.

This guide describes the structure of the file, the differences between the Portal and Service configuration, the meaning of each section and parameter, and what to do when the application does not start after a configuration change. The extensive Serilog and OpenTelemetry sections are described on separate pages.

WEBCON SaaS

This guide applies to on-premises installations. In WEBCON SaaS environments, customers do not have access to the appsettings.json file – the settings are changed by WEBCON. Logs, e.g. in the logs database, are available to the customer, and on request, sending logs to a selected tool can be arranged with WEBCON.

Do not edit the appsettings.json file

The appsettings.json file is a template supplied with the platform and is overwritten during every WEBCON update. All changes made to it will be lost without warning.

Enter your own settings only in the appsettings.Production.json file, located in the same directory. This file is not overwritten during updates, and the values stored in it take precedence over the values in appsettings.json.

Common tasks​

What you want to doWhere to find the description
Change the connection to the configuration database or the log databaseConnectionStrings
Increase log detail for a selected area of the systemLogging areas (loggers)
Write logs to a file or to the Windows Event LogSerilog section configuration
Run the Portal behind a proxy server or on several servers behind a load balancerSecurity and DataProtection
Allow larger attachments to be uploadedKestrel
Connect monitoring tools (e.g. Grafana, Seq, Prometheus, Azure Application Insights)OpenTelemetry section configuration
Apply the changes you madeHow to apply changes
Find out why the Portal or the Service does not start after a changeTroubleshooting

Other sections of the file usually do not need to be changed – they are described for completeness.

What you will learn from this guide​

  • how the appsettings.json and appsettings.Production.json files work together,
  • how the Portal and Service configuration differ and how to apply changes,
  • what a complete configuration looks like for the Portal and for the Service,
  • what each section of the file is used for, including sections that are not present in the default file,
  • what values individual parameters accept and how they affect the application,
  • where to look for the cause when the Portal or the Service does not start after changes — see Troubleshooting.

Configuration files and their loading order​

The Portal and Service installation directories contain two files:

FileRoleOverwritten during update
appsettings.jsonTemplate with default values for all sections.Yes
appsettings.Production.jsonEnvironment-specific settings, e.g. the database connection string and additional log destinations. The file is created by the installer — both during a new installation and during an update from an earlier version.No

As of version 2026 R1, the appsettings.Production.json file replaces the previously used appsettings.user.json file. During an update from an earlier version, the installer moves the settings from the appsettings.user.json, otlpsettings.json, and webdavsettings.json files to the appsettings.Production.json and modulesettings.portal.Production.json files. The previous files remain in the directory with old added to their names (e.g. appsettings.user.old.json) — you can use them to look up the previous configuration.

modulesettings files

In addition to the appsettings files, the installation directories contain modulesettings.*.json files (e.g. modulesettings.portal.json, modulesettings.modulesOrchestration.json) with the configuration of individual modules. They work on the same principle — changes are made in the corresponding modulesettings.*.Production.json file. These files are not described in this guide.

At startup, the application first loads appsettings.json and then applies the contents of appsettings.Production.json on top of it. The following rules apply:

  • Sections are merged, not replaced. In appsettings.Production.json, specify only the parameters you are changing. The remaining parameters of a given section keep their values from appsettings.json.
  • A value specified in appsettings.Production.json takes precedence over the value at the same path in appsettings.json.
  • Arrays (lists in [ ] brackets) are merged by position, not replaced as a whole. Item 1 in appsettings.Production.json replaces item 1 in appsettings.json, and so on. If the list in appsettings.Production.json is shorter, the remaining items from the template still apply. Therefore, when changing a list (e.g. Serilog.Using), specify it in full, in the order used in the template, and add new items at the end.
  • Parameter names are case-insensitive, but a typo in a name causes the parameter to be silently ignored — the application will start with the default value.
Backup

Back up the appsettings.Production.json file before every change. If the application does not start after the change, restoring the backup lets you quickly return to a working configuration.

Environment variables

A parameter value can also be overridden with an environment variable whose name corresponds to the parameter path, with a double underscore __ as the separator, e.g. Serilog__MinimumLevel__Default for the Serilog.MinimumLevel.Default parameter. An environment variable takes precedence over the values from both files.

Do not change the environment name

The application runs in the Production environment and therefore reads the appsettings.Production.json file. Do not set the ASPNETCORE_ENVIRONMENT or DOTNET_ENVIRONMENT variables to a different value – the application would then read a different file, and a value such as Development may prevent the Portal from starting.

Portal and Service — differences​

The Portal and the Service use the same appsettings.json template — in the current version, both files are identical. The differences result from how the two applications are run and from the contents of appsettings.Production.json.

PortalService
File locationRoot directory of the Portal installation — the physical path of the Portal site in Internet Information Services (IIS) Manager.Service installation directory — the directory of the executable specified in the Path to executable field in the service properties (services.msc).
HostingSite in IIS, within the Portal application pool. IIS starts the WebCon.WorkFlow.Bootstrapper.exe process and forwards user requests to it.Windows service. The WebCon.WorkFlow.Bootstrapper.exe process starts first and then starts the remaining Service modules. The Service is fully started only after all modules have been activated.
Identity used to connect to SQL Server (with Integrated Security=True)The application pool identity in IIS.The account the service runs as.
Applying changesRecycling the Portal application pool in IIS.Restarting the WebCon WorkFlow Service.
ServiceNameUsually the default value WebCon.WorkFlow.Usually WebCon.WorkFlow.Service, to distinguish Service data from Portal data in monitoring tools.
Kestrel (endpoints, certificates, request limits)Applicable — defines the port on which the Portal process accepts requests forwarded by IIS and, among other things, the maximum size of uploaded data.Optional — makes it possible to assign a fixed port to the Service WebCon.WorkFlow.Bootstrapper.exe process. By default, the port is not specified.
Security.ForwardedHeaders, AllowedHostsApplicable when the Portal runs behind a proxy server or load balancer.They work the same way as in the Portal, but usually do not need to be configured.
Log export via OpenTelemetry (OpenTelemetry.Logs)Supported.Not supported.

How to apply changes​

Changes to configuration files are loaded only at application startup.

Portal — recycle the Portal application pool:

  1. Open Internet Information Services (IIS) Manager.
  2. Expand the server node and select Application Pools.
  3. Select the Portal application pool and click Recycle in the Actions pane.

Alternatively, in PowerShell run as administrator:

Import-Module WebAdministration
Restart-WebAppPool -Name "<Portal application pool name>"

Service — restart the WebCon WorkFlow Service in the Services console (services.msc) or in PowerShell run as administrator:

# Find the service name
Get-Service *WebCon*

Restart-Service -Name "<service name>"
caution

Recycling the application pool interrupts current Portal user requests, and restarting the Service pauses background task processing. Make changes during a maintenance window.

After applying the changes, verify that the application started correctly — see Where to find logs.

Complete configuration example​

The examples below show complete appsettings.Production.json files. They contain only the parameters that are usually changed relative to the template — the remaining settings are inherited from appsettings.json. Replace the values in < > brackets with data from your environment.

Portal​

{
"ConnectionStrings": {
"ConfigDb": "Data Source=<SQL server>;Initial Catalog=<configuration database>;Integrated Security=True;TrustServerCertificate=True",
"LogsDb": "Data Source=<SQL server>;Initial Catalog=<configuration database>;Integrated Security=True;TrustServerCertificate=True"
},
"Serilog": {
"Using": [
"Serilog.Sinks.Console",
"Serilog.Sinks.MSSqlServer",
"Serilog.Sinks.File",
"Serilog.Enrichers.ClientInfo",
"Serilog.Sinks.EventLog"
],
"WriteTo": {
"EventLogSink": {
"Name": "EventLog",
"Args": {
"logName": "WebCon WorkFlow",
"source": "WorkFlow"
}
}
}
},
"Kestrel": {
"Limits": {
"MaxRequestBodySize": 268435456
}
},
"Security": {
"ForwardedHeaders": {
"KnownProxies": [ "<proxy server IP address>" ]
}
},
"AllowedHosts": "<Portal address, e.g. bps.company.com>"
}

Service​

{
"ServiceName": "WebCon.WorkFlow.Service",
"ConnectionStrings": {
"ConfigDb": "Data Source=<SQL server>;Initial Catalog=<configuration database>;User ID=<SQL login>;Password=<password>;TrustServerCertificate=True",
"LogsDb": "Data Source=<SQL server>;Initial Catalog=<configuration database>;User ID=<SQL login>;Password=<password>;TrustServerCertificate=True"
},
"Serilog": {
"Using": [
"Serilog.Sinks.Console",
"Serilog.Sinks.MSSqlServer",
"Serilog.Sinks.File",
"Serilog.Enrichers.ClientInfo",
"Serilog.Sinks.EventLog"
],
"WriteTo": {
"EventLogSink": {
"Name": "EventLog",
"Args": {
"logName": "WebCon WorkFlow",
"source": "WorkFlow"
}
}
}
}
}
Order in the Serilog.Using list

In the examples, the new Serilog.Sinks.EventLog module was added at the end of the list, and the first four items were repeated in the order used in the template. This way, merging lists by position (see Configuration files and their loading order) does not remove any module from the template.

Passwords in the configuration file

If you use SQL Server authentication in the connection string (User ID and Password), the password is stored in the file in plain text. Restrict permissions to the appsettings.Production.json file to administrators and the account the Portal or the Service runs as. Wherever possible, use integrated authentication (Integrated Security=True).

Section reference​

SectionPurposeIn the default file
ServiceNameName identifying the application.Yes
ConnectionStringsConnection to the configuration database and the logs database.Yes (empty)
SerilogWriting application logs.Yes
OpenTelemetryMetrics, traces, and log export to monitoring systems.Yes (disabled)
ApplicationInsightsSending telemetry to Azure Application Insights.No
HealthChecksApplication health checks.Yes
KestrelApplication web server: limits, endpoints, certificates.Yes (Limits only)
SecurityHandling headers forwarded by proxy servers.Yes
AllowedHostsAllowed host names.Yes
DataProtectionData protection (including cookies).Yes
OutboxQueuing of internal messages.Yes (disabled)
MessagingHow internal messages are dispatched.Yes

ServiceName​

ParameterTypeDefault valueDescription
ServiceNamestringWebCon.WorkFlowName under which the application sends telemetry data (OpenTelemetry) — the Portal or the Service is visible under this name in monitoring tools such as Grafana or Jaeger. The Service uses the value WebCon.WorkFlow.Service, which makes it possible to distinguish its data from Portal data.

During an update from an earlier version, the value is moved from the serviceName parameter of the otlpsettings.json file. If you change the name, the data will be visible in monitoring tools under the new service name.

ConnectionStrings​

This section contains the connection strings for SQL Server. In the template, the values are empty — they must be specified in appsettings.Production.json, otherwise the application will not start.

ParameterDescription
ConfigDbConnection to the WEBCON configuration database. Without a valid connection, the Portal and the Service do not start.
LogsDbConnection to the database where application logs are written (the MSSqlServer sink in the Serilog section). It can point to the same database as ConfigDb.

Most commonly used connection string elements:

ElementExampleDescription
Data Source (or Server)SQL01, SQL01\\BPS, SQL01,1433SQL Server name, optionally with an instance name or port. The \ character before the instance name must be doubled in the JSON file.
Initial Catalog (or Database)BPS_ConfigDatabase name.
Integrated SecurityTrueWindows authentication: using the application pool identity (Portal) or the service account (Service).
User ID, Passwordbps_user, ***SQL Server authentication. Used when Integrated Security=False or when the element is omitted.
TrustServerCertificateTrueAccepts the SQL server certificate without validating the chain of trust. Required when SQL Server uses a self-signed certificate. The recommended long-term solution is to install a trusted certificate on the SQL server.
EncryptTrueConnection encryption. Enabled by default.

The account used in the connection string – both in the Portal and in the Service – must have the db_owner role in all WEBCON databases: the configuration database, the logs database, the attachments databases and the archive databases, if they exist. If this role is missing in any of these databases, the Service may fail to start.

Serilog​

This section defines where application logs are written and at what level of detail. By default, logs from the Warning level upward are written to the database specified in LogsDb, and only fatal errors are written to a file.

Full description of the section: Serilog section configuration.

OpenTelemetry​

This section enables collecting metrics (including for Prometheus), traces, and logs, and exporting them to external monitoring systems such as Jaeger, Honeycomb, or Grafana. By default, all features are disabled.

Full description of the section: OpenTelemetry section configuration.

HealthChecks​

This section defines the maximum time to wait for a response during application health checks. The health check result is available at the /health address of the Portal and the Service and can be read by monitoring tools. The Portal health check verifies the state of the application itself, while the Service health check verifies, among other things, the state of running modules and the connection to the SOLR server, the WCF service, and the license service. The results of individual checks are returned in the entries node.

ParameterTypeDefault valueDescription
SqlTimeoutnumber (milliseconds)5000 (as of version 2027.1: 1000)Maximum time to wait for a response from the configuration database. When exceeded, the check reports a database problem.
WcfTimeoutnumber (milliseconds)5000 (as of version 2027.1)Maximum time to wait for a response from the WCF service and the license service.
SolrTimeoutnumber (milliseconds)15000 (as of version 2027.1)Maximum time to wait for a response from the SOLR server.

Lower limits make the /health address respond faster, and a temporary unavailability of the SOLR server or the WCF services does not cause timeouts in monitoring tools or unnecessary restarts of Service modules.

Kestrel​

This section configures the built-in web server of the WebCon.WorkFlow.Bootstrapper.exe process.

In the Portal, this process runs behind IIS: IIS accepts user requests and forwards them to the Portal process on the port specified in Endpoints. The installer adds a Kestrel node with a randomly selected port to the Portal appsettings.Production.json file, which prevents conflicts with other services using the same port. In the Service, the port of the WebCon.WorkFlow.Bootstrapper.exe process is not specified by default (it is selected from the pool of free ports at startup) — to assign a fixed port, add a Kestrel node to the Service appsettings.Production.json file.

ParameterTypeDefault valueDescription
Limits.MaxRequestBodySizenumber (bytes)134217728 (128 MB)Maximum size of a single request, which in practice is the maximum size of an uploaded attachment or file, e.g. an OCR AI project imported in Designer Studio. Requests larger than the limit are rejected.
Endpoints.<name>.Urlstring— (added by the installer in the Portal)Address and port the process listens on, e.g. http://*:48439. <name> is an arbitrary endpoint label (e.g. Http).
Certificates.Defaultobject— (not present in the template)Certificate used by HTTPS endpoints. The certificate can be specified as a file (Path, Password) or in the Windows certificate store (Subject, Store, Location).

Example of increasing the limit to 256 MB:

"Kestrel": {
"Limits": {
"MaxRequestBodySize": 268435456
}
}
info

For a Portal hosted in IIS, the request size is also limited by IIS (the Maximum allowed content length setting in Request Filtering, in the web.config file: maxAllowedContentLength). When increasing MaxRequestBodySize, check this limit as well — the smaller of the two values applies.

Example of assigning a fixed port to the Service process:

"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://*:48448"
}
}
}

Security​

The ForwardedHeaders subsection defines how the application handles X-Forwarded-* headers added by a proxy server, gateway, or load balancer in front of the Portal. It allows the Portal to know the user's actual IP address, the protocol (HTTPS), and the host name under which the user opened the Portal.

ParameterTypeDefault valueDescription
ForwardedHeaders.ForwardedHeaderslistXForwardedFor, XForwardedProto, XForwardedHostHeaders that are processed. Allowed values are described in the table below.
ForwardedHeaders.KnownProxieslist of IP addresses[]IP addresses of proxy servers trusted by the application, e.g. ["10.0.0.5"].
ForwardedHeaders.KnownIpNetworkslist of networks (CIDR)[]Networks from which trusted proxy servers originate, e.g. ["10.0.0.0/24"].
Value in ForwardedHeadersMeaning
XForwardedForThe client's actual IP address (used, among other things, in logs — the WithClientIp enricher).
XForwardedProtoThe protocol used by the client (http/https) — relevant when the proxy terminates the HTTPS connection.
XForwardedHostThe host name entered by the user.
XForwardedPrefixThe path prefix added by the proxy.
caution

X-Forwarded-* headers can be spoofed by the client. If the Portal runs behind a proxy server, enter its address in KnownProxies or its network in KnownIpNetworks so that the headers are accepted only from trusted servers.

When the KnownProxies and KnownIpNetworks lists are empty, the application trusts only a proxy server running on the same machine and connecting via the localhost address. If the proxy server runs on a different machine (e.g. an nginx → IIS → Portal configuration), enter its address or network in the appropriate list.

info

As of version 2026 R1, the ForceHttpsOnProxy parameter is not supported. Environments that used it require configuration of the proxy server and the ForwardedHeaders section after the update.

AllowedHosts​

ParameterTypeDefault valueDescription
AllowedHostsstring*Host names for which the application responds to requests, separated by semicolons, e.g. bps.company.com;bps. A wildcard is allowed for subdomains, e.g. *.company.com. Requests addressed to a different host name are rejected with an HTTP 400 error. The value * means no restrictions.

DataProtection​

ParameterTypeDefault valueDescription
ApplicationNamestringemptyApplication name used to isolate data protection keys (which encrypt, among other things, session cookies). In a farm consisting of multiple Portal servers, the value should be identical on all nodes so that the user session is recognized regardless of which server handles the request.

ApplicationName replaces the SharedAuthAppName parameter from previous versions (the App node in the former appsettings.user.json file). During a Portal update, the installer moves its value to DataProtection.ApplicationName. Changing this value in a running environment invalidates existing sessions – users have to sign in again.

Outbox​

The outbox mechanism forwards internal application messages through the SQL database, so that they reach all servers — e.g. in an environment with multiple Portal servers.

ParameterTypeDefault valueDescription
Enabledtrue / falsetrueEnables forwarding of internal messages through the database.
Intervaltime (hh:mm:ss)00:00:01Time interval between successive queue processing runs.

When enabled, internal messages are written to the configuration database and delivered to all running Portal and Service servers, and delivery is retried in case of an error. The required tables are created during the database update regardless of this setting. A server with the mechanism disabled does not receive messages sent by other servers – so it is recommended to keep the default value and, if you change it, to set the same values in the Portal and in the Service.

Messaging​

ParameterTypeDefault valueDescription
UseAsyncDispatchertrue / falsetrueSpecifies whether internal messages are dispatched asynchronously.

With true, internal messages passed within a single process are handled in the background, and the operation that sent them does not wait for them to be handled. With false, they are handled immediately, as part of the same operation, and an error while handling them interrupts that operation. The setting does not affect messages forwarded through the Outbox. It is recommended to keep the default value.

Making changes step by step​

1. Make a backup​

Copy the appsettings.Production.json file to a safe location outside the installation directory.

2. Edit the appsettings.Production.json file​

Open the file in a text editor run as administrator and add or change only the required parameters. Keep the section structure of the appsettings.json template.

3. Validate the file​

Before saving, make sure that:

  • parameter names and string values are enclosed in double quotes ",
  • all { } and [ ] brackets are closed,
  • \ characters in paths and SQL Server instance names are doubled, e.g. "SQL01\\BPS",
  • the file is saved in UTF-8 encoding.

An editor with JSON syntax highlighting (e.g. Visual Studio Code) points out most errors before the file is saved.

4. Apply the changes​

Recycle the Portal application pool or restart the Service — see How to apply changes.

5. Verify startup​

Open the Portal in a browser or check the service status, and then review the startup logs. If the application is not working, go to the Troubleshooting page.