Switch to env based configuration

(untested, just did through the Github website)