Comprehensive Documentation of App Settings
This article is a technical documentation of the default app settings, as represented in a JSON format.
Article Description
This article is a technical documentation of the default app settings, as represented in a JSON format. The settings are presented in a structured table, making it easy to understand and locate specific settings.
📘 Application Settings Overview
This document provides a detailed explanation of each configuration setting found in the appsettings.json file. These settings govern logging, telemetry, CMS behavior, authentication, storage, and more.
📝 Serilog Logging Configuration
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"System": "Warning",
"KlevrPortal": "Warning"
}
}
}
- Default: Sets the base logging level to
Information. - Override: Customizes logging levels for specific namespaces:
Microsoft:Warning Microsoft.Hosting.Lifetime:Information System:Warning KlevrPortal:Warning - Debugging: it is useful to set KlevrPortal to Debug to see FetchXML conversion and other useful debugging messages during site development.
📊 Application Insights
"ApplicationInsights": {
"ConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000"
}
- ConnectionString: Placeholder for telemetry instrumentation key.
📦 Umbraco CMS Settings
🔹 Azure Blob Storage
"Storage": {
"AzureBlob": {
"Media": {
"ConnectionString": "",
"ContainerName": "media"
}
}
}
- ConnectionString: Empty by default, but requires a connection string to your storage account.
- ContainerName:
"media"
🔹 KeepAlive Settings
These typically do not need to be altered.
"KeepAlive": {
"DisableKeepAliveTask": true,
"KeepAlivePingUrl": "~/api/keepalive/ping"
}
- DisableKeepAliveTask:
true - KeepAlivePingUrl:
"~/api/keepalive/ping"
🔹 ModelsBuilder
These typically do not need to be altered
"ModelsBuilder": {
"ModelsMode": "SourceCodeManual",
"ModelsNamespace": "Umbraco.Cms.Web.Common.PublishedModels",
"FlagOutOfDateModels": false,
"ModelsDirectory": "~\\..\\..\\KlevrPortal.Core\\Models\\Generated",
"AcceptUnsafeModelsDirectory": true,
"DebugLevel": 0
}
- Manual source code generation with custom namespace and directory.
🔹 Global Settings
Includes SMTP configuration and security preferences.
"Global": {
"Id": "...",
"SanitizeTinyMce": true,
"UseHttps": true,
"Smtp": {
"From": "support@klevrapps.onmicrosoft.com",
"Host": "smtp.sendgrid.net",
"Username": "apikey",
"Password": "",
"Port": 587,
"SecureSocketOptions": "Auto"
}
}
All SMTP values need to be completed. Typically we use sendgrid.
🔹 Content Settings
Includes error handling, notifications, and cleanup policies.
"Content": {
"Error404Collection": [...],
"ContentVersionCleanupPolicy": {
"EnableCleanup": true
},
"Notifications": {
"Email": "support@klevrapps.onmicrosoft.com"
}
}
🔹 Web Routing
"WebRouting": {
"UmbracoApplicationUrl": "",
"DisableFindContentByIdPath": true
}
It is important to set the UmbracoApplicationUrl the the url for your site to ensure everything works properly. Typically completed by the infra pipeline.
🔗 Connection Strings
"ConnectionStrings": {
"umbracoDbDSN": "",
"umbracoDbDSN_ProviderName": "Microsoft.Data.SqlClient"
}
- Connectionstring and ProviderName: is typically populated by the infra pipeline.
🔁 uSync Configuration
Includes folder paths and handler settings. These should not need to be altered.
"uSync": {
"Settings": {
"RootFolder": "uSync/v9/"
},
"Sets": {
"Default": {
"DisabledHandlers": [ "MemberHandler", "UserGroupHandler", "UserHandler" ],
"Handlers": {
"ContentHandler": {
"Settings": {
"ImportTrashed": false
}
},
...
}
}
}
}
⚙️ Klevr Configuration Settings
This section outlines all configurable settings under the Klevr node in the application settings. These settings govern authentication, integration keys, performance tuning, HTML sanitization, security headers, and third-party service configurations.
🔐 Authentication & Identity
| Setting | Default Value | Description |
|---|---|---|
AllowBackofficeADLogin | "false" | Enables Active Directory login for backoffice users. |
AllowFrontendADLogin | "false" | Enables AD login for frontend users. |
AllowFrontendB2CLogin | "false" | Enables Azure B2C login for frontend users. |
AllowFrontendEntraExternalIdLogin | "false" | Enables Microsoft Entra External ID login. |
AllowFrontendISLogin | "false" | Enables Identity Server login for frontend users. |
B2CProviderName | "Azure B2C" | Display name for Azure B2C provider. |
EntraExternalIdProvider | "Microsoft Entra External ID" | Display name for Entra External ID provider. |
ADProviderName | "Microsoft Entra ID" | Display name for AD provider. |
Authority | URL template | OAuth authority URL for authentication. |
ClientId | "<clientid>" | OAuth client ID. |
ClientSecret | "<clientSecret>" | OAuth client secret. |
LocalLoginMFA | none | Options are 'none', 'selective', or 'all' |
LocalLoginMFACodeValidityInSeconds | 120 | codes are valid for between 1 and 2 times this value |
LocalLoginMFACookieValidityInDays | 7 | If user selects "Remember me" MFA is bypassed for this period |
🔑 Integration Keys & URLs
| Setting | Default Value | Description |
|---|---|---|
PayfurlAuthKey | "" | API key for Payfurl integration. |
KeyVaultUrl | "" | Azure Key Vault URL. |
SharePointCertificateName | "" | Certificate name for SharePoint integration. |
SharePointDomain | "" | SharePoint domain. |
SharePointAppId | "" | App ID for SharePoint; blank uses Dynamics App ID. |
SharePointTenantId | "" | Tenant ID for SharePoint. |
UmbracoWebHookApiKey | "" | API key for Umbraco webhook; blank auto-generates. |
TelemetryUrl | Azure Logic App URL | Endpoint for telemetry data. |
CustomerCode | "" | Identifier for customer-specific configuration. |
StripeApiKey | "" | API key for Stripe payments. |
StripeEndpointSecret | "" | Webhook secret for Stripe. |
IgnoreStripeApiVersionMismatch | "false" | Whether to ignore Stripe API version mismatches. |
AzureStorageConnectionString | "" | Connection string for Azure Blob Storage. |
AttachmentsContainerName | "attachments" | Blob container name for attachments. |
⚙️ Performance & Behavior
| Setting | Default Value | Description |
|---|---|---|
MinConnectionLimit | 5000 | Minimum number of concurrent connections. |
threadcount | 500 | Number of threads for processing. |
affinity | "true" | Enables affinity for load balancing. |
Expect100Continue | "true" | Enables HTTP 100-Continue behavior. |
UseNagleAlgorithm | "true" | Enables/disables Nagle algorithm for TCP. |
AppVersion | "DEV" | Application version label. |
ClientName | "" | Optional client name. |
FrequencyInHrs | 168 | Frequency of scheduled tasks in hours. |
DelayBeforeStartInMins | 1 | Delay before task execution in minutes. |
🧾 Session & Reminder Settings
| Setting | Default Value | Description |
|---|---|---|
MemberSessionTimeout | "" | Timeout in minutes; blank means infinite. |
ReminderTime | "" | Reminder timeout in minutes; blank disables. |
🧼 HTML & Rich Text Sanitization
| Setting | Default Value | Description |
|---|---|---|
HTMLProcessingInLists | "PlainText" | Determines HTML handling in lists. |
AllowedViewHtmlTags | "strong,em,u,b,i" | Tags allowed in view rendering. |
AllowedHtmlTags | "h1,strong,h2,p,span,br,em,s,u,ol,li,blockquote,div" | Tags allowed in content. |
AllowedHtmlAttributes | "style,data-list,class,spellcheck,data-language" | Allowed HTML attributes. |
EnableAdditionalRichTextEditorOptions | "" | Comma-separated list of extra editor options. |
🔒 Security & Privacy
| Setting | Default Value | Description |
|---|---|---|
DisableLocalLogin | "false" | Disables local login if set to true. |
EnableHstsPreload | "false" | Enables HSTS preload header. |
IgnoreNuCache | "true" | Skips NuCache usage. |
RequireUniqueEmail | "true" | Enforces unique email addresses. |
PwdMixCase | "false" | Requires mixed case in passwords. |
PwdIncludeNumbers | "false" | Requires numeric characters in passwords. |
PwdIncludeSpecialCharacters | "false" | Requires special characters in passwords. |
PwdMinLength | 10 | Minimum password length. |
🌐 Cloudflare Challenge
| Setting | Default Value | Description |
|---|---|---|
CloudflareChallengeUrl | Cloudflare URL | Challenge verification endpoint. |
CloudflareSiteKey | "" | Site key for Cloudflare Turnstile. |
CloudflareSecretKey | "" | Secret key for Cloudflare Turnstile. |
CloudflareChallengeOnLogin | "" | Enables challenge on login if set. |
🧠 Identity Mapping
| Setting | Default Value | Description |
|---|---|---|
UsernameClaim | "" | Claim used for username mapping. |
AutoMappingAttribute | "" | Attribute used for automatic mapping. |
AutoMappingClaim | "" | If blank, defaults to username. If debug log levels are on, you can see a list of claims in the the Umbraco Logs. If the specified claim is null, the user will get an error. If there are 0 or more than 1 contacts in dynamics with a matching value, the user will get an error. Ensure you select a claim that as a unique value for every user, and is not sourced from the user (i.e. NOT something they provide on registration), otherwise they may be able to spoof another user and access their details. (available from V3.3.0 onwards) |
MatchRegristrationOnExistingEmailAddress | "false" | Matches registration to existing email. |
🚪Front Door Redirect
To allow external authentication to work properly with Azure Front door in front of the web server, specify the ExternalAuthBaseUrl setting:
| Setting | Default Value | Description |
|---|---|---|
ExternalAuthBaseUrl | "" | URL for Front door to get to the portal. This will be used, along with relaxed cookie settings when redirecting to external authentication, in order for the authentication to successfully return the user to the portal correctly. |
🧩 Custom Headers
🔸 Default Headers
Includes security and content policies.
"X-Content-Type-Options": "nosniff"
"X-Xss-Protection": "1; mode=block"
"Referrer-Policy": "strict-origin-when-cross-origin"
"Permissions-Policy": "accelerometer=(), camera=(), ..."
"Cross-Origin-Resource-Policy": "{ReferrerCheck}"
"Cross-Origin-Opener-Policy": "same-origin"
"Cross-Origin-Embedder-Policy": "unsafe-none"
"Access-Control-Allow-Origin": "{DynamicsDomainUrl}"
"Content-Security-Policy": "...frame-ancestors 'self' {DynamicsUrl};"
🔸 Media Headers
"Regex": "(?i)\\.(jpg|png|gif|svg)$"
"Cross-Origin-Resource-Policy": "cross-origin"
🔸 API Headers
"Regex": "(?i)^(\\/umbraco\\/api)"
"Cache-Control": "no-cache"
🧪 Third-Party Licenses & APIs
| Setting | Default Value | Description |
|---|---|---|
SurveyJSLicenseKey | "" | License key for SurveyJS. |
BusinessNumberAPIKeyAU | "" | API key for Australian business number lookup. |
BusinessNumberAPIKeyNZ | "" | API key for New Zealand business number lookup. |
AddressFinderAPIKey | "" | API key for AddressFinder service. |
🔐 Dynamics Integration
"Dynamics": {
"Url": "",
"AppId": "",
"Secret": ""
}
Connection to dynamics, typically filled in by infra. Leave app id and secret blank to use managed identity to connect to Dynamics. Ensure you have granted Dynamics API access to the managed identity and assigned the sys admin role in dynamics.
🧬 Azure AD B2C
Includes tenant, client, and policy configuration.
"AzureADB2C": {
"Instance": "...",
"Domain": "...",
"TenantId": "...",
"ClientId": "...",
"ClientSecret": "...",
"ClientCertificates": [],
"ClientCapabilities": [ "cp1" ],
"CallbackPath": "/klevr/externalauth/site/",
...
}
🧬 Entra External ID
Similar to B2C with different authority and callback paths.
🆔 Identity Server
"IdentityServer": {
"ProviderName": "Identity Server",
"Authority": "",
...
}
⏱️ Hangfire Background Jobs
"Hangfire": {
"Server": {
"Enabled": true,
"JobExpirationTimeoutDays": 365,
"CleanupTimeoutSeconds": 1800,
"QueuePollIntervalSeconds": 2
},
"LogToConsole": false
}
If you are not using payments, then you can set the hangfire server enabled to false to save on processing and DB resources.
Last updated on