mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-07 09:53:38 +00:00
Update API endpoint for applying policy
This commit is contained in:
@@ -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') {
|
||||
|
Reference in New Issue
Block a user