adjust validation for master url

This commit is contained in:
RaidMax 2023-09-02 13:38:56 -05:00
parent 3192fe35e6
commit 2017eebeba

View File

@ -67,7 +67,7 @@ namespace SharedLibraryCore.Configuration.Validation
RuleFor(_app => _app.MasterUrl) RuleFor(_app => _app.MasterUrl)
.NotNull() .NotNull()
.Must(_url => _url != null && _url.Scheme == Uri.UriSchemeHttp); .Must(_url => _url != null && (_url.Scheme == Uri.UriSchemeHttp || _url.Scheme == Uri.UriSchemeHttps));
RuleFor(_app => _app.CommandPrefix) RuleFor(_app => _app.CommandPrefix)
.NotEmpty(); .NotEmpty();
@ -80,4 +80,4 @@ namespace SharedLibraryCore.Configuration.Validation
.SetValidator(new ServerConfigurationValidator()); .SetValidator(new ServerConfigurationValidator());
} }
} }
} }