Merge remote-tracking branch 'origin/main' into fix/agent-durable-camera-status
This commit is contained in:
commit
3c4b8c95f5
18 files changed
+455
-102
No files matched your search
@@ -39,6 +39,10 @@ if (!string.IsNullOrEmpty(sentryDsn))
|
||||
builder.Services.AddOptions<AgentOptions>()
|
||||
.BindConfiguration(AgentOptions.SectionName)
|
||||
.ValidateDataAnnotations()
|
||||
.Validate(options => Uri.TryCreate(options.CentralUrl, UriKind.Absolute, out var centralUri) &&
|
||||
(centralUri.Scheme == Uri.UriSchemeHttps ||
|
||||
(options.AllowInsecureHttp && centralUri.Scheme == Uri.UriSchemeHttp)),
|
||||
"Agent:CentralUrl must use HTTPS unless Agent:AllowInsecureHttp is explicitly enabled.")
|
||||
.ValidateOnStart();
|
||||
|
||||
// HTTP clients
|
||||
|
||||
Reference in new issue
Block a user