appsettings.Development.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "Logging": {
  3. "LogLevel": {
  4. "Default": "Information",
  5. "Microsoft.AspNetCore": "Warning"
  6. }
  7. },
  8. "Upload": {
  9. "uploadUrl": "http://localhost:8888", //本地存储资源访问路径
  10. "localSavePath": "", //本地上传默认文件存储目录 wwwroot
  11. "maxSize": 15, //上传文件大小限制 15M
  12. "notAllowedExt": [ ".bat", ".exe", ".jar", ".js" ],
  13. "requestLimitSize": 50//请求body大小限制
  14. },
  15. "dbConfigs": [
  16. {
  17. "Conn": "server=47.109.31.237;port=3306;user=KxsConfigServer;password=brVSLE47Y32WUy3R;database=KxsConfigServer;charset=utf8;",
  18. "DbType": 0,
  19. "ConfigId": "0",
  20. "IsAutoCloseConnection": true
  21. }
  22. ],
  23. "RedisServer": {
  24. "open": 1,
  25. "Cache": "47.109.31.237:6379,password=klm@redis,defaultDatabase=13,poolsize=50,ssl=false,writeBuffer=10240,prefix=cache:",
  26. "Session": "47.109.31.237:6379,password=klm@redis,defaultDatabase=13,poolsize=50,ssl=false,writeBuffer=10240,prefix=session:"
  27. },
  28. "JwtSettings": {
  29. "Issuer": "ym", //即token的签发者。
  30. "Audience": "ym", //指该token是服务于哪个群体的(群体范围)
  31. "SecretKey": "123456789012345678901234567890",
  32. "Expire": 1440, //jwt登录过期时间(分)
  33. "RefreshTokenTime": 30, //分钟
  34. "TokenType": "Bearer"
  35. },
  36. "InitDb": false, //是否初始化db
  37. "ApiKey": "*ga34|^7" //webapi解密的key
  38. }