Files
P42_wssGateway/wssGatewayConfig.json
T
2025-09-21 20:09:42 +00:00

57 lines
2.0 KiB
JSON

{
"serviceName": "wssGateway",
"server": {
"listenHost": "127.0.0.1",
"listenPort": 3999,
"listenPath": "/msgbus",
"keepAliveInterval": "30",
"keepAliveTimeout": "5",
"XXcertFile": "/etc/letsencrypt/live/42.internike.com/fullchain.pem",
"XXcertKeyFile": "/etc/letsencrypt/live/42.internike.com/privkey.pem",
"challengeExpiration": 20,
"unsecure": true,
"healthCheckPath": "/status",
"devotpToken": "qhsdfkjhqsgdfkqhs",
"systemChannels": {
"onlineUsers": "onlineUsers"
}
},
"accessRights":[
{
"roles": "*",
"mustSubscribe": [ "system:notifs:[UID]", "onlineUsers", "system:notifs" ],
"canSubscribe": ["gps:*","agents:*"],
"canPublish": [ ],
"canSet": [ "[UID]:userPrefs" ],
"canGet": [ "[UID]:userPrefs"]
},
{
"roles": ["admin"],
"mustSubscribe": ["system:adminNotifs"],
"canSubscribe": [ "infraNotifs:*", "gps:*","agents:*"],
"canPublish": ["gps:*", "agents:*", "system:notifs:*", "system:notifs", "infraNotifs:*"],
"canSet": ["*:userPrefs"],
"canGet": ["*:userPrefs"],
"canDo": ["getActiveUsers", "killSessions","reloadAccessRights", "getAccessRights", "getPlatformState", "setPlatformState", "redPill"]
}
],
"redis":{
"host": "127.0.0.1",
"tls":false,
"port": 6379,
"Xuser": "msgbus",
"Xpass": "yj465sqfCTA0bKDw3zEYg8OqYl9Tv",
"user": "",
"pass": "",
"historizeChannels": [ "userchans:*" ],
"historizeMax": 1000,
"authTokenPrefix": "authorizer:message_bus_user_",
"challengePrefix": "msgBusChallenge:",
"basePrefix": "messageBus:",
"storePrefix": "messageBus:Store:",
"storeMaxSize": 51200,
"historizePrefix": "histoChan:",
"platformStateKey": "authorizer:platformDown"
}
}