SPB Git

Repository Public

mld-manifest.json 8.3 KB 233 lines json

1{2 "app": "maclustr-command-center",3 "label": "MacLustr Command Center — pilotage du cluster (clustr.spboucher.ai)",4 "domain": "clustr.spboucher.ai",5 "port": 8800,6 "health_path": "/api/v1/health/ready",7 "dir": "~/apps/maclustr-command-center",8 "sync_excludes": [9  ".DS_Store",10  "node_modules/",11  ".next/",12  "/dist/",13  ".build/",14  "DerivedData/",15  ".claude/",16  "test-results/",17  "playwright-report/"18 ],19 "requires": {20  "runtimes": [21   "node",22   "pm2",23   "pnpm",24   "postgresql@17"25  ],26  "ram_gb": 3,27  "ports": [28   8800,29   8801,30   8802,31   8803,32   8804,33   880534  ]35 },36 "placement": {37  "pin": "M4M64c",38  "prefer": null,39  "avoid": [40   "M1M32",41   "M4M64a",42   "M4M64b"43  ],44  "reason": "Base PostgreSQL mcc, AC des agents et clés de signature locales (~/.config/mcc) : ne pas déplacer avec mld move sans suivre docs/OPERATIONS.md (les données et les secrets ne suivent pas)."45 },46 "hooks": {47  "post_sync": [48   "set -o pipefail; export PATH=\"/opt/homebrew/bin:$PATH\"; make build 2>&1 | tail -3; test -x dist/control-api && echo '  backend ok'",49   "set -o pipefail; export PATH=\"/opt/homebrew/bin:$PATH\"; if [ -f apps/web/package.json ]; then make web-release 2>&1 | tail -3; test -f dist/web/server.js && echo '  web ok'; else echo '  web absent (API only)'; fi"50  ],51  "post_start": []52 },53 "tunnel": {54  "domain": "clustr.spboucher.ai",55  "gateway": "BHS64",56  "websocket": true,57  "note": "DNS clustr.spboucher.ai → 51.161.112.61 en place (vérifié 2026-11-18)"58 },59 "notes": "3 services Go (dist/control-api, telemetry-ingest, action-orchestrator) + web Next standalone (dist/web) + sauvegarde chiffrée nocturne (mccctl backup → ~/mcc-backups + copie M3U96b:~/backups/maclustr-command-center par la clé restreinte mcc-backup). Secrets : ~/.config/mcc (AC agents, clés de signature, clé de sauvegarde — copie hors nœud obligatoire). Rebuild sur le nœud : make build && pm2 restart mcc-control-api mcc-telemetry-ingest mcc-action-orchestrator. Administration hors bande : dist/mccctl (voir docs/OPERATIONS.md).",60 "extra_paths": [],61 "ngrok": null,62 "launchd": [],63 "env_overrides": {},64 "ka_repo": false,65 "processes": [66  {67   "name": "mcc-control-api",68   "manager": "pm2",69   "script": "{{HOME}}/apps/maclustr-command-center/dist/control-api",70   "args": [],71   "cwd": "{{HOME}}/apps/maclustr-command-center",72   "autorestart": true,73   "max_memory_restart": "600M",74   "interpreter": "none",75   "cron_restart": null,76   "env": {77    "MCC_ENV": "prod",78    "MCC_DATABASE_URL": "postgres://127.0.0.1/mcc?sslmode=disable",79    "MCC_SECRETS_DIR": "{{HOME}}/.config/mcc",80    "MCC_PUBLIC_ORIGIN": "https://clustr.spboucher.ai",81    "MCC_RP_ID": "clustr.spboucher.ai",82    "MCC_API_LISTEN": "0.0.0.0:8800",83    "MCC_TRUSTED_PROXIES": "10.67.0.1,127.0.0.1",84    "MCC_WEB_UPSTREAM": "http://127.0.0.1:8803",85    "MCC_INGEST_LISTEN": "127.0.0.1:8801",86    "MCC_ORCHESTRATOR_LISTEN": "127.0.0.1:8802",87    "MCC_INGEST_SIGNED_LISTEN": "127.0.0.1:8804",88    "MCC_INGEST_HEALTH_LISTEN": "127.0.0.1:8805",89    "MCC_INGEST_ADVERTISE": "https://clustr.spboucher.ai",90    "MCC_APPLE_APP_IDS": "3YM54G49SN.ai.spboucher.clustr,3YM54G49SN.ai.spboucher.clustr.ios",91    "PATH": "/opt/homebrew/bin:/opt/homebrew/opt/postgresql@17/bin:/usr/bin:/bin:/usr/sbin:/sbin",92    "TZ": "UTC",93    "MCC_APNS_KEY_FILE": "{{HOME}}/.config/mcc/apns-AuthKey_Z9M555KPUY.p8",94    "MCC_APNS_KEY_ID": "Z9M555KPUY",95    "MCC_APNS_TEAM_ID": "3YM54G49SN",96    "MCC_APNS_TOPIC_IOS": "ai.spboucher.clustr.ios",97    "MCC_APNS_TOPIC_MACOS": "ai.spboucher.clustr"98   }99  },100  {101   "name": "mcc-telemetry-ingest",102   "manager": "pm2",103   "script": "{{HOME}}/apps/maclustr-command-center/dist/telemetry-ingest",104   "args": [105    "serve"106   ],107   "cwd": "{{HOME}}/apps/maclustr-command-center",108   "autorestart": true,109   "max_memory_restart": "600M",110   "interpreter": "none",111   "cron_restart": null,112   "env": {113    "MCC_ENV": "prod",114    "MCC_DATABASE_URL": "postgres://127.0.0.1/mcc?sslmode=disable",115    "MCC_SECRETS_DIR": "{{HOME}}/.config/mcc",116    "MCC_PUBLIC_ORIGIN": "https://clustr.spboucher.ai",117    "MCC_RP_ID": "clustr.spboucher.ai",118    "MCC_API_LISTEN": "0.0.0.0:8800",119    "MCC_TRUSTED_PROXIES": "10.67.0.1,127.0.0.1",120    "MCC_WEB_UPSTREAM": "http://127.0.0.1:8803",121    "MCC_INGEST_LISTEN": "127.0.0.1:8801",122    "MCC_ORCHESTRATOR_LISTEN": "127.0.0.1:8802",123    "MCC_INGEST_SIGNED_LISTEN": "127.0.0.1:8804",124    "MCC_INGEST_HEALTH_LISTEN": "127.0.0.1:8805",125    "MCC_INGEST_ADVERTISE": "https://clustr.spboucher.ai",126    "MCC_APPLE_APP_IDS": "3YM54G49SN.ai.spboucher.clustr,3YM54G49SN.ai.spboucher.clustr.ios",127    "PATH": "/opt/homebrew/bin:/opt/homebrew/opt/postgresql@17/bin:/usr/bin:/bin:/usr/sbin:/sbin",128    "TZ": "UTC",129    "MCC_APNS_KEY_FILE": "{{HOME}}/.config/mcc/apns-AuthKey_Z9M555KPUY.p8",130    "MCC_APNS_KEY_ID": "Z9M555KPUY",131    "MCC_APNS_TEAM_ID": "3YM54G49SN",132    "MCC_APNS_TOPIC_IOS": "ai.spboucher.clustr.ios",133    "MCC_APNS_TOPIC_MACOS": "ai.spboucher.clustr"134   }135  },136  {137   "name": "mcc-action-orchestrator",138   "manager": "pm2",139   "script": "{{HOME}}/apps/maclustr-command-center/dist/action-orchestrator",140   "args": [],141   "cwd": "{{HOME}}/apps/maclustr-command-center",142   "autorestart": true,143   "max_memory_restart": "600M",144   "interpreter": "none",145   "cron_restart": null,146   "env": {147    "MCC_ENV": "prod",148    "MCC_DATABASE_URL": "postgres://127.0.0.1/mcc?sslmode=disable",149    "MCC_SECRETS_DIR": "{{HOME}}/.config/mcc",150    "MCC_PUBLIC_ORIGIN": "https://clustr.spboucher.ai",151    "MCC_RP_ID": "clustr.spboucher.ai",152    "MCC_API_LISTEN": "0.0.0.0:8800",153    "MCC_TRUSTED_PROXIES": "10.67.0.1,127.0.0.1",154    "MCC_WEB_UPSTREAM": "http://127.0.0.1:8803",155    "MCC_INGEST_LISTEN": "127.0.0.1:8801",156    "MCC_ORCHESTRATOR_LISTEN": "127.0.0.1:8802",157    "MCC_INGEST_SIGNED_LISTEN": "127.0.0.1:8804",158    "MCC_INGEST_HEALTH_LISTEN": "127.0.0.1:8805",159    "MCC_INGEST_ADVERTISE": "https://clustr.spboucher.ai",160    "MCC_APPLE_APP_IDS": "3YM54G49SN.ai.spboucher.clustr,3YM54G49SN.ai.spboucher.clustr.ios",161    "PATH": "/opt/homebrew/bin:/opt/homebrew/opt/postgresql@17/bin:/usr/bin:/bin:/usr/sbin:/sbin",162    "TZ": "UTC",163    "MCC_APNS_KEY_FILE": "{{HOME}}/.config/mcc/apns-AuthKey_Z9M555KPUY.p8",164    "MCC_APNS_KEY_ID": "Z9M555KPUY",165    "MCC_APNS_TEAM_ID": "3YM54G49SN",166    "MCC_APNS_TOPIC_IOS": "ai.spboucher.clustr.ios",167    "MCC_APNS_TOPIC_MACOS": "ai.spboucher.clustr"168   }169  },170  {171   "name": "mcc-web",172   "manager": "pm2",173   "script": "/opt/homebrew/bin/node",174   "args": [175    "server.js"176   ],177   "cwd": "{{HOME}}/apps/maclustr-command-center/dist/web",178   "autorestart": true,179   "max_memory_restart": "700M",180   "interpreter": "none",181   "cron_restart": null,182   "env": {183    "NODE_ENV": "production",184    "PORT": "8803",185    "HOSTNAME": "127.0.0.1",186    "NEXT_TELEMETRY_DISABLED": "1",187    "PATH": "/opt/homebrew/bin:/usr/bin:/bin"188   }189  },190  {191   "name": "mcc-backup",192   "manager": "pm2",193   "script": "{{HOME}}/apps/maclustr-command-center/dist/mccctl",194   "args": [195    "backup",196    "--dir",197    "{{HOME}}/mcc-backups",198    "--keep",199    "14",200    "--copy-to",201    "mcc-backup:backups/maclustr-command-center"202   ],203   "cwd": "{{HOME}}/apps/maclustr-command-center",204   "autorestart": false,205   "max_memory_restart": null,206   "interpreter": "none",207   "cron_restart": "40 3 * * *",208   "env": {209    "MCC_ENV": "prod",210    "MCC_DATABASE_URL": "postgres://127.0.0.1/mcc?sslmode=disable",211    "MCC_SECRETS_DIR": "{{HOME}}/.config/mcc",212    "MCC_PUBLIC_ORIGIN": "https://clustr.spboucher.ai",213    "MCC_RP_ID": "clustr.spboucher.ai",214    "MCC_API_LISTEN": "0.0.0.0:8800",215    "MCC_TRUSTED_PROXIES": "10.67.0.1,127.0.0.1",216    "MCC_WEB_UPSTREAM": "http://127.0.0.1:8803",217    "MCC_INGEST_LISTEN": "127.0.0.1:8801",218    "MCC_ORCHESTRATOR_LISTEN": "127.0.0.1:8802",219    "MCC_INGEST_SIGNED_LISTEN": "127.0.0.1:8804",220    "MCC_INGEST_HEALTH_LISTEN": "127.0.0.1:8805",221    "MCC_INGEST_ADVERTISE": "https://clustr.spboucher.ai",222    "MCC_APPLE_APP_IDS": "3YM54G49SN.ai.spboucher.clustr,3YM54G49SN.ai.spboucher.clustr.ios",223    "PATH": "/opt/homebrew/bin:/opt/homebrew/opt/postgresql@17/bin:/usr/bin:/bin:/usr/sbin:/sbin",224    "TZ": "UTC",225    "MCC_APNS_KEY_FILE": "{{HOME}}/.config/mcc/apns-AuthKey_Z9M555KPUY.p8",226    "MCC_APNS_KEY_ID": "Z9M555KPUY",227    "MCC_APNS_TEAM_ID": "3YM54G49SN",228    "MCC_APNS_TOPIC_IOS": "ai.spboucher.clustr.ios",229    "MCC_APNS_TOPIC_MACOS": "ai.spboucher.clustr"230   }231  }232 ]233}
Files main
Menu

Theme