|
|
|
@ -15,14 +15,15 @@ namespace IoTNode
|
|
|
|
|
Console.OutputEncoding = System.Text.Encoding.UTF8;
|
|
|
|
|
var host = "localhost";
|
|
|
|
|
var stream = "192.168.3.124";
|
|
|
|
|
var cpuNumber = Helper.Instance.GetCPUNumber();
|
|
|
|
|
WebHost.CreateDefaultBuilder(args)
|
|
|
|
|
.Run<Startup>(new List<EFConfigurationValue> {
|
|
|
|
|
new EFConfigurationValue { Id = "id", Value= "根据设备编号生成的授权码" },
|
|
|
|
|
new EFConfigurationValue { Id = "sn", Value= cpuNumber },
|
|
|
|
|
new EFConfigurationValue { Id = "code", Value= "根据设备编号生成的授权码" },
|
|
|
|
|
new EFConfigurationValue { Id = "openapi.name", Value= "v1" },
|
|
|
|
|
new EFConfigurationValue { Id = "openapi.title", Value= "fbee api" },
|
|
|
|
|
new EFConfigurationValue { Id = "openapi.version", Value= "1.0" },
|
|
|
|
|
new EFConfigurationValue { Id = "security:key", Value= "111111111111111111111111"},
|
|
|
|
|
new EFConfigurationValue { Id = "security:iv", Value= "11111111"},
|
|
|
|
|
new EFConfigurationValue { Id = "jwt:key", Value= "111111111111111111111111"},
|
|
|
|
|
new EFConfigurationValue { Id = "email:host", Value= "nbaxp.com"},
|
|
|
|
|
new EFConfigurationValue { Id = "email:port", Value= "25"},
|
|
|
|
@ -33,8 +34,6 @@ namespace IoTNode
|
|
|
|
|
new EFConfigurationValue { Id = "notify:enabled", Value= "true"},
|
|
|
|
|
new EFConfigurationValue { Id = "notify:host", Value= $"{host}:8001"},
|
|
|
|
|
new EFConfigurationValue { Id = "timer.seconds", Value="60"},
|
|
|
|
|
new EFConfigurationValue { Id = "connectId", Value= Helper.Instance.GetCPUNumber() },
|
|
|
|
|
new EFConfigurationValue { Id = "node.number", Value= Helper.Instance.GetCPUNumber() },
|
|
|
|
|
new EFConfigurationValue { Id = "influxdb:url", Value= "http://localhost:8086"},
|
|
|
|
|
new EFConfigurationValue { Id = "influxdb:usr", Value= "admin"},
|
|
|
|
|
new EFConfigurationValue { Id = "influxdb:pwd", Value= "admin"},
|
|
|
|
|