mirror of
https://github.com/bitwarden/server.git
synced 2025-05-07 12:42:24 -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.
|
||||
var httpClient = new ServiceCollection()
|
||||
.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()
|
||||
.GetRequiredService<IHttpClientFactory>()
|
||||
.CreateClient();
|
||||
|
Loading…
x
Reference in New Issue
Block a user