hnsd icon indicating copy to clipboard operation
hnsd copied to clipboard

config file is not being parsed

Open tuxcanfly opened this issue 6 years ago • 1 comments

The config file as set by -c, --config <config> doesn't look like it's being parsed. I couldn't find the corresponding code either.

In case this is TODO, we can consider dropping the config file option altogether and just use environment variables to provide the command line parameters (as in #18 via systemd directive EnvironmentFile)

tuxcanfly avatar Sep 18 '19 13:09 tuxcanfly

I noticed the same thing and was not sure of the best way to go about adding config parsing. There are a bunch of libraries for doing that but I don't know if any are really small and portable. Maybe we just have to implement a small config parsing library ourselves.

Using environment variables seems like it could work too, would save some effort. It would be ideal to support both to be similar to hsd.

tynes avatar Sep 18 '19 19:09 tynes