mirror of
https://github.com/bitwarden/server.git
synced 2025-06-14 23:10:48 -05:00
Added SendGridApiHost to Globals
This commit is contained in:
parent
db77201ca4
commit
00fcb88638
@ -21,7 +21,7 @@ public class SendGridMailDeliveryService : IMailDeliveryService, IDisposable
|
|||||||
GlobalSettings globalSettings,
|
GlobalSettings globalSettings,
|
||||||
IWebHostEnvironment hostingEnvironment,
|
IWebHostEnvironment hostingEnvironment,
|
||||||
ILogger<SendGridMailDeliveryService> logger)
|
ILogger<SendGridMailDeliveryService> logger)
|
||||||
: this(new SendGridClient(globalSettings.Mail.SendGridApiKey),
|
: this(new SendGridClient(globalSettings.Mail.SendGridApiKey, globalSettings.Mail.SendGridApiHost),
|
||||||
globalSettings, hostingEnvironment, logger)
|
globalSettings, hostingEnvironment, logger)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -431,6 +431,7 @@ public class GlobalSettings : IGlobalSettings
|
|||||||
public SmtpSettings Smtp { get; set; } = new SmtpSettings();
|
public SmtpSettings Smtp { get; set; } = new SmtpSettings();
|
||||||
public string SendGridApiKey { get; set; }
|
public string SendGridApiKey { get; set; }
|
||||||
public int? SendGridPercentage { get; set; }
|
public int? SendGridPercentage { get; set; }
|
||||||
|
public string SendGridApiHost { get; set; } = "https://api.sendgrid.com";
|
||||||
|
|
||||||
public class SmtpSettings
|
public class SmtpSettings
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user