fix: version webhook deployment flow

This commit is contained in:
Manus AI
2026-07-24 12:33:12 +00:00
parent cbfeb6d163
commit a65806125a
3 changed files with 7 additions and 5 deletions

View File

@@ -22,7 +22,6 @@ services:
- INFRA_BASE_PATH=${INFRA_BASE_PATH}
- HEALTH_CHECK_INTERVAL=${HEALTH_CHECK_INTERVAL}
volumes:
- /opt/manus-deploy/webhook-patched.js:/app/backend/src/webhook.js:ro
- /var/run/docker.sock:/var/run/docker.sock
- /opt/manus-deploy:/opt/manus-deploy
networks:

View File

@@ -33,10 +33,6 @@ app.use(cors({
origin: true,
credentials: true,
}));
app.use(express.json({ limit: '50mb' }));
app.use(express.urlencoded({ extended: true, limit: '50mb' }));
app.use(cookieParser());
app.use(morgan('combined'));
// Route webhook montée en premier avec raw body pour la vérification HMAC
app.use('/api/webhook', express.raw({ type: 'application/json', limit: '10mb' }), (req, res, next) => {
@@ -46,6 +42,11 @@ app.use('/api/webhook', express.raw({ type: 'application/json', limit: '10mb' })
}
next();
}, webhookRoutes);
app.use(express.json({ limit: '50mb' }));
app.use(express.urlencoded({ extended: true, limit: '50mb' }));
app.use(cookieParser());
app.use(morgan('combined'));
// API routes
app.use('/api', routes);

View File

@@ -25,6 +25,8 @@ const REPO_TO_APP_MAP = {
'itinova-vehicle-exchange': 'itinova-vehicle-exchange',
'manus-dashboard': 'manus-dashboard',
'itinova-budget-si': 'itinova-budget-si',
'facturation-santinova': 'facturation-santinova',
'demat-facturation-dsi': 'demat-facturation-dsi',
};
// Déploiements en cours (évite les doubles déclenchements)