appsettings.json 907 B

123456789101112131415161718192021222324
  1. {
  2. "Logging": {
  3. "LogLevel": {
  4. "Default": "Debug", // Trace,Debug,Information,Warning,Error,Critical
  5. "System": "Information",
  6. "Microsoft": "Information"
  7. }
  8. },
  9. "AllowedHosts": "*",
  10. "SystemConfig": {
  11. "LoginProvider": "WebApi", // 登录信息保存方式 Cookie Session WebApi
  12. "SnowFlakeWorkerId": 2, // SnowFlake 节点序号
  13. "AllowCorsSite": "http://localhost:8008", // 允许的其他站点访问Api
  14. "DBProvider": "MySql",
  15. "DBConnectionString": "server=localhost;database=yishadb;user=root;password=123456;port=3306;pooling=true;max pool size=20;persist security info=True;charset=utf8mb4;",
  16. "DBCommandTimeout": 180, // 数据库超时时间,单位秒
  17. "DBBackup": "", // 数据库备份路径
  18. "CacheProvider": "Memory", // 缓存使用方式 Memory Redis
  19. "RedisConnectionString": "127.0.0.1:6379"
  20. }
  21. }