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.
39 lines
2.2 KiB
39 lines
2.2 KiB
using Infrastructure.Application;
|
|
using Infrastructure.Configuration;
|
|
using Infrastructure.Web.Hosting;
|
|
using Microsoft.AspNetCore;
|
|
using System.Collections.Generic;
|
|
|
|
namespace UserCenter
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
WebHost.CreateDefaultBuilder(args)
|
|
.Run<Startup>(new List<EFConfigurationValue> {
|
|
new EFConfigurationValue { Id = "openapi.title", Value= "web api" },
|
|
new EFConfigurationValue { Id = "openapi.version", Value= "1.0" },
|
|
new EFConfigurationValue { Id = "server.urls", Value= "http://*:8010" },
|
|
new EFConfigurationValue { Id = "security:key", Value= "111111111111111111111111"},
|
|
new EFConfigurationValue { Id = "jwt:key", Value= "111111111111111111111111"},
|
|
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 = "sms:url", Value= "https://api.netease.im/sms/sendcode.action"},
|
|
new EFConfigurationValue { Id = "sms:key", Value= "54ebdf1f4364ddd8ff6f82f88d630a76"},
|
|
new EFConfigurationValue { Id = "sms:secret", Value= "c49d42b67798"},
|
|
//
|
|
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 = "MaxFailedAccessAttemptsBeforeLockout", Value= "5"},
|
|
new EFConfigurationValue { Id = "DefaultAccountLockoutMinutes", Value= "10"},
|
|
new EFConfigurationValue { Id = "CaptchaSeconds", Value= "60"},
|
|
new EFConfigurationValue { Id = "RegisterDisabled",Value="false"}
|
|
});
|
|
}
|
|
}
|
|
} |