Skip to content

Top-Level Settings

These settings configure the application identity, server binding, and configuration behavior.

Overview

json
json
{
  "ApplicationName": null,
  "EnvironmentName": "Production",
  "Urls": "http://localhost:8080",
  "StartupMessage": "Started in {time}, listening on {urls}, version {version}"
}

Application Settings

SettingTypeDefaultDescription
ApplicationNamestringnullApplication identifier. Defaults to the name of the current working directory if not set. Also used as the connection ApplicationName (see Connection Settings).
EnvironmentNamestring"Production"Environment designation (Development, Staging, Production).
Urlsstring"http://localhost:8080"Server listening URLs. Separate multiple URLs with semicolons.
StartupMessagestring(see below)Message logged at Information level on startup. Supports placeholders; set to an empty string to disable.

Default StartupMessage: "Started in {time}, listening on {urls}, version {version}"

Urls Configuration

The Urls setting accepts multiple URLs separated by semicolons:

json
json
{
  "Urls": "http://localhost:8080;https://localhost:8443"
}

To listen on all interfaces:

json
json
{
  "Urls": "http://0.0.0.0:8080;https://0.0.0.0:8443"
}

Startup Message Placeholders

Customize the startup message with these placeholders:

PlaceholderDescription
{time}Startup time
{urls}Listening URLs
{version}Application version
{environment}Environment name (from EnvironmentName)
{application}Application name (from ApplicationName)

Example:

json
json
{
  "StartupMessage": "Started in {time}, listening on {urls}, version {version}, env: {environment}"
}

Next Steps

Comments