0
0

appsettings.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "Logging": {
  3. "LogLevel": {
  4. "Default": "Information",
  5. "Microsoft.AspNetCore": "Warning"
  6. }
  7. },
  8. "AllowedHosts": "*",
  9. "CAP": {
  10. "RabbitMq": {
  11. "HostName": "",
  12. "Port": 5672,
  13. "UserName": "",
  14. "Password": ""
  15. }
  16. },
  17. "SlideCaptcha": {
  18. "ExpirySeconds": 300, // 缓存过期时长
  19. "StoreageKeyPrefix": "admin:captcha:", // 缓存前缀
  20. "Tolerant": 0.02, // 容错值(校验时用,缺口位置与实际滑动位置匹配容错范围)
  21. "Backgrounds": [ // 背景图配置
  22. {
  23. "Type": "file",
  24. "Data": "wwwroot/captcha/jigsaw/backgrounds/1.jpg"
  25. },
  26. {
  27. "Type": "file",
  28. "Data": "wwwroot/captcha/jigsaw/backgrounds/2.jpg"
  29. },
  30. {
  31. "Type": "file",
  32. "Data": "wwwroot/captcha/jigsaw/backgrounds/3.jpg"
  33. },
  34. {
  35. "Type": "file",
  36. "Data": "wwwroot/captcha/jigsaw/backgrounds/4.jpg"
  37. },
  38. {
  39. "Type": "file",
  40. "Data": "wwwroot/captcha/jigsaw/backgrounds/5.jpg"
  41. }
  42. ],
  43. // Templates不配置,则使用默认模板
  44. "Templates": [
  45. //{
  46. // "Slider": {
  47. // "Type": "file",
  48. // "Data": "wwwroot/captcha/jigsaw/templates/1/transparent.png"
  49. // },
  50. // "Hole": {
  51. // "Type": "file",
  52. // "Data": "wwwroot/captcha/jigsaw/templates/1/dark.png"
  53. // }
  54. //}
  55. ]
  56. }
  57. }