summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-21 14:51:17 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-21 14:51:17 +0100
commitbb9bc9051629c3319c56785c2f4ae0e605d76329 (patch)
treeec393eb145e5a7d43909bdfc43cdeaa28c4e434a /conf
Initial import of bitz-server version 0.1.6-1
Diffstat (limited to 'conf')
-rw-r--r--conf/Makefile.am26
-rw-r--r--conf/bitz-server.conf.in56
2 files changed, 82 insertions, 0 deletions
diff --git a/conf/Makefile.am b/conf/Makefile.am
new file mode 100644
index 0000000..1dce407
--- /dev/null
+++ b/conf/Makefile.am
@@ -0,0 +1,26 @@
+## conf/
+configdir = $(sysconfdir)/bitz
+config_DATA = bitz-server.conf
+
+# extra dist files
+EXTRA_DIST = \
+ bitz-server.conf.in
+
+
+edit = sed \
+ -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
+ -e 's|@localstatedir[@]|$(localstatedir)|g' \
+ -e 's|@pkglibdir[@]|$(pkglibdir)|g'
+
+bitz-server.conf: bitz-server.conf.in
+ rm -f $@ $@.tmp
+ srcdir=''; \
+ test -f ./$@.in || srcdir=$(srcdir)/; \
+ $(edit) $${srcdir}$@.in >$@.tmp
+ chmod +r $@.tmp
+ chmod og-wx $@.tmp
+ mv $@.tmp $@
+
+clean-local:
+ rm -f *.conf
+
diff --git a/conf/bitz-server.conf.in b/conf/bitz-server.conf.in
new file mode 100644
index 0000000..95083c4
--- /dev/null
+++ b/conf/bitz-server.conf.in
@@ -0,0 +1,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";
+ };
+};
+