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.
iot/projects/StudyCenter/Program.cs

38 lines
2.1 KiB

using System.Collections.Generic;
using Infrastructure.Application;
using Infrastructure.Configuration;
using Infrastructure.Extensions;
using Infrastructure.Web.Hosting;
using Microsoft.AspNetCore;
namespace StudyCenter
{
public class Program
{
public static void Main(string[] args)
{
var host = "localhost";
WebHost.CreateDefaultBuilder(args)
.Run<Startup>(new List<EFConfigurationValue> {
new EFConfigurationValue { Id = "usercenter:key", Value= "123456"},
new EFConfigurationValue { Id = "usercenter:login", Value= $"http://{host}:8010/Account/Login"},
new EFConfigurationValue { Id = "usercenter:logout", Value= $"http://{host}:8010/Account/Logout"},
new EFConfigurationValue { Id = "usercenter:register", Value= $"http://{host}:8010/Account/Register"},
//
new EFConfigurationValue { Id = "name", Value= "学习平台"},
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},
//
new EFConfigurationValue { Id = "server.urls", Value= "http://*:8012" },
new EFConfigurationValue { Id = "BasePath", Value= "/StudyCenter"},
new EFConfigurationValue { Id = "security:key", Value= "111111111111111111111111"},
new EFConfigurationValue { Id = "jwt:key", Value= "111111111111111111111111"},
new EFConfigurationValue { Id = "jwt:issuer", Value= "111111111111111111111111"},
new EFConfigurationValue { Id = "jwt:audience", Value= "111111111111111111111111"},
new EFConfigurationValue { Id = "openapi.name", Value= "v1" },
new EFConfigurationValue { Id = "openapi.title", Value= "web api" },
new EFConfigurationValue { Id = "openapi.version", Value= "1.0" },
});
}
}
}