namecoin / StemNS

Implement Proposition 279 (Pluggable Naming) w/o changing Tor (Stem port)
https://www.namecoin.org/
The Unlicense
7 stars 9 forks source link

Consider loading config from `.conf.d` folder #19

Closed JeremyRand closed 2 years ago

JeremyRand commented 3 years ago

Seems we can have several categories of config: etld.conf.d, bootstrap.conf.d, and exit.conf.d. This would make packaging cleaner, as per advice from the Whonix devs.

JeremyRand commented 3 years ago

@rllola should I do this refactor?

rllola commented 3 years ago

I think I am missing some context here. Could you refresh my memory ?

JeremyRand commented 3 years ago

I think I am missing some context here. Could you refresh my memory ?

@rllola See http://www.dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion/wiki/Dev/Whonix_friendly_applications_best_practices#config.d_support . Right now, StemNS loads all of its config from two files: settings_port.py and settings_services.py. It would be desirable to refactor this so that StemNS loads those configs from all files within a directory, so that Whonix can package default settings without conflicting with config files that the user creates.