From 2644efc2b7a8c284b16d72fa7f186e9c22db4a23 Mon Sep 17 00:00:00 2001 From: MtnBurrit0 <77340197+mimartin12@users.noreply.github.com> Date: Tue, 22 Apr 2025 11:21:19 -0600 Subject: [PATCH] Add env variable to override /installations domain (#5669) * Add env variable to override /installations domain --- util/Setup/Program.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/util/Setup/Program.cs b/util/Setup/Program.cs index 5768db7abb..50f3046d6d 100644 --- a/util/Setup/Program.cs +++ b/util/Setup/Program.cs @@ -278,6 +278,13 @@ public class Program url = "https://api.bitwarden.com/installations/"; break; } + + string installationUrl = Environment.GetEnvironmentVariable("BW_INSTALLATION_URL"); + if (!string.IsNullOrEmpty(installationUrl)) + { + url = $"{installationUrl}/installations/"; + } + var response = new HttpClient().GetAsync(url + _context.Install.InstallationId).GetAwaiter().GetResult(); if (!response.IsSuccessStatusCode)