mirror of
https://github.com/bitwarden/server.git
synced 2025-05-11 06:32:22 -05:00
Add SelfHosted GlobalSettings for Setup
This commit is contained in:
parent
4bbf003104
commit
69082bab8a
@ -289,6 +289,8 @@ public class Program
|
|||||||
// We need to get an HttpClient that has been configured with custom trust certificates.
|
// We need to get an HttpClient that has been configured with custom trust certificates.
|
||||||
var httpClient = new ServiceCollection()
|
var httpClient = new ServiceCollection()
|
||||||
.AddX509ChainCustomization()
|
.AddX509ChainCustomization()
|
||||||
|
// Setup is always ran for self hosted, so it's fine to hard code this to true and allow chain customization
|
||||||
|
.AddSingleton(new GlobalSettings { SelfHosted = true })
|
||||||
.BuildServiceProvider()
|
.BuildServiceProvider()
|
||||||
.GetRequiredService<IHttpClientFactory>()
|
.GetRequiredService<IHttpClientFactory>()
|
||||||
.CreateClient();
|
.CreateClient();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user