File: mongrel2.conf

package info (click to toggle)
mongrel2 1.12.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 6,020 kB
  • sloc: ansic: 39,099; python: 2,833; sql: 1,555; javascript: 1,202; sh: 467; makefile: 360; asm: 189; yacc: 145; php: 73; awk: 28; sed: 5
file content (55 lines) | stat: -rw-r--r-- 1,533 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# here's a sample directory
test_directory = Dir(base='tests/',
                     index_file='index.html',
                     default_ctype='text/plain')

htchat_dir = Dir(base='htchat/', 
                    index_file='index.html', 
                    default_ctype='text/plain')

# a sample of doing some handlers
htchat_app = Handler(send_spec='tcp://127.0.0.1:9999',
                    send_ident='54c6755b-9628-40a4-9a2d-cc82a816345e',
                    recv_spec='tcp://127.0.0.1:9998', recv_ident='',
                    protocol='tnetstring')

handler_test = Handler(send_spec='tcp://127.0.0.1:9990',
                       send_ident='34f9ceee-cd52-4b7f-b197-88bf2f0ec378',
                       recv_spec='tcp://127.0.0.1:9989', recv_ident=''
                       #)
                       ,protocol='tnetstring')

# your main host
mongrel2 = Host(name="ashley-jason.com", routes={
    '/handlertest': handler_test
    '/htchat' : htchat_dir
    '/htchat/app' :htchat_app
}
)

# the server to run them all
main = Server(
    uuid="5",
    access_log="/logs/access.log",
    error_log="/logs/error.log",
    chroot="./",
    pid_file="/run/mongrel2.pid",
    default_host="ashley-jason.com",
    matching='(.*)',
    name="main",
    port=6767,
    #bind_addr="127.0.0.1",
    hosts=[mongrel2]
)



settings = {"zeromq.threads": 1,
            "limits.client_read_retries" : 80,
            "limits.min_ping" : 0,
            "limits.min_write_rate":0,
            "limits.min_read_rate":0}

servers = [main]