2017-08-11 14:57:31 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core
|
2015-12-09 04:57:38 +01:00
|
|
|
|
{
|
|
|
|
|
public class GlobalSettings
|
|
|
|
|
{
|
2017-08-02 23:02:55 +02:00
|
|
|
|
public bool SelfHosted { get; set; }
|
2016-02-06 07:18:25 +01:00
|
|
|
|
public virtual string SiteName { get; set; }
|
2017-04-04 16:13:16 +02:00
|
|
|
|
public virtual string StripeApiKey { get; set; }
|
2017-08-09 05:06:28 +02:00
|
|
|
|
public virtual string ProjectName { get; set; }
|
|
|
|
|
public virtual string LogDirectory { get; set; }
|
2017-08-09 23:01:37 +02:00
|
|
|
|
public virtual string LicenseDirectory { get; set; }
|
2017-08-11 14:57:31 +02:00
|
|
|
|
public virtual string PushRelayBaseUri { get; set; }
|
|
|
|
|
public virtual InstallationSettings Installation { get; set; } = new InstallationSettings();
|
2017-08-04 05:12:05 +02:00
|
|
|
|
public virtual BaseServiceUriSettings BaseServiceUri { get; set; } = new BaseServiceUriSettings();
|
2016-02-06 07:18:25 +01:00
|
|
|
|
public virtual SqlServerSettings SqlServer { get; set; } = new SqlServerSettings();
|
2015-12-09 04:57:38 +01:00
|
|
|
|
public virtual MailSettings Mail { get; set; } = new MailSettings();
|
2016-12-01 03:51:43 +01:00
|
|
|
|
public virtual StorageSettings Storage { get; set; } = new StorageSettings();
|
2017-06-15 21:34:12 +02:00
|
|
|
|
public virtual AttachmentSettings Attachment { get; set; } = new AttachmentSettings();
|
2017-01-13 00:35:26 +01:00
|
|
|
|
public virtual IdentityServerSettings IdentityServer { get; set; } = new IdentityServerSettings();
|
2017-03-24 03:02:55 +01:00
|
|
|
|
public virtual DataProtectionSettings DataProtection { get; set; } = new DataProtectionSettings();
|
2017-01-15 05:24:02 +01:00
|
|
|
|
public virtual DocumentDbSettings DocumentDb { get; set; } = new DocumentDbSettings();
|
2017-05-26 06:50:27 +02:00
|
|
|
|
public virtual NotificationHubSettings NotificationHub { get; set; } = new NotificationHubSettings();
|
2017-06-15 04:40:33 +02:00
|
|
|
|
public virtual YubicoSettings Yubico { get; set; } = new YubicoSettings();
|
2017-06-21 06:04:25 +02:00
|
|
|
|
public virtual DuoSettings Duo { get; set; } = new DuoSettings();
|
2017-07-28 06:17:31 +02:00
|
|
|
|
public virtual BraintreeSettings Braintree { get; set; } = new BraintreeSettings();
|
2015-12-09 04:57:38 +01:00
|
|
|
|
|
2017-08-04 05:12:05 +02:00
|
|
|
|
public class BaseServiceUriSettings
|
|
|
|
|
{
|
|
|
|
|
public string Vault { get; set; }
|
2017-08-17 05:44:14 +02:00
|
|
|
|
public string VaultWithHash => $"{Vault}/#";
|
2017-08-04 05:12:05 +02:00
|
|
|
|
public string Api { get; set; }
|
|
|
|
|
public string Identity { get; set; }
|
|
|
|
|
public string InternalIdentity { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-06 07:18:25 +01:00
|
|
|
|
public class SqlServerSettings
|
|
|
|
|
{
|
|
|
|
|
public string ConnectionString { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-01 03:51:43 +01:00
|
|
|
|
public class StorageSettings
|
|
|
|
|
{
|
|
|
|
|
public string ConnectionString { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-15 21:34:12 +02:00
|
|
|
|
public class AttachmentSettings
|
|
|
|
|
{
|
|
|
|
|
public string ConnectionString { get; set; }
|
2017-08-08 23:27:01 +02:00
|
|
|
|
public string BaseDirectory { get; set; }
|
2017-06-15 21:34:12 +02:00
|
|
|
|
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
|
|
|
|
}
|
2016-02-07 05:45:33 +01:00
|
|
|
|
|
2017-01-13 00:35:26 +01:00
|
|
|
|
public class IdentityServerSettings
|
|
|
|
|
{
|
|
|
|
|
public string CertificateThumbprint { get; set; }
|
2017-08-07 17:24:16 +02:00
|
|
|
|
public string CertificatePassword { get; set; }
|
2017-01-13 00:35:26 +01:00
|
|
|
|
}
|
2017-01-15 05:24:02 +01:00
|
|
|
|
|
2017-03-24 03:02:55 +01:00
|
|
|
|
public class DataProtectionSettings
|
|
|
|
|
{
|
|
|
|
|
public string CertificateThumbprint { get; set; }
|
2017-08-09 05:06:28 +02:00
|
|
|
|
public string Directory { get; set; }
|
2017-03-24 03:02:55 +01:00
|
|
|
|
}
|
|
|
|
|
|
2017-01-15 05:24:02 +01:00
|
|
|
|
public class DocumentDbSettings
|
|
|
|
|
{
|
|
|
|
|
public string Uri { get; set; }
|
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
}
|
2017-05-26 06:50:27 +02:00
|
|
|
|
|
|
|
|
|
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; }
|
|
|
|
|
}
|
2017-06-21 06:04:25 +02:00
|
|
|
|
|
|
|
|
|
public class DuoSettings
|
|
|
|
|
{
|
|
|
|
|
public string AKey { get; set; }
|
|
|
|
|
}
|
2017-06-22 04:33:45 +02:00
|
|
|
|
|
2017-07-28 06:17:31 +02:00
|
|
|
|
public class BraintreeSettings
|
|
|
|
|
{
|
|
|
|
|
public bool Production { get; set; }
|
|
|
|
|
public string MerchantId { get; set; }
|
|
|
|
|
public string PublicKey { get; set; }
|
|
|
|
|
public string PrivateKey { get; set; }
|
|
|
|
|
}
|
2017-08-11 14:57:31 +02:00
|
|
|
|
|
|
|
|
|
public class InstallationSettings
|
|
|
|
|
{
|
2017-08-15 02:57:45 +02:00
|
|
|
|
public Guid Id { get; set; }
|
2017-08-11 14:57:31 +02:00
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
public string IdentityUri { get; set; }
|
|
|
|
|
}
|
2015-12-09 04:57:38 +01:00
|
|
|
|
}
|
|
|
|
|
}
|