You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
2.2 KiB
41 lines
2.2 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using Infrastructure.Application;
|
|
using Infrastructure.Configuration;
|
|
using Infrastructure.Extensions;
|
|
using Infrastructure.Web.Hosting;
|
|
using Microsoft.AspNetCore;
|
|
|
|
namespace FBeeService
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
var host = "localhost";
|
|
WebHost.CreateDefaultBuilder(args)
|
|
.Run<Startup>(new List<EFConfigurationValue> {
|
|
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 = "email:host", Value= "nbaxp.com"},
|
|
new EFConfigurationValue { Id = "email:port", Value= "25"},
|
|
new EFConfigurationValue { Id = "email:user", Value= "admin@nbaxp.com"},
|
|
new EFConfigurationValue { Id = "email:password", Value= "aA123456"},
|
|
new EFConfigurationValue { Id = "server.ip", Value= "" },
|
|
new EFConfigurationValue { Id = "server.urls", Value= "http://*:8008" },
|
|
new EFConfigurationValue { Id = "notify:enabled", Value= "true"},
|
|
new EFConfigurationValue { Id = "notify:host", Value= $"{host}:8001"},
|
|
new EFConfigurationValue { Id = "timer.seconds", Value="600"},
|
|
new EFConfigurationValue { Id = "connectId", Value= Guid.NewGuid().ToBase62() },
|
|
new EFConfigurationValue { Id = "node.number", Value= "所属节点编号" },
|
|
//
|
|
new EFConfigurationValue { Id = "name", Value= "FBeeService服务"},
|
|
new EFConfigurationValue { Id = "logo", Value= "/images/logo.png",Type= InputType.ImageUrl},
|
|
new EFConfigurationValue { Id = "copyright", Value= "Copyright © {now} Company. All rights reserved",Type= InputType.Html}
|
|
});
|
|
}
|
|
}
|
|
} |