diff --git a/config.json b/config.json new file mode 100644 index 0000000..8d9e675 --- /dev/null +++ b/config.json @@ -0,0 +1,106 @@ +{ + "accessRights": [ + { + "canDo": [ + "RELOADCONFIG", + "GETCONFIG" + ], + "roles": [ + "admin" + ] + }, + { + "canDo": [ + "GETAGENTPOSITION", + "GETAGENTSINPRISM" + ], + "roles": "*" + }, + { + "canDo": [ + "STARTSIMULATION", + "STOPSIMULATION" + ], + "roles": "*" + } + ], + "gps": { + "gpsActionsChannel": "system:requests:gps", + "gpsActionsReply": "system:replies:[UID]", + "storage": { + "agentHashKey": "system:gps:agent:[UID]", + "agentsIndexKey": "system:gps:agents", + "positionsStream": "system:gps:positions", + "streamMaxLen": 100000 + }, + "agentVectorChangeChannel": "arena:agents:*", + "collisionsChannel": "arena:agents:[UID]", + "lifecycle": { + "arenaChannel": "arena:lifecycle", + "godsReadyChannel": "arena:gods:ready" + }, + "arenaStorage": { + "agentHashKey": "arena:agents:[UID]", + "agentsIndexKey": "arena:agents" + }, + "senderId": "gps", + "nearMissDistance": 1, + "prismTimeHeight": 60, + "collisionTickMs": 100, + "prismRefreshLeadSeconds": 1 + }, + "maestro": { + "maestroActionsChannel": "system:requests:maestro", + "maestroActionsReply": "system:replies:[UID]", + "senderId": "maestro", + "lifecycle": { + "arenaChannel": "arena:lifecycle", + "godsReadyChannel": "arena:gods:ready" + }, + "expectedGods": ["gps"], + "readyTimeoutMs": 30000 + }, + "mysql": { + "socketPath": "/var/run/mysqld/mysqld.sock", + "database": "p42GUI" + }, + "observer": { + "observerActionsChannel": "system:requests:observer", + "observerActionsReply": "system:replies:[UID]", + "senderId": "observer", + "lifecycle": { + "arenaChannel": "arena:lifecycle", + "godsReadyChannel": "arena:gods:ready" + } + }, + "systemMesh": { + "redis": [ + { + "redisId": "SYS_1", + "role": "primary", + "host": "127.0.0.1", + "tls": false, + "port": 6380, + "user": "", + "pass": "", + "chansNamespace": "system:", + "basePrefix": "messageBus:" + } + ] + }, + "arenaMesh": { + "redis": [ + { + "redisId": "ARN_1", + "role": "primary", + "host": "127.0.0.1", + "tls": false, + "port": 6379, + "user": "", + "pass": "", + "chansNamespace": "arena:", + "basePrefix": "messageBus:" + } + ] + } +}