move static config out of server.js