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; }
///
/// JWT签名密钥,用于本地认证模式下生成和验证JWT Token
///
public string JwtSecret { get; set; } = "openauth_default_jwt_secret_key_2024";
///
/// JWT Token过期天数,默认10天
///
public int JwtExpireDays { get; set; } = 10;
//是否是Identity授权方式
public bool IsIdentityAuth => !string.IsNullOrEmpty(IdentityServerUrl);
}
}