using PKISharp.WACS.Plugins.Base; using PKISharp.WACS.Plugins.Base.Options; using PKISharp.WACS.Services; namespace PKISharp.WACS.Plugins.ValidationPlugins.Http { [Plugin("c7d5e050-9363-4ba1-b3a8-931b31c618b7")] internal class SelfHostingOptions : ValidationPluginOptions { public override string Name => "SelfHosting"; public override string Description => "Serve verification files from memory"; /// /// Alternative port for validation. Note that ACME always requires /// port 80 to be open. This is only useful if the port is interally /// mapped/forwarded to a different one. /// public int? Port { get; set; } /// /// Default would be http, but may be set to https /// public bool? Https { get; set; } /// /// Show to use what has been configured /// /// public override void Show(IInputService input) { base.Show(input); if (Port != null) { input.Show("Port", Port.ToString()); } if (Https == true) { input.Show("Protocol", "https"); } } } }