appsettings.json 2.68 KB
{
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "AllowedHosts": "*",
    "ConnectionStrings": {
        ////本地服务器测试环境 (配置文件key 不能写中文,程序会出现异常)
        //"BaseDBContext": "Data Source = .;Initial Catalog=BaseMES;User=sa;Password=6EjfZkO8o92OjsH7rK+kVg==;Persist Security Info=True",
        //"InterfaceDBContext": "Data Source = .;Initial Catalog=BaseMES;User=sa;Password=6EjfZkO8o92OjsH7rK+kVg==;Persist Security Info=True",
        //"RedisIp": "127.0.0.1:6379,defaultDatabase=10,password=123456",


        ////公司服务器测试环境 RedisDb:sany使用 1,中海油使用 10,最大值是16
        "BaseDBContext": "Data Source=172.16.29.88;Initial Catalog=BaseMES3.0;User=sa;Password=oQT5puQ8c3qkrh0qkADr5w==;Persist Security Info=True",
        "InterfaceDBContext": "Data Source=172.16.29.88;Initial Catalog=BaseMES3.0;User=sa;Password=oQT5puQ8c3qkrh0qkADr5w==;Persist Security Info=True",
        "RedisIp": "172.16.29.88:6379,defaultDatabase=7,password=qaz123456",

        //唐颖本地服务器测试环境 (配置文件key 不能写中文,程序会出现异常)
        //"BaseDBContext": "Data Source = DESKTOP-S4A0FTD\\SQLEXPRESS;Initial Catalog=BaseMES;User=sa;Password=6EjfZkO8o92OjsH7rK+kVg==;Persist Security Info=True",
        //"InterfaceDBContext": "Data Source = DESKTOP-S4A0FTD\\SQLEXPRESS;Initial Catalog=BaseMES;User=sa;Password=6EjfZkO8o92OjsH7rK+kVg==;Persist Security Info=True",
        //"RedisIp": "127.0.0.1:6379,defaultDatabase=10,password=Aa123456",

        "HttpPort": "8801",
        "HttpsPort": "5001",
        "ReportPort": "10099",

        "LoginTitle": "华恒焊接信息管理平台",
        "FaceBaseUrl": "http://172.16.29.88:9065//",
        "AopAllowed": "/api/CNOOC/Mes/V1/Login/Logout,",
        "ResetPwd": "123456--", //用户重置密码


        //服务器IP,防止CQRS漏洞
        "ServerIPList": "localhost,172.16.29.88,172.16.29.87,127.0.0.1",

        "Extend1": "",
        "Extend2": "",
        "Extend3": "",
        "Extend4": "",
        "Extend5": "",
        "Extend6": "",
        "Extend7": "",
        "Extend8": ""
    },
  //自定义配置写这里
  "AppCustomSettings": {
    "copyright": "长沙华恒机器人系统有限公司",

    //扩展字段
    "AppCustomExtend1": "_onLine", //接口线上环境:_onLine  接口线下环境 _off  
    "AppCustomExtend2": "esb@P_SYS_COMPANY_393bb2f058ac4a8ba59510a1a228d383",
    "AppCustomExtend3": "efb03b68f7a0c2a331fc61a491c4b2d7",
    "AppCustomExtend4": "30", //数据库备份文件保留天数

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