appsettings.json 1.95 KB
{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*",

  "ConnectionStrings": {
    //本地服务器测试环境 (配置文件key 不能写中文,程序会出现异常)
    //"BaseDBContext": "Data Source=172.16.29.70;Initial Catalog=IoT;User=sa;Password=oQT5puQ8c3qkrh0qkADr5w==;Persist Security Info=True;Encrypt=True;TrustServerCertificate=True;",
    //"InterfaceDBContext": "Data Source=172.16.29.70;Initial Catalog=IoT;User=sa;Password=oQT5puQ8c3qkrh0qkADr5w==;Persist Security Info=True;Encrypt=True;TrustServerCertificate=True;",
 

    //公司服务器测试环境 RedisDb:sany 使用 1,中海油使用 10,最大值是16
    "BaseDBContext": "Data Source=172.16.29.70;Initial Catalog=IoTUAT;User=sa;Password=oQT5puQ8c3qkrh0qkADr5w==;Persist Security Info=True;Encrypt=True;TrustServerCertificate=True;",
    "InterfaceDBContext": "Data Source=172.16.29.70;Initial Catalog=IoTUAT;User=sa;Password=oQT5puQ8c3qkrh0qkADr5w==;Persist Security Info=True;Encrypt=True;TrustServerCertificate=True;",
    
    "HttpPort": "10099",
    "HttpsPort": "0",

    //登入验证忽略路径
    "AopAllowed": "Login,BulletinBoard,OtherLogin,Upstream,AppCheckVerByAppNameAndVer,Wms",

    //扩展字段
    "Extend1": "26", //默认存部门deptId
    "Extend2": "",
    "Extend3": "",
    "Extend4": "",
    "Extend5": "",
    "Extend6": "",
    "Extend7": "",
    "Extend8": ""
  },

  //自定义配置写这里
  "AppCustomSettings": {
    "copyright": "长沙华恒机器人系统有限公司",
    "AppKey": "hhweb",
    "AppSecret": "hhweb2.0",

    //扩展字段
    "AppCustomExtend1": "_off", //接口线上环境:_onLine  接口线下环境 _off  
    "AppCustomExtend2": "",
    "AppCustomExtend3": "",
    "AppCustomExtend4": "",

    "AppCustomExtend5": "",
    "AppCustomExtend6": "",
    "AppCustomExtend7": "",
    "AppCustomExtend8": ""
  }
}