1
0
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:
Justin Baur 2025-05-02 16:18:58 -04:00
parent 4bbf003104
commit 69082bab8a
No known key found for this signature in database

View File

@ -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();