mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-07 18:03:33 +00:00
Update curl command for setting policy
This commit is contained in:
@@ -224,7 +224,8 @@ const internalNginxOpenappsec = {
|
||||
|
||||
for (let port of ports) {
|
||||
try {
|
||||
const command = `curl -s -o /dev/null -w "%{http_code}" ${constants.HOSTURL}:${port}/openappsec/set-apply-policy`;
|
||||
const data = '{"policy_path":"/etc/cp/conf/local_policy.yaml"}';
|
||||
const command = `curl -s -o /dev/null -w "%{http_code}" --data '${data}' ${constants.HOSTURL}:${port}/set-apply-policy`;
|
||||
console.log(`command: ${command}`);
|
||||
let { stdout } = await execPromise(command);
|
||||
if (stdout === '200') {
|
||||
|
Reference in New Issue
Block a user