SPB Git

Repository Public

manifest.json 8.0 KB 224 lines json

1{2 "app": "maclustr-social",3 "label": "MacLustr Social Engine & Remote Navigator — console éditoriale multimarque (social.spboucher.ai) et navigateur distant privé (navigator.spboucher.ai)",4 "domain": "social.spboucher.ai",5 "port": 8880,6 "health_path": "/health/ready",7 "dir": "~/apps/maclustr-social",8 "sync_excludes": [9  ".DS_Store",10  "Icon?",11  "node_modules/",12  "dist/",13  ".data/",14  "test-results/",15  "native/MacAccessibilityBridge/mlax"16 ],17 "requires": {18  "runtimes": [19   "node",20   "pm2",21   "pnpm",22   "postgresql@17"23  ],24  "ram_gb": 4,25  "ports": [26   8880,27   8881,28   888229  ]30 },31 "placement": {32  "pin": "m4ml",33  "prefer": null,34  "avoid": [35   "M1M32",36   "m6ma",37   "M5M36"38  ],39  "reason": "Mac dédié choisi à l'audit du 2026-12-01 (Mac mini M4, aucune autre app, session console ouverte pour le worker graphique). Base PostgreSQL, clés et profils de navigateur locaux : ne jamais mld move (une session de navigateur ne se copie pas ; nouvelle connexion manuelle sur un autre Mac)."40 },41 "processes": [42  {43   "name": "maclustr-social",44   "manager": "pm2",45   "script": "/opt/homebrew/bin/node",46   "args": [47    "dist/control-api.mjs"48   ],49   "cwd": "{{HOME}}/apps/maclustr-social",50   "autorestart": true,51   "max_memory_restart": "900M",52   "interpreter": null,53   "cron_restart": null,54   "kill_timeout": 8000,55   "env": {56    "NODE_ENV": "production",57    "MLS_ENV": "production",58    "HOST": "0.0.0.0",59    "PORT": "8880",60    "DATABASE_URL": "postgres:///maclustr_social?host=/tmp",61    "MLS_DATA_DIR": "{{HOME}}/maclustr-social-data",62    "MLS_CONFIG_DIR": "{{HOME}}/.config/maclustr-social",63    "MLS_SOCIAL_ORIGIN": "https://social.spboucher.ai",64    "MLS_NAVIGATOR_ORIGIN": "https://navigator.spboucher.ai",65    "MLS_TRUST_PROXY": "10.67.0.1,127.0.0.1",66    "MLS_ALLOWED_PEERS": "127.0.0.1,10.67.0.1",67    "MLS_SOCIAL_WEB_DIR": "{{HOME}}/apps/maclustr-social/dist/social-web",68    "MLS_NAVIGATOR_WEB_DIR": "{{HOME}}/apps/maclustr-social/dist/navigator-web",69    "MLS_GATEWAY_HOST": "0.0.0.0",70    "MLS_GATEWAY_PORT": "8881",71    "MLS_GATEWAY_INTERNAL_PORT": "8882",72    "MLS_GATEWAY_INTERNAL_URL": "http://127.0.0.1:8882",73    "MLS_CONTROL_INTERNAL_URL": "http://127.0.0.1:8880",74    "MLS_EXPECT_BACKUP": "1",75    "PATH": "/opt/homebrew/bin:/opt/homebrew/opt/postgresql@17/bin:/usr/bin:/bin:/usr/sbin:/sbin"76   }77  },78  {79   "name": "maclustr-social-gateway",80   "manager": "pm2",81   "script": "/opt/homebrew/bin/node",82   "args": [83    "dist/navigator-gateway.mjs"84   ],85   "cwd": "{{HOME}}/apps/maclustr-social",86   "autorestart": true,87   "max_memory_restart": "600M",88   "interpreter": null,89   "cron_restart": null,90   "kill_timeout": 8000,91   "env": {92    "NODE_ENV": "production",93    "MLS_ENV": "production",94    "HOST": "0.0.0.0",95    "PORT": "8880",96    "DATABASE_URL": "postgres:///maclustr_social?host=/tmp",97    "MLS_DATA_DIR": "{{HOME}}/maclustr-social-data",98    "MLS_CONFIG_DIR": "{{HOME}}/.config/maclustr-social",99    "MLS_SOCIAL_ORIGIN": "https://social.spboucher.ai",100    "MLS_NAVIGATOR_ORIGIN": "https://navigator.spboucher.ai",101    "MLS_TRUST_PROXY": "10.67.0.1,127.0.0.1",102    "MLS_ALLOWED_PEERS": "127.0.0.1,10.67.0.1",103    "MLS_SOCIAL_WEB_DIR": "{{HOME}}/apps/maclustr-social/dist/social-web",104    "MLS_NAVIGATOR_WEB_DIR": "{{HOME}}/apps/maclustr-social/dist/navigator-web",105    "MLS_GATEWAY_HOST": "0.0.0.0",106    "MLS_GATEWAY_PORT": "8881",107    "MLS_GATEWAY_INTERNAL_PORT": "8882",108    "MLS_GATEWAY_INTERNAL_URL": "http://127.0.0.1:8882",109    "MLS_CONTROL_INTERNAL_URL": "http://127.0.0.1:8880",110    "MLS_EXPECT_BACKUP": "1",111    "PATH": "/opt/homebrew/bin:/opt/homebrew/opt/postgresql@17/bin:/usr/bin:/bin:/usr/sbin:/sbin"112   }113  },114  {115   "name": "maclustr-social-scheduler",116   "manager": "pm2",117   "script": "/opt/homebrew/bin/node",118   "args": [119    "dist/scheduler.mjs"120   ],121   "cwd": "{{HOME}}/apps/maclustr-social",122   "autorestart": true,123   "max_memory_restart": "400M",124   "interpreter": null,125   "cron_restart": null,126   "kill_timeout": 8000,127   "env": {128    "NODE_ENV": "production",129    "MLS_ENV": "production",130    "HOST": "0.0.0.0",131    "PORT": "8880",132    "DATABASE_URL": "postgres:///maclustr_social?host=/tmp",133    "MLS_DATA_DIR": "{{HOME}}/maclustr-social-data",134    "MLS_CONFIG_DIR": "{{HOME}}/.config/maclustr-social",135    "MLS_SOCIAL_ORIGIN": "https://social.spboucher.ai",136    "MLS_NAVIGATOR_ORIGIN": "https://navigator.spboucher.ai",137    "MLS_TRUST_PROXY": "10.67.0.1,127.0.0.1",138    "MLS_ALLOWED_PEERS": "127.0.0.1,10.67.0.1",139    "MLS_SOCIAL_WEB_DIR": "{{HOME}}/apps/maclustr-social/dist/social-web",140    "MLS_NAVIGATOR_WEB_DIR": "{{HOME}}/apps/maclustr-social/dist/navigator-web",141    "MLS_GATEWAY_HOST": "0.0.0.0",142    "MLS_GATEWAY_PORT": "8881",143    "MLS_GATEWAY_INTERNAL_PORT": "8882",144    "MLS_GATEWAY_INTERNAL_URL": "http://127.0.0.1:8882",145    "MLS_CONTROL_INTERNAL_URL": "http://127.0.0.1:8880",146    "MLS_EXPECT_BACKUP": "1",147    "PATH": "/opt/homebrew/bin:/opt/homebrew/opt/postgresql@17/bin:/usr/bin:/bin:/usr/sbin:/sbin"148   }149  },150  {151   "name": "maclustr-social-backup",152   "manager": "pm2",153   "script": "/bin/zsh",154   "args": [155    "scripts/backup.sh"156   ],157   "cwd": "{{HOME}}/apps/maclustr-social",158   "cron_restart": "30 3 * * *",159   "autorestart": false,160   "interpreter": null,161   "max_memory_restart": null,162   "env": {163    "PATH": "/opt/homebrew/bin:/opt/homebrew/opt/postgresql@17/bin:/usr/bin:/bin:/usr/sbin:/sbin"164   }165  },166  {167   "name": "maclustr-social-monitor",168   "manager": "pm2",169   "script": "/opt/homebrew/bin/node",170   "args": [171    "dist/monitor.mjs"172   ],173   "cwd": "{{HOME}}/apps/maclustr-social",174   "cron_restart": "*/5 * * * *",175   "autorestart": false,176   "interpreter": null,177   "max_memory_restart": null,178   "env": {179    "NODE_ENV": "production",180    "MLS_ENV": "production",181    "HOST": "0.0.0.0",182    "PORT": "8880",183    "DATABASE_URL": "postgres:///maclustr_social?host=/tmp",184    "MLS_DATA_DIR": "{{HOME}}/maclustr-social-data",185    "MLS_CONFIG_DIR": "{{HOME}}/.config/maclustr-social",186    "MLS_SOCIAL_ORIGIN": "https://social.spboucher.ai",187    "MLS_NAVIGATOR_ORIGIN": "https://navigator.spboucher.ai",188    "MLS_TRUST_PROXY": "10.67.0.1,127.0.0.1",189    "MLS_ALLOWED_PEERS": "127.0.0.1,10.67.0.1",190    "MLS_SOCIAL_WEB_DIR": "{{HOME}}/apps/maclustr-social/dist/social-web",191    "MLS_NAVIGATOR_WEB_DIR": "{{HOME}}/apps/maclustr-social/dist/navigator-web",192    "MLS_GATEWAY_HOST": "0.0.0.0",193    "MLS_GATEWAY_PORT": "8881",194    "MLS_GATEWAY_INTERNAL_PORT": "8882",195    "MLS_GATEWAY_INTERNAL_URL": "http://127.0.0.1:8882",196    "MLS_CONTROL_INTERNAL_URL": "http://127.0.0.1:8880",197    "MLS_EXPECT_BACKUP": "1",198    "PATH": "/opt/homebrew/bin:/opt/homebrew/opt/postgresql@17/bin:/usr/bin:/bin:/usr/sbin:/sbin"199   }200  }201 ],202 "hooks": {203  "post_sync": [204   "set -o pipefail; export PATH=\"/opt/homebrew/bin:$PATH\"; pnpm install --frozen-lockfile --silent 2>&1 | tail -2; test -d node_modules/fastify && echo '  deps ok'",205   "set -o pipefail; export PATH=\"/opt/homebrew/bin:$PATH\"; pnpm build 2>&1 | tail -1; test -f dist/control-api.mjs && test -f dist/social-web/index.html && test -f dist/navigator-web/index.html && echo '  build ok'",206   "zsh scripts/node-setup.sh",207   "zsh native/MacAccessibilityBridge/build.sh | tail -1"208  ],209  "post_start": []210 },211 "tunnel": {212  "domain": "social.spboucher.ai",213  "gateway": "BHS64",214  "aliases": [],215  "redirects": [],216  "websocket": false,217  "note": "social.spboucher.ai → m4ml:8880 (route mld). navigator.spboucher.ai → m4ml:8881 est une seconde route posée par `mlt add navigator.spboucher.ai m4ml:8881` (WebSocket /nav/ws). Le port 8882 (workers) n'écoute que sur 127.0.0.1 et n'est jamais routé."218 },219 "notes": "Dépôt PRIVÉ gitsrv:srv/git-private/maclustr-social.git (ne pas mld adopt). Worker graphique : LaunchAgent ai.spboucher.maclustr-navigator-worker (compte mlnav, hors PM2) installé par infra/launchd/install-worker.sh prod. Mise à jour : zsh scripts/update.sh sur le nœud. Préproduction : zsh scripts/staging.sh. Voir docs/DEPLOYMENT.md.",220 "extra_paths": [],221 "launchd": [],222 "env_overrides": {},223 "ka_repo": false224}
Files main
Menu

Theme