summaryrefslogtreecommitdiff
path: root/conf/bitz-server.conf.in
blob: 95083c4aa3912375bce9cd10ca9a761948a5a1ca (plain)
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
56
#
# @sysconfdir@/bitz/bitz-server.conf
#

port = 1344;

pid_file     = "@localstatedir@/run/bitz/bitz-server.pid";
log_file     = "@localstatedir@/log/bitz/bitz-server.log";
log_category = "bitz-server";

# maximum number of workers
max_workers         = 1;

# maximum number of requests a worker will serve
max_worker_requests = 100;


# request handlers
req_handlers :
({
	handler = "REQMOD";
	class   = "ReqmodRequestHandler";
	modules :
	(
		{
			name   = "modpy";
			module = "@pkglibdir@/modules/mod_py.so";
		}
	)
},
{
	handler = "RESPMOD";
	class   = "RespmodRequestHandler";
	modules :
	(
		{
			name   = "modpy";
			module = "@pkglibdir@/modules/mod_py.so";
		}
	)
});


# module configurations
modules :
{
	modpy :
	{
		# search path for python modules
		module_path = "@pkglibdir@/modules/modpy";

		# python module containing the interface methods
		module_name = "modpy";
	};
};