1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-27 15:52:13 -05:00

Add env variable to override /installations domain (#5669)

* Add env variable to override /installations domain
This commit is contained in:
MtnBurrit0 2025-04-22 11:21:19 -06:00 committed by GitHub
parent 4320649468
commit 2644efc2b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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