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.
34 lines
1.8 KiB
34 lines
1.8 KiB
using Infrastructure.Application;
|
|
using Infrastructure.Configuration;
|
|
using Infrastructure.Web.Hosting;
|
|
using Microsoft.AspNetCore;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ManagementCenter
|
|
{
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1052:Static holder types should be Static or NotInheritable", Justification = "<挂起>")]
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
Console.OutputEncoding = System.Text.Encoding.UTF8;
|
|
WebHost.CreateDefaultBuilder(args)
|
|
.Run<Startup>(new List<EFConfigurationValue> {
|
|
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://*:8011" },
|
|
new EFConfigurationValue { Id = "BasePath", Value= "/ManagementCenter"},
|
|
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" },
|
|
});
|
|
}
|
|
}
|
|
} |