Skip to content

Commit 4b34dc9

Browse files
authored
Added HTTP_PORTS (#35750)
1 parent 5387f3e commit 4b34dc9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

aspnetcore/fundamentals/host/web-host.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,21 @@ WebHost.CreateDefaultBuilder(args)
245245
.UseSetting("https_ports", "8080")
246246
```
247247

248+
### HTTP Ports
249+
250+
Set the ports to listen on for HTTP connections.
251+
252+
**Key**: http_ports
253+
**Type**: *string*
254+
**Default**: A default value isn't set.
255+
**Set using**: `UseSetting`
256+
**Environment variable**: `ASPNETCORE_HTTP_PORTS`
257+
258+
```csharp
259+
WebHost.CreateDefaultBuilder(args)
260+
.UseSetting("http_ports", "8080")
261+
```
262+
248263
### Hosting Startup Exclude Assemblies
249264

250265
A semicolon-delimited string of hosting startup assemblies to exclude on startup.

0 commit comments

Comments
 (0)