sameerdhoot / wolweb

Web interface for sending Wake-on-lan (magic packet). An HTTP server built using GoLang and uses Bootstrap for UI.
GNU General Public License v3.0
288 stars 74 forks source link

Parameterise location of config files #35

Open mausch opened 9 months ago

mausch commented 9 months ago

Hi and thanks for this project!

It looks like config.json and devices.json are currently only loaded from the same directory as the binary? In a Linux FHS binaries go to e.g. /usr/bin and config goes to /etc with maybe the possibility of overriding from ~/.config . Maybe wolweb could add a cmdline parameter to set the location of config files.