farmcontrol-ws/config.json
Tom Butcher a955def849
Some checks reported warnings
farmcontrol/farmcontrol-ws/pipeline/head This commit is unstable
Enhanced CORS configuration in SocketManager and added allowed origins to server settings in config.json.
2026-03-06 23:54:01 +00:00

82 lines
1.7 KiB
JSON

{
"development": {
"server": {
"port": 9090,
"logLevel": "trace",
"corsOrigins": ["https://web.farmcontrol.app", "https://dev.tombutcher.work", "http://localhost:5173", "http://localhost:3000"]
},
"auth": {
"enabled": true,
"keycloak": {
"url": "https://auth.tombutcher.work",
"realm": "master",
"clientId": "farmcontrol-dev"
},
"requiredRoles": []
},
"database": {
"mongo": {
"url": "mongodb://127.0.0.1:27017/farmcontrol"
},
"redis": {
"host": "localhost",
"port": 6379,
"password": ""
}
},
"otpExpiryMins": 0.5
},
"test": {
"server": {
"port": 9091,
"logLevel": "error"
},
"auth": {
"enabled": false,
"keycloak": {
"url": "http://localhost:8080",
"realm": "test",
"clientId": "test-client"
},
"requiredRoles": []
},
"database": {
"mongo": {
"url": "mongodb://127.0.0.1:27017/farmcontrol-test"
},
"redis": {
"host": "localhost",
"port": 6379,
"password": ""
}
},
"otpExpiryMins": 0.5
},
"production": {
"server": {
"port": 8081,
"logLevel": "info",
"corsOrigins": ["https://web.farmcontrol.app"]
},
"auth": {
"enabled": true,
"keycloak": {
"url": "https://auth.tombutcher.work",
"realm": "master",
"clientId": "farmcontrol-client"
},
"requiredRoles": []
},
"database": {
"mongo": {
"url": "mongodb://localhost:27017/farmcontrol"
},
"redis": {
"host": "localhost",
"port": 6379,
"password": ""
}
}
}
}