using System.Collections.Generic;
namespace Infrastructure
{
///
/// 配置项
///
public class AppSetting
{
public AppSetting()
{
SSOPassport = "http://localhost:52789";
Version = "";
UploadPath = "";
IdentityServerUrl = "";
}
///
/// SSO地址
///
public string SSOPassport { get; set; }
///
/// 版本信息
/// 如果为demo,则屏蔽Post请求
///
public string Version { get; set; }
///
/// 数据库类型 SqlServer、MySql
///
public Dictionary DbTypes { get; set; }
/// 附件上传路径
public string UploadPath { get; set; }
//identity授权的地址
public string IdentityServerUrl { get; set; }
///
/// Redis服务器配置
///
public string RedisConf { get; set; }
//是否是Identity授权方式
public bool IsIdentityAuth => !string.IsNullOrEmpty(IdentityServerUrl);
}
}