|
|
|
@ -12,7 +12,7 @@ namespace IoTCenter
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
var host = Helper.Instance.GetLocalIP().ToString();
|
|
|
|
|
var host = "localhost";
|
|
|
|
|
WebHost.CreateDefaultBuilder(args)
|
|
|
|
|
.Run<Startup>(new List<EFConfigurationValue> {
|
|
|
|
|
new EFConfigurationValue { Id = "openapi.title", Value= "web api" },
|
|
|
|
@ -25,7 +25,7 @@ namespace IoTCenter
|
|
|
|
|
new EFConfigurationValue { Id = "usercenter:login", Value= $"http://{host}:8000/Account/Login"},
|
|
|
|
|
new EFConfigurationValue { Id = "usercenter:logout", Value= $"http://{host}:8000/Account/Logout"},
|
|
|
|
|
new EFConfigurationValue { Id = "usercenter:register", Value= $"http://{host}:8000/Account/Register"},
|
|
|
|
|
new EFConfigurationValue { Id = "influxdb:url", Value= "http://localhost:8086"},
|
|
|
|
|
new EFConfigurationValue { Id = "influxdb:url", Value= $"http://{host}:8086"},
|
|
|
|
|
new EFConfigurationValue { Id = "influxdb:usr", Value= "admin"},
|
|
|
|
|
new EFConfigurationValue { Id = "influxdb:pwd", Value= "admin"},
|
|
|
|
|
//
|
|
|
|
|