xmrig-proxy icon indicating copy to clipboard operation
xmrig-proxy copied to clipboard

xmrig-proxy - changing config programatically

Open RCTORONTO opened this issue 4 years ago • 1 comments

Hi I'd like to know how to go about updating the json config file for an xmrig-proxy. I run mine as services, and would like to be able to enable and disable the first pool in the list programatically using curl / php. Literally just the one enabled to disabled, I'd rather not have to read in the entire json file and write it back out, is there any example of using the api to just set one property in the config?

RCTORONTO avatar Jun 01 '21 11:06 RCTORONTO

figured it out, turns out you need to read in the entire config file into an array, modify the 1 item, then write the entire file back using a curl PUT

RCTORONTO avatar Jun 04 '21 04:06 RCTORONTO