123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- {
- "Logging": {
- "LogLevel": {
- "Default": "Information",
- "Microsoft.AspNetCore": "Warning"
- }
- },
- "AllowedHosts": "*",
- "CAP": {
- "RabbitMq": {
- "HostName": "",
- "Port": 5672,
- "UserName": "",
- "Password": ""
- }
- },
- "SlideCaptcha": {
- "ExpirySeconds": 300, // 缓存过期时长
- "StoreageKeyPrefix": "admin:captcha:", // 缓存前缀
- "Tolerant": 0.02, // 容错值(校验时用,缺口位置与实际滑动位置匹配容错范围)
- "Backgrounds": [ // 背景图配置
- {
- "Type": "file",
- "Data": "wwwroot/captcha/jigsaw/backgrounds/1.jpg"
- },
- {
- "Type": "file",
- "Data": "wwwroot/captcha/jigsaw/backgrounds/2.jpg"
- },
- {
- "Type": "file",
- "Data": "wwwroot/captcha/jigsaw/backgrounds/3.jpg"
- },
- {
- "Type": "file",
- "Data": "wwwroot/captcha/jigsaw/backgrounds/4.jpg"
- },
- {
- "Type": "file",
- "Data": "wwwroot/captcha/jigsaw/backgrounds/5.jpg"
- }
- ],
- // Templates不配置,则使用默认模板
- "Templates": [
- //{
- // "Slider": {
- // "Type": "file",
- // "Data": "wwwroot/captcha/jigsaw/templates/1/transparent.png"
- // },
- // "Hole": {
- // "Type": "file",
- // "Data": "wwwroot/captcha/jigsaw/templates/1/dark.png"
- // }
- //}
- ]
- }
- }
|