{ "Weixin": { "Appid": "wx05e75004e657527c", "Secret": "9383aa5517e1d6bf23404dce9c86b0f1", //MCHID "MCHID": "1614987630", //MCHKey "KEY": "brapuk6fon0wachiMlth2t3lb4a0h7ji", //NotifyUrl "NotifyUrl": "https://zytb.ycymedu.com/api/front/WeixinPay/PayNotify" }, "Logging": { "IncludeScopes": false, "Debug": { "LogLevel": { "Default": "Warning" } }, "Console": { "LogLevel": { "Default": "Warning", "Microsoft.Hosting.Lifetime": "Debug" } }, "Log4Net": { "Name": "New_College" } }, "urls": "http://*:8081", // IIS 部署,注释掉 "AllowedHosts": "*", "AppSettings": { "RedisCachingAOP": { "Enabled": true, "ConnectionString": "127.0.0.1:6379", "Password": "Vs_.127134" }, "MemoryCachingAOP": { "Enabled": true }, "LogAOP": { "Enabled": false }, "TranAOP": { "Enabled": false }, "SqlAOP": { "Enabled": false }, "Date": "2018-08-28", "SeedDBEnabled": true, //只生成表结构 "SeedDBDataEnabled": false, //生成表,并初始化数据 "Author": "New_College" }, // 请配置MainDB为你想要的主库的ConnId值,并设置对应的Enabled为true; // *** 单库操作,把 MutiDBEnabled 设为false ***; // *** 多库操作,把 MutiDBEnabled 设为true,其他的从库Enabled也为true **; // 具体配置看视频:https://www.bilibili.com/video/BV1BJ411B7mn?p=6 "MainDB": "WMBLOG_MYSQL", //当前项目的主库,所对应的连接字符串的Enabled必须为true "MutiDBEnabled": true, //是否开启多库模式 "CQRSEnabled": false, //是否开启读写分离模式,必须是单库模式,且数据库类型一致,比如都是SqlServer "DBS": [ /* 对应下边的 DBType MySql = 0, SqlServer = 1, Sqlite = 2, Oracle = 3, PostgreSQL = 4 */ { "ConnId": "WMBLOG_SQLITE", "DBType": 2, "Enabled": false, "HitRate": 50, // 值越大,优先级越高 "Connection": "WMBlog.db" //sqlite只写数据库名就行 }, { "ConnId": "WMBLOG_MSSQL_1", "DBType": 1, "Enabled": false, "HitRate": 40, "Connection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=WMBLOG_MSSQL_1;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", "ProviderName": "System.Data.SqlClient" }, { "ConnId": "WMBLOG_MSSQL_2", "DBType": 1, "Enabled": false, "HitRate": 30, "Connection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=WMBLOG_MSSQL_2;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", "ProviderName": "System.Data.SqlClient" }, { "ConnId": "WMBLOG_MYSQL", "DBType": 0, "Enabled": true, "HitRate": 20, "Connection": "Server=192.168.104.103; Port=3306;SslMode=None;Database=volunteerapp; Uid=volunteerapp; Pwd=Vs..127134;CharSet=utf8mb4;AllowLoadLocalInfile=true;SslMode=none" }, { "ConnId": "MYSQL_CasDoor", "DBType": 0, "Enabled": true, "HitRate": 20, "Connection": "Server=192.168.104.103; Port=3306;SslMode=None;Database=casdoor; Uid=casdoor; Pwd=Vs..127134;CharSet=utf8mb4;AllowLoadLocalInfile=true" }, { "ConnId": "WMBLOG_ORACLE", "DBType": 3, "Enabled": false, "HitRate": 10, "Connection": "Provider=OraOLEDB.Oracle; Data Source=WMBlogDB; User Id=sss; Password=789;", "OracleConnection_other1": "User ID=sss;Password=789;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.8.65)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME = orcl)))" } ], "Audience": { "Secret": "sdfsdfsrty25634kkhllghtdgdfss345t678fs", //不要太短,16位+ "SecretFile": "", //安全。内容就是Secret "Issuer": "New_College", "Audience": "wr" }, "Startup": { "Cors": { "PolicyName": "CorsIpAccess", //策略名称 "EnableAllIPs": true, //是否应用所有的IP // 支持多个域名端口,注意端口号后不要带/斜杆:比如localhost:8000/,是错的 // 注意,http://127.0.0.1:1818 和 http://localhost:1818 是不一样的 "IPs": "http://127.0.0.1:2364,http://localhost:2364,http://127.0.0.1:6391,http://localhost:6391,http://127.0.0.1:8080,http://localhost:8080,http://web.riyuemedia.cn,https://payment.riyuemedia.cn" }, "AppConfigAlert": { "Enabled": true }, "ApiName": "New_College", "IdentityServer4": { "Enabled": false, // 这里默认是false,表示使用jwt,如果设置为true,则表示系统使用Ids4模式 "AuthorizationUrl": "https://ids.neters.club", // 认证中心域名 "ApiName": "new_college.api" // 资源服务器 } }, "Middleware": { "RequestResponseLog": { "Enabled": false }, "IPLog": { "Enabled": true }, "RecordAccessLogs": { "Enabled": true }, "SignalR": { "Enabled": false }, "QuartzNetJob": { "Enabled": true }, "Consul": { "Enabled": false }, "IpRateLimit": { "Enabled": true } }, "IpRateLimiting": { "EnableEndpointRateLimiting": true, //False: globally executed, true: executed for each "StackBlockedRequests": false, //False: Number of rejections should be recorded on another counter "RealIpHeader": "X-Real-IP", "ClientIdHeader": "X-ClientId", "IpWhitelist": [], //ip访问白名单 "EndpointWhitelist": [ "get:/api/xxx", "*:/api/yyy" ], "ClientWhitelist": [ "dev-client-1", "dev-client-2" ], "HttpStatusCode": 429, //返回状态码 "GeneralRules": [ //api规则,结尾一定要带* { "Endpoint": "*:/api/blog*", "Period": "1m", "Limit": 200000 }, { "Endpoint": "*/api/*", "Period": "1s", "Limit": 300000 }, { "Endpoint": "*/api/*", "Period": "1m", "Limit": 3000000 }, { "Endpoint": "*/api/*", "Period": "12h", "Limit": 50000000000 } ] }, "ConsulSetting": { "ServiceName": "BlogCoreService", "ServiceIP": "localhost", "ServicePort": "8081", "ServiceHealthCheck": "/healthcheck", "ConsulAddress": "http://localhost:8500" }, "AliyunSmsSenderConfig": { "accessKeyId": "LTAI4GK6SGUmMX3J9Wyzyt6C", "accessKeySecret": "vTUjL4so42kiuctWEb6WoaxtXs3MLS" }, "AliYunOss": { "wendpoint": "https://static-data.ycymedu.com", "accessKeyId": "LTAI5tKs3TXSbt7E4WMDcxwR", "accessKeySecret": "EvC8MjRaQC1kHubgU4MtecZnofOb0v", "bucket": "static-data-ycymedu", "endpoint": "https://oss-cn-shanghai.aliyuncs.com" }, "Casdoor": { "Endpoint": "https://api.sso.ycymedu.com", "OrganizationName": "六纬生涯", "ApplicationName": "六纬生涯", "ApplicationType": "webapi", "ClientId": "18592781518917", "ClientSecret": "9k1cbc3f546eda35168c3aa3cb91780fbe703f0996c6d123ea96dc85c70bbc0a", "CallbackPath": "http://test.sso.ycymedu.com/login/oauth/authorize?client_id=776d639918192c449537&response_type=code&redirect_uri=http://192.168.100.106:8080/Home/FirstPage&scope=read&state=casdoor", "RequireHttpsMetadata": false }, "WeChatPay": { // 应用号 // 如:微信公众平台AppId、微信开放平台AppId、微信小程序AppId、企业微信CorpId等 "AppId": "wx1bfbd8233a2d3261", "AppSecret": "c12d2bf676a3b11d542efd7f477a72f3", // 商户号 // 为微信支付商户平台的商户号 "MchId": "1614987630", // 商户API密钥 // 为微信支付商户平台的API密钥,请注意不是APIv3密钥 "APIKey": "", // 商户APIv3密钥 // 为微信支付商户平台的APIv3密钥,请注意不是API密钥,v3接口必填 "APIv3Key": "brapuk6fon0wachiMlth2t3lb4a0h7ji", //回调地址 "NotifyUrl": "https://zytb.ycymedu.com/api/front/WeixinPay/PayNotify", "PrivateKey": "cert/apiclient_cert.p12", //(新)证书私钥 "SerialNumber": "1B304596B953D156B37863FF52FCAE40B458C9F2" //(新)证书序列号 }, "SHanDongTel": { "Tel": "15662627992|18724728603|17362186261|15264182912", "Mail": "2461966073@qq.com" }, "MailKit": { "DisplayName": "六纬技术团队", "Password": "Vs..127134", "MailAddress": "yly@ycymedu.com", "IsSsl": "true", "MailServer": "smtp.ym.163.com", "SmtpPort": "465" }, "XiaoETONG": { "app_id": "appn9m3yups9098", "client_id": "xopvGAr405P6261", "secret_key": "AeHT1p4GzDYZuaBLZYOBa0r2Npp22uWv", "basurl": "https://api.xiaoe-tech.com/" } }