Exposing data from Unraid as JSON for use in custom applications.
I couldn’t crack the goddamn PHP server not returning any data even with a CSRF token when trying to get info about the array, so instead this is using an extra plugin on Unraid.
Make a .env
file in the root directory with your credentials. Sample:
UNRAID_HOST=192.168.1.111
UNRAID_USERNAME=root
UNRAID_PASSWORD=420sixtynine
SECURE=