Skip to content

Commit

Permalink
Update README.md (#34)
Browse files Browse the repository at this point in the history
I was missing this to get it working.
  • Loading branch information
christophedemey committed Feb 9, 2020
1 parent da99ca1 commit 1cf3def
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ public void Configure()
}
```

## Set default bindings
Call UseUrls with http://* and https://* in Program.cs
```csharp
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseUrls(new string[] { "http://*", "https://*" });
webBuilder.UseStartup<Startup>();
});
```

Tada! Your application now supports SSL via LetsEncrypt, even from the first HTTPS request. It will even renew your certificate automatically in the background.

# Optional: Configuring persistence
Expand Down

0 comments on commit 1cf3def

Please sign in to comment.