From bb9bc9051629c3319c56785c2f4ae0e605d76329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 21 Nov 2015 14:51:17 +0100 Subject: Initial import of bitz-server version 0.1.6-1 --- conf/Makefile.am | 26 ++++++++++++++++++++++ conf/bitz-server.conf.in | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 conf/Makefile.am create mode 100644 conf/bitz-server.conf.in (limited to 'conf') 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"; + }; +}; + -- cgit v1.2.3