Configures telemetry using external file
All checks were successful
Build, Push and Run Container / build (push) Successful in 25s

Reads telemetry configuration parameters such as hostname, port, and CA certificate from an external JSON file.
This decouples configuration from code, allowing for easier updates and management of telemetry settings.
This commit is contained in:
2025-08-17 12:27:32 +02:00
parent 701b578b71
commit f724e59f7f
3 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
using System.Text.Json.Serialization;
namespace ProofOfConcept.Models;
public class ValidationModel
{
[JsonPropertyName("hostname")] public string HostName { get; set; } = "";
[JsonPropertyName("port")] public ushort Port { get; set; } = 443;
[JsonPropertyName("ca")] public string CA { get; set; } = "";
}