File size: 2,115 Bytes
857cdcf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | {
"_comment": " Chahua Development Thailand - Default Configuration",
"_author": " CEO: Saharath C.",
"server": {
"port": 3000,
"host": "localhost",
"cors": {
"enabled": true,
"allowedOrigins": [
"*"
],
"allowedMethods": [
"GET",
"POST",
"PUT",
"DELETE",
"OPTIONS"
],
"allowedHeaders": [
"Content-Type",
"Authorization",
"X-Requested-With"
]
}
},
"security": {
"jwt": {
"secret": "default-secret-change-in-production",
"expiresIn": "24h",
"algorithm": "HS256"
},
"rateLimit": {
"windowMs": 900000,
"maxRequests": 100,
"skipSuccessfulRequests": false
},
"validation": {
"enabled": true,
"strictMode": true
}
},
"logging": {
"level": "info",
"path": "./chahuadev-framework/logs",
"maxSize": 10485760,
"maxFiles": 5,
"enableConsole": true,
"enableFile": true
},
"cache": {
"maxSize": 100,
"defaultTTL": 300000,
"cleanupInterval": 60000,
"enablePersistence": false,
"persistPath": "./chahuadev-framework/logs/cache"
},
"retry": {
"maxAttempts": 3,
"baseDelay": 1000,
"maxDelay": 30000,
"backoffMultiplier": 2,
"jitter": true
},
"rollback": {
"maxSnapshots": 10,
"snapshotPath": "./chahuadev-framework/logs/snapshots",
"autoCleanup": true
},
"security_logger": {
"alertThreshold": 10,
"enableRealTimeAlerts": true,
"logPath": "./chahuadev-framework/logs/security",
"maxLogSize": 10485760,
"maxLogFiles": 5
},
"health": {
"checkInterval": 30000,
"thresholds": {
"cpu": 80,
"memory": 85,
"disk": 90
},
"enableAutoRecovery": true,
"alertCooldown": 300000
},
"plugins": {
"hotReload": true,
"maxExecutionTime": 30000,
"loadOnStartup": true,
"enableLogging": true
},
"api": {
"timeout": 10000,
"maxRetries": 3,
"enableCaching": true
},
"test": {
"timeout": 5000,
"parallel": true,
"coverage": true
}
} |