mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
c0a544351b
* Can disable the modification of SSH settings in BTCPay Server * Update BTCPayServer/Controllers/ServerController.cs Co-authored-by: Zaxounette <51208677+Zaxounette@users.noreply.github.com> * Update BTCPayServer/Controllers/ServerController.cs Co-authored-by: Zaxounette <51208677+Zaxounette@users.noreply.github.com> * Update BTCPayServer/Views/Server/SSHService.cshtml Co-authored-by: Zaxounette <51208677+Zaxounette@users.noreply.github.com> Co-authored-by: Zaxounette <51208677+Zaxounette@users.noreply.github.com>
63 lines
2.8 KiB
C#
63 lines
2.8 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using BTCPayServer.Services.Apps;
|
|
using BTCPayServer.Validation;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Services
|
|
{
|
|
public class PoliciesSettings
|
|
{
|
|
[Display(Name = "Require a confirmation email for registering")]
|
|
public bool RequiresConfirmedEmail { get; set; }
|
|
|
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
|
[Display(Name = "Disable new user registration on the server")]
|
|
public bool LockSubscription { get; set; }
|
|
|
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
|
[Display(Name = "Discourage search engines from indexing this site")]
|
|
public bool DiscourageSearchEngines { get; set; }
|
|
[Display(Name = "Allow non-admins to use the internal lightning node in their stores")]
|
|
public bool AllowLightningInternalNodeForAll { get; set; }
|
|
[Display(Name = "Allow non-admins to create hot wallets for their stores")]
|
|
public bool AllowHotWalletForAll { get; set; }
|
|
[Display(Name = "Allow non-admins to import hot wallets for their stores")]
|
|
public bool AllowHotWalletRPCImportForAll { get; set; }
|
|
[Display(Name = "Check releases on GitHub and notify when new BTCPay Server version is available")]
|
|
public bool CheckForNewVersions { get; set; }
|
|
[Display(Name = "Disable notifications from automatically showing (no websockets)")]
|
|
public bool DisableInstantNotifications { get; set; }
|
|
[Display(Name = "Disable stores from using the server's email settings as backup")]
|
|
public bool DisableStoresToUseServerEmailSettings { get; set; }
|
|
[Display(Name = "Disable non-admins access to the user creation API endpoint")]
|
|
public bool DisableNonAdminCreateUserApi { get; set; }
|
|
|
|
public bool DisableSSHService { get; set; }
|
|
|
|
[Display(Name = "Display app on website root")]
|
|
public string RootAppId { get; set; }
|
|
public AppType? RootAppType { get; set; }
|
|
|
|
|
|
[Display(Name = "Override the block explorers used")]
|
|
public List<BlockExplorerOverrideItem> BlockExplorerLinks { get; set; } = new List<BlockExplorerOverrideItem>();
|
|
|
|
public List<DomainToAppMappingItem> DomainToAppMapping { get; set; } = new List<DomainToAppMappingItem>();
|
|
|
|
public class BlockExplorerOverrideItem
|
|
{
|
|
public string CryptoCode { get; set; }
|
|
public string Link { get; set; }
|
|
}
|
|
|
|
public class DomainToAppMappingItem
|
|
{
|
|
[Display(Name = "Domain")] [Required] [HostName] public string Domain { get; set; }
|
|
[Display(Name = "App")] [Required] public string AppId { get; set; }
|
|
|
|
public AppType AppType { get; set; }
|
|
}
|
|
}
|
|
}
|