OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: MiRei on October 04, 2022, 11:21:58 am

Title: HAProxy API reconfigure failed
Post by: MiRei on October 04, 2022, 11:21:58 am
I have a problem with the API of the Haproxy.
The modification of conditions and e.g. the status query via

curl -k -u $OPNS_KEY:$OPNS_SECRET https://$IPFW/api/haproxy/service/configtest

work without any problems.

But when I want to to apply my modifactions via:

curl -k -u $OPNS_KEY:$OPNS_SECRET https://$IPFW/api/haproxy/service/reconfigure

I get an error message:

{"status": "failed"}

Does anyone have a tip?

Thanks a lot
Title: Re: HAProxy API reconfigure failed
Post by: ibrahim.djadir on August 28, 2023, 09:59:39 am
Hello

I am trying to do a similar configuration add an acl in haproxy using API, I added the acl the request was successful, then I sent a reconfigure request  I received ok response. when I checked the config file nothing changed.

Did you find any solution?