appsettings.Development.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.108.62.166;port=3306;user=root;password=bNWeNOQrELFvZtpx;database=Lhb;charset=utf8;",
  18. "DbType": 0,
  19. "ConfigId": "0",
  20. "IsAutoCloseConnection": true
  21. }
  22. ],
  23. "RedisServer": {
  24. "open": 1,
  25. "Cache": "47.108.62.166:6379,password=klm@redis,defaultDatabase=5,poolsize=50,ssl=false,writeBuffer=10240,prefix=cache:",
  26. "Session": "47.108.62.166:6379,password=klm@redis,defaultDatabase=5,poolsize=50,ssl=false,writeBuffer=10240,prefix=session:"
  27. },
  28. "OssConfigs": {
  29. "Host": "",
  30. "Endpoint": "",
  31. "Key": "",
  32. "Secret": "",
  33. "BucketName": ""
  34. },
  35. "JwtSettings": {
  36. "Issuer": "ym", //即token的签发者。
  37. "Audience": "ym", //指该token是服务于哪个群体的(群体范围)
  38. "SecretKey": "123456789012345678901234567890",
  39. "Expire": 1440, //jwt登录过期时间(分)
  40. "RefreshTokenTime": 30, //分钟
  41. "TokenType": "Bearer"
  42. },
  43. "InitDb": false, //是否初始化db
  44. "ApiKey": "*ga34|^7", //webapi解密的key
  45. "Host": "http://xx.xx.com"
  46. }