move to template config
add `lib/config.php` to gitignore