server.js/config.js: restructure config to match charm assumptions