Build the config files dynamically from a template.