mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-08 02:13:34 +00:00
Update API endpoint for applying policy
This commit is contained in:
@@ -224,7 +224,7 @@ const internalNginxOpenappsec = {
|
|||||||
|
|
||||||
for (let port of ports) {
|
for (let port of ports) {
|
||||||
try {
|
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}`);
|
console.log(`command: ${command}`);
|
||||||
let { stdout } = await execPromise(command);
|
let { stdout } = await execPromise(command);
|
||||||
if (stdout === '200') {
|
if (stdout === '200') {
|
||||||
|
Reference in New Issue
Block a user