You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/fundamentals/servers/kestrel.md
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Learn about Kestrel, the cross-platform web server for ASP.NET Core
5
5
monikerRange: '>= aspnetcore-2.1'
6
6
ms.author: riande
7
7
ms.custom: mvc
8
-
ms.date: 12/26/2019
8
+
ms.date: 02/06/2020
9
9
uid: fundamentals/servers/kestrel
10
10
---
11
11
# Kestrel web server implementation in ASP.NET Core
@@ -111,7 +111,7 @@ The following examples use the <xref:Microsoft.AspNetCore.Server.Kestrel.Core> n
111
111
usingMicrosoft.AspNetCore.Server.Kestrel.Core;
112
112
```
113
113
114
-
Kestrel options, which are configured in C# code in the following examples, can also be set using a [configuration provider](xref:fundamentals/configuration/index). For example, the File Configuration Provider can load Kestrel configuration from an *appsettings.json* or *appsettings.{Environment}.json* file:
114
+
In examples shown later in this article, Kestrel options are configured in C# code. Kestrel options can also be set using a [configuration provider](xref:fundamentals/configuration/index). For example, the [File Configuration Provider](xref:fundamentals/configuration/index#file-configuration-provider) can load Kestrel configuration from an *appsettings.json* or *appsettings.{Environment}.json* file:
115
115
116
116
```json
117
117
{
@@ -125,6 +125,9 @@ Kestrel options, which are configured in C# code in the following examples, can
125
125
}
126
126
```
127
127
128
+
> [!NOTE]
129
+
> <xref:Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> and [endpoint configuration](#endpoint-configuration) are configurable from configuration providers. Remaining Kestrel configuration must be configured in C# code.
130
+
128
131
Use **one** of the following approaches:
129
132
130
133
* Configure Kestrel in `Startup.ConfigureServices`:
@@ -484,15 +487,13 @@ In the following *appsettings.json* example:
484
487
"Http": {
485
488
"Url": "http://localhost:5000"
486
489
},
487
-
488
490
"HttpsInlineCertFile": {
489
491
"Url": "https://localhost:5001",
490
492
"Certificate": {
491
493
"Path": "<path to .pfx file>",
492
494
"Password": "<certificate password>"
493
495
}
494
496
},
495
-
496
497
"HttpsInlineCertStore": {
497
498
"Url": "https://localhost:5002",
498
499
"Certificate": {
@@ -502,11 +503,9 @@ In the following *appsettings.json* example:
502
503
"AllowInvalid": "<true or false; defaults to false>"
0 commit comments