Update API endpoint for applying policy

This commit is contained in:
Rami Winestock
2023-12-18 22:00:27 +02:00
parent 8631791999
commit 69f0ceb529

View File

@@ -224,7 +224,7 @@ const internalNginxOpenappsec = {
for (let port of ports) {
try {
const command = `curl -s -o /dev/null -w "%{http_code}" ${constants.HOSTURL}:${port}/openappsec/apply-policy`;
const command = `curl -s -o /dev/null -w "%{http_code}" ${constants.HOSTURL}:${port}/openappsec/set-apply-policy`;
console.log(`command: ${command}`);
let { stdout } = await execPromise(command);
if (stdout === '200') {