genehaxx_handler = Handler(
    send_spec='tcp://127.0.0.1:9999',
    send_ident='34f9ceee-cd52-4b7f-b197-88bf2f0ec378',
    recv_spec='tcp://127.0.0.1:9998',
    recv_ident='')

top_dir = Dir(
    base='./',
    index_file='genehaxx2.html',
    default_ctype='text/plain')

lib_dir = Dir(
    base='lib/',
    index_file='index.html',
    default_ctype='text/plain')

js_dir = Dir(
    base='js/',
    index_file='index.html',
    default_ctype='text/plain')

css_dir = Dir(
    base='css/',
    index_file='index.html',
    default_ctype='text/plain')

genehaxx_host = Host(
    name="localhost",
    routes={
        '/genehaxx/': genehaxx_handler,
        '/lib/': lib_dir,
        '/css/': css_dir,
        '/js/': js_dir,
        '/': top_dir}

)

genehaxx_serv = Server(
    uuid="f400bf85-4538-4f7a-8908-67e313d515c2",
    access_log="/log/mongrel2.access.log",
    error_log="/log/mongrel2.error.log",
    chroot="./",
    default_host="localhost",
    name="GenehaXX mongrel",
    pid_file="/run/mongrel2.pid",
    port=6767,
    hosts = [genehaxx_host]
)

settings = { "zeromq.threads": 1, 'limits.content_length': 10485760, 'upload.temp_store': '/tmp/mongrel2.upload.XXXXXX' }

servers = [genehaxx_serv]
