refactor web server config to file