Implement alpha foundation workflow and GitHub sync
This commit is contained in:
parent
5d62ea2df4
commit
3fd655e1f2
37 changed files with 7352 additions and 365 deletions
16
src/Bifrost.Web/Configuration/HostOptions.cs
Normal file
16
src/Bifrost.Web/Configuration/HostOptions.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
namespace Bifrost.Web.Configuration;
|
||||
|
||||
public sealed class BifrostHostOptions
|
||||
{
|
||||
public const string SectionName = "Host";
|
||||
|
||||
public string PublicBaseUrl { get; init; } = string.Empty;
|
||||
|
||||
public string ExpectedHost { get; init; } = string.Empty;
|
||||
|
||||
public bool RequireStrictHostValidation { get; init; } = true;
|
||||
|
||||
public bool IsConfigured =>
|
||||
Uri.TryCreate(PublicBaseUrl, UriKind.Absolute, out _) &&
|
||||
!string.IsNullOrWhiteSpace(ExpectedHost);
|
||||
}
|
||||
Loading…
Reference in a new issue