mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-09-10 09:05:34 +00:00
- New aclManager.ts rewrites a user's ACL block (all linked nodes) and sends SIGHUP to the Mosquitto container whenever autoLinkOwnerNodeIds runs at owner login, eliminating the need to manually edit the ACL file when a user connects a second node. - requireOwnerSession now resolves node IDs from owner_account_nodes on every request instead of using the frozen session cookie list, so manually- or auto-linked nodes are visible without re-login. - docker-compose: mount mosquitto config dir (rw) and Docker socket into backend so it can update the ACL file and signal Mosquitto. - Add dockerode dependency for container SIGHUP signalling. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
816 B
JSON
35 lines
816 B
JSON
{
|
|
"name": "meshcore-analytics-backend",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsx watch src/index.ts",
|
|
"start": "node dist/index.js"
|
|
},
|
|
"dependencies": {
|
|
"@michaelhart/meshcore-decoder": "^0.2.7",
|
|
"compression": "^1.7.4",
|
|
"cors": "^2.8.5",
|
|
"dockerode": "^4.0.10",
|
|
"express": "^4.19.2",
|
|
"express-rate-limit": "^7.4.1",
|
|
"ioredis": "^5.4.1",
|
|
"mqtt": "^5.10.1",
|
|
"pg": "^8.13.1",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/compression": "^1.7.5",
|
|
"@types/cors": "^2.8.17",
|
|
"@types/dockerode": "^4.0.1",
|
|
"@types/express": "^4.17.21",
|
|
"@types/node": "^20.17.6",
|
|
"@types/pg": "^8.11.10",
|
|
"@types/ws": "^8.5.12",
|
|
"tsx": "^4.19.1",
|
|
"typescript": "^5.6.3"
|
|
}
|
|
}
|