liaoxujun@qq.com
2023-07-26 193068f7b5eed5c5722c16b31ec170564c455031
DocumentServiceAPI.Web.Entry/appsettings.json
@@ -10,9 +10,46 @@
  "AllowedHosts": "*",
  "ConnectionConfigs": [
    {
      "ConnectionString": "Data Source=./Furion.db",
      "DbType": "Sqlite",
      "ConfigId": "default", //多库配置ID
      "ConnectionString": "Server=localhost\\SQLEXPRESS;Database=DocApi;User ID=sa;Password=123456;",
      "DbType": "SqlServer",
      "IsAutoCloseConnection": true
    }
  ]
  ],
  //swags 名称配置 默认分组
  "[openapi:Default]": {
    "Title": "标书管理系统服务",
    "Order": 0,
    "Description": "这个一个很好用标书管理系统服务软件",
    "Version": "1.0.0",
    "TermsOfService": "http://www.51zhengcai.com",
    "Contact": {
      "Name": "政采咨询有限公司",
      "Url": "http://www.51zhengcai.com"
    },
    "License": {
      "Name": "政采咨询有限公司",
      "Url": "http://www.51zhengcai.com"
    }
  },
  "JWTSettings": {
    "ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true
    "IssuerSigningKey": "129(*dasd09213)*(*jKDl", // 密钥,string 类型,必须是复杂密钥,长度大于16
    "ValidateIssuer": true, // 是否验证签发方,bool 类型,默认true
    "ValidIssuer": "www.51zhengcai.com", // 签发方,string 类型
    "ValidateAudience": true, // 是否验证签收方,bool 类型,默认true
    "ValidAudience": "www.51zhengcai.com", // 签收方,string 类型
    "ValidateLifetime": true, // 是否验证过期时间,bool 类型,默认true,建议true
    "ExpiredTime": 20, // 过期时间,long 类型,单位分钟,默认20分钟
    "ClockSkew": 5, // 过期时间容错值,long 类型,单位秒,默认 5秒
    "Algorithm": "HS256" // 加密算法,string 类型,默认 HS256
  }
}