{ "AllowedHosts": "*", "Logging": { "LogLevel": { "Default": "Information", //����Default����log4net����д�벻����־ "Admin.Core.Extensions.ApiResponseHandler": "Error" }, "Debug": { "LogLevel": { "Default": "Warning" } }, "Console": { "LogLevel": { "Default": "Warning", "Microsoft.Hosting.Lifetime": "Debug" } }, "Log4Net": { "Name": "Admin.Core" } }, "AppSettings": { "RedisCachingAOP": { "Enabled": false, "ConnectionString": "" }, "MemoryCachingAOP": { "Enabled": false }, "LogAOP": { "Enabled": false }, "TranAOP": { "Enabled": false }, "SqlAOP": { "Enabled": false, "OutToLogFile": { "Enabled": false }, "OutToConsole": { "Enabled": false } }, "FileRootPath": "/file/", "Date": "2018-08-28", "Author": "Admin.Core", "UseLoadTest": true, "CacheTimeOut": 60, //���������ػ������ʱ�䣺���� "ApiRoot": "http://localhost:55014" }, "Audience": { "Secret": "dk6Vv3oTuo2OMU18w86E3j11DtM7RUX5icQtA0DCKuhYDRUqBLIiL", //��Ҫ̫�̣�16λ+ "SecretFile": "E:\\my-file\\admin.core.audience.secret.txt", //��ȫ�����ݾ���Secret "Issuer": "Admin.Core", "Audience": "wr", "Expiration": "6000000" //�ӿڵĹ���ʱ�� }, // ������MainDBΪ����Ҫ�������ConnIdֵ,�����ö�Ӧ��EnabledΪtrue�� // *** ����������� MutiDBEnabled ��Ϊfalse ***�� // *** ���������� MutiDBEnabled ��Ϊtrue�������Ĵӿ�EnabledҲΪtrue **�� // �������ÿ���Ƶ��https://www.bilibili.com/video/BV1BJ411B7mn?p=6 "MainDB": "ADMIN_SQLITE", //��ǰ��Ŀ�����⣬����Ӧ�������ַ�����Enabled����Ϊtrue "MutiDBEnabled": false, //�Ƿ�����ģʽ "CQRSEnabled": false, //�Ƿ����д����ģʽ�������ǵ���ģʽ�������ݿ�����һ�£����綼��SqlServer "DBS": [ /* ��Ӧ�±ߵ� DBType MySql = 0, SqlServer = 1, Sqlite = 2, Oracle = 3, PostgreSQL = 4, Dm = 5,//���� Kdbndp = 6,//�˴��� */ { "ConnId": "ADMIN_SQLITE", "DBType": 1, "Enabled": true, "HitRate": 50, "Connection": "Data Source=localhost;Initial Catalog=Hsdb;User ID=sa;Password=Password01!;Integrated Security=false;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", //"Connection": "Data Source=.;Initial Catalog=RCEP_Market;User ID=sa;Password=Password01!;Integrated Security=false;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", "ProviderName": "System.Data.SqlClient" } ], "Startup": { "Cors": { "PolicyName": "CorsIpAccess", //�������� "EnableAllIPs": true, //��Ϊtrueʱ����������IP���ɷ��ʡ� // ֧�ֶ�������˿ڣ�ע��˿ںź�Ҫ��/б�ˣ�����localhost:8000/���Ǵ�� // ע�⣬http://127.0.0.1:1818 �� http://localhost:1818 �Dz�һ���� "IPs": "http://localhost:81,http://127.0.0.1:81" }, "AppConfigAlert": { "Enabled": true }, "ApiName": "Admin.Core", "IdentityServer4": { "Enabled": false, // ����Ĭ����false����ʾʹ��jwt���������Ϊtrue�����ʾϵͳʹ��Ids4ģʽ "AuthorizationUrl": "http://localhost:5004", // ��֤�������� "ApiName": "admin.core.api", // ��Դ������ }, "RedisMq": { "Enabled": false //redis ��Ϣ���� }, "MiniProfiler": { "Enabled": false //���ܷ������� }, "Nacos": { "Enabled": false //Nacosע������ } }, "Redis": { //"ConnectionString": "127.0.0.1:6379" "ConnectionString": "13.75.92.230:6379" }, "RabbitMQ": { "Enabled": true, "Connection": "http://localhost:15672/", "UserName": "jojo", "Password": "123456", "RetryCount": 3 }, "EventBus": { "Enabled": true, "SubscriptionClientName": "Admin.Core" }, "Middleware": { "RequestResponseLog": { "Enabled": true }, "IPLog": { "Enabled": false }, "RecordAccessLogs": { "Enabled": true, "IgnoreApis": "" }, "SignalR": { "QuartzNetJob": null, "Enabled": true }, "QuartzNetJob": { "Enabled": true }, "Consul": { "Enabled": false }, "IpRateLimit": { "Enabled": false } }, "IpRateLimiting": { "EnableEndpointRateLimiting": false, //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": [], //������ "EndpointWhitelist": [ "get:/api/xxx", "*:/api/yyy" ], "ClientWhitelist": [ "dev-client-1", "dev-client-2" ], "QuotaExceededResponse": { "Content": "{{\"status\":429,\"msg\":\"���ʹ���Ƶ�������Ժ�����\",\"success\":false}}", "ContentType": "application/json", "StatusCode": 429 }, "HttpStatusCode": 429, //����״̬�� "GeneralRules": [ //api����,��βһ��Ҫ��* { "Endpoint": "*:/api/Admin*", "Period": "1m", "Limit": 20 }, { "Endpoint": "*/api/*", "Period": "1s", "Limit": 3 }, { "Endpoint": "*/api/*", "Period": "1m", "Limit": 30 }, { "Endpoint": "*/api/*", "Period": "12h", "Limit": 500 } ] }, "LogFiedOutPutConfigs": { "tcpAddressHost": "", // ���elk��tcp���ӵ�ַ "tcpAddressPort": 0, // ���elk��tcp�˿ں� "ConfigsInfo": [ // ���õ����elk�ڵ����� �����ﶯ̬��ʶ { "FiedName": "applicationName", "FiedValue": "Admin.Core.Api" } ] } }