add *config.js
use conif if available otherwise server-config