- Replaced in-memory caching with Redis for object and list caching in database operations. - Introduced a new RedisServer class for managing Redis connections and operations. - Updated cache retrieval and update functions to handle asynchronous operations with Redis. - Enhanced logging for cache operations to improve traceability of cache hits, misses, and errors. - Adjusted configuration to include Redis settings in config.json.
55 lines
1.2 KiB
JSON
55 lines
1.2 KiB
JSON
{
|
|
"development": {
|
|
"server": {
|
|
"port": 9090,
|
|
"logLevel": "debug"
|
|
},
|
|
"auth": {
|
|
"enabled": true,
|
|
"keycloak": {
|
|
"url": "https://auth.tombutcher.work",
|
|
"realm": "master",
|
|
"clientId": "farmcontrol-client",
|
|
"clientSecret": "GPyh59xctRX83yfKWb83ShK6VEwHIvLF"
|
|
},
|
|
"requiredRoles": []
|
|
},
|
|
"database": {
|
|
"etcd": {
|
|
"host": "localhost",
|
|
"port": 2379
|
|
},
|
|
"mongo": {
|
|
"url": "mongodb://127.0.0.1:27017/farmcontrol"
|
|
},
|
|
"redis": { "host": "localhost", "port": 6379, "password": "" }
|
|
},
|
|
"otpExpiryMins": 0.5
|
|
},
|
|
"production": {
|
|
"server": {
|
|
"port": 8081,
|
|
"logLevel": "info"
|
|
},
|
|
"auth": {
|
|
"enabled": true,
|
|
"keycloak": {
|
|
"url": "https://auth.tombutcher.work",
|
|
"realm": "master",
|
|
"clientId": "farmcontrol-client",
|
|
"clientSecret": "GPyh59xctRX83yfKWb83ShK6VEwHIvLF"
|
|
},
|
|
"requiredRoles": []
|
|
},
|
|
"database": {
|
|
"etcd": {
|
|
"host": "localhost",
|
|
"port": 2379
|
|
},
|
|
"mongo": {
|
|
"url": "mongodb://farmcontrol.tombutcher.local:27017/farmcontrol"
|
|
}
|
|
}
|
|
}
|
|
}
|