xmrig-proxy
xmrig-proxy copied to clipboard
xmrig-proxy - changing config programatically
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?
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