### ### Web Handler ### web_handler = Handler( send_spec='ipc://run/mongrel2_send', send_ident='4da65262-6334-44d5-8d88-7a7ab3e3a4e7', recv_spec='ipc://run/mongrel2_recv', recv_ident='' ) static_dir = Dir( base='static/', index_file='index.html', default_ctype='text/plain' ) web_host = Host( name="localhost", routes={ '/robots.txt': static_dir, '/favicon.ico': static_dir, '/static/': static_dir, '/': web_handler } ) ### ### Baikal Server ### main_serv = Server( uuid="a3add491-7e7f-4dce-99c6-1f2f0da02f55", chroot="./", access_log="/log/m2.access.log", error_log="/log/m2.error.log", pid_file="/run/mongrel2.pid", default_host="localhost", name="web", port=6767, hosts=[web_host] ) settings = {"zeromq.threads": 1} servers = [main_serv]