1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-03 14:03:33 +01:00
bitwarden-server/src/Core/GlobalSettings.cs

90 lines
3.2 KiB
C#
Raw Normal View History

namespace Bit.Core
2015-12-09 04:57:38 +01:00
{
public class GlobalSettings
{
public virtual string SiteName { get; set; }
public virtual string BaseVaultUri { get; set; }
2016-05-20 01:10:24 +02:00
public virtual string JwtSigningKey { get; set; }
2017-04-04 16:13:16 +02:00
public virtual string StripeApiKey { get; set; }
public virtual SqlServerSettings SqlServer { get; set; } = new SqlServerSettings();
2015-12-09 04:57:38 +01:00
public virtual MailSettings Mail { get; set; } = new MailSettings();
public virtual PushSettings Push { get; set; } = new PushSettings();
public virtual StorageSettings Storage { get; set; } = new StorageSettings();
public virtual AttachmentSettings Attachment { get; set; } = new AttachmentSettings();
public virtual IdentityServerSettings IdentityServer { get; set; } = new IdentityServerSettings();
public virtual DataProtectionSettings DataProtection { get; set; } = new DataProtectionSettings();
2017-01-15 05:24:02 +01:00
public virtual DocumentDbSettings DocumentDb { get; set; } = new DocumentDbSettings();
public virtual NotificationHubSettings NotificationHub { get; set; } = new NotificationHubSettings();
2017-06-15 04:40:33 +02:00
public virtual YubicoSettings Yubico { get; set; } = new YubicoSettings();
2015-12-09 04:57:38 +01:00
public class SqlServerSettings
{
public string ConnectionString { get; set; }
}
public class StorageSettings
{
public string ConnectionString { get; set; }
}
public class AttachmentSettings
{
public string ConnectionString { get; set; }
public string BaseUrl { get; set; }
}
2015-12-09 04:57:38 +01:00
public class MailSettings
{
public string ReplyToEmail { get; set; }
2017-05-31 04:40:02 +02:00
public string SendGridApiKey { get; set; }
public SmtpSettings Smtp { get; set; } = new SmtpSettings();
public class SmtpSettings
{
public string Host { get; set; }
public int Port { get; set; }
public bool Ssl { get; set; }
public string Username { get; set; }
public string Password { get; set; }
}
2015-12-09 04:57:38 +01:00
}
public class PushSettings
{
public string ApnsCertificateThumbprint { get; set; }
public string ApnsCertificatePassword { get; set; }
public string GcmSenderId { get; set; }
public string GcmApiKey { get; set; }
public string GcmAppPackageName { get; set; }
}
public class IdentityServerSettings
{
public string CertificateThumbprint { get; set; }
}
2017-01-15 05:24:02 +01:00
public class DataProtectionSettings
{
public string CertificateThumbprint { get; set; }
}
2017-01-15 05:24:02 +01:00
public class DocumentDbSettings
{
public string Uri { get; set; }
public string Key { get; set; }
}
public class NotificationHubSettings
{
public string ConnectionString { get; set; }
public string HubName { get; set; }
}
2017-06-15 04:40:33 +02:00
public class YubicoSettings
{
public string ClientId { get; set; }
public string Key { get; set; }
}
2015-12-09 04:57:38 +01:00
}
}