Regenerate config from template