1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-14 15:00:49 -05:00

Added SendGridApiHost to Globals

This commit is contained in:
Alexey Zilber 2025-06-13 11:55:43 +08:00
parent db77201ca4
commit 00fcb88638
No known key found for this signature in database
GPG Key ID: 3F2AB77AC418D8E3
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ public class SendGridMailDeliveryService : IMailDeliveryService, IDisposable
GlobalSettings globalSettings,
IWebHostEnvironment hostingEnvironment,
ILogger<SendGridMailDeliveryService> logger)
: this(new SendGridClient(globalSettings.Mail.SendGridApiKey),
: this(new SendGridClient(globalSettings.Mail.SendGridApiKey, globalSettings.Mail.SendGridApiHost),
globalSettings, hostingEnvironment, logger)
{
}

View File

@ -431,6 +431,7 @@ public class GlobalSettings : IGlobalSettings
public SmtpSettings Smtp { get; set; } = new SmtpSettings();
public string SendGridApiKey { get; set; }
public int? SendGridPercentage { get; set; }
public string SendGridApiHost { get; set; } = "https://api.sendgrid.com";
public class SmtpSettings
{