fix: version webhook deployment flow
This commit is contained in:
@@ -22,7 +22,6 @@ services:
|
|||||||
- INFRA_BASE_PATH=${INFRA_BASE_PATH}
|
- INFRA_BASE_PATH=${INFRA_BASE_PATH}
|
||||||
- HEALTH_CHECK_INTERVAL=${HEALTH_CHECK_INTERVAL}
|
- HEALTH_CHECK_INTERVAL=${HEALTH_CHECK_INTERVAL}
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/manus-deploy/webhook-patched.js:/app/backend/src/webhook.js:ro
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /opt/manus-deploy:/opt/manus-deploy
|
- /opt/manus-deploy:/opt/manus-deploy
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -33,10 +33,6 @@ app.use(cors({
|
|||||||
origin: true,
|
origin: true,
|
||||||
credentials: 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
|
// 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) => {
|
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();
|
next();
|
||||||
}, webhookRoutes);
|
}, webhookRoutes);
|
||||||
|
|
||||||
|
app.use(express.json({ limit: '50mb' }));
|
||||||
|
app.use(express.urlencoded({ extended: true, limit: '50mb' }));
|
||||||
|
app.use(cookieParser());
|
||||||
|
app.use(morgan('combined'));
|
||||||
// API routes
|
// API routes
|
||||||
app.use('/api', routes);
|
app.use('/api', routes);
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ const REPO_TO_APP_MAP = {
|
|||||||
'itinova-vehicle-exchange': 'itinova-vehicle-exchange',
|
'itinova-vehicle-exchange': 'itinova-vehicle-exchange',
|
||||||
'manus-dashboard': 'manus-dashboard',
|
'manus-dashboard': 'manus-dashboard',
|
||||||
'itinova-budget-si': 'itinova-budget-si',
|
'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)
|
// Déploiements en cours (évite les doubles déclenchements)
|
||||||
|
|||||||
Reference in New Issue
Block a user