From 393749a40be0bd7f09a87a516d45d124d161a159 Mon Sep 17 00:00:00 2001 From: Joerg Seitter Date: Wed, 13 Aug 2014 22:33:53 +0200 Subject: updated tntnet config file Format of configuration has changed to xml Signed-off-by: Joerg Seitter --- package/tntnet/Makefile | 2 +- package/tntnet/files/tntnet.conf | 49 ---------------------------------------- package/tntnet/files/tntnet.xml | 49 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 50 deletions(-) delete mode 100644 package/tntnet/files/tntnet.conf create mode 100644 package/tntnet/files/tntnet.xml diff --git a/package/tntnet/Makefile b/package/tntnet/Makefile index 8ba5332b5..1b4032854 100644 --- a/package/tntnet/Makefile +++ b/package/tntnet/Makefile @@ -54,7 +54,7 @@ tntnet-install: ${INSTALL_DIR} ${IDIR_TNTNET}/etc/tntnet ${INSTALL_DIR} ${IDIR_TNTNET}/usr/bin ${INSTALL_DIR} ${IDIR_TNTNET}/usr/lib/tntnet - ${INSTALL_DATA} ./files/tntnet.{conf,properties} \ + ${INSTALL_DATA} ./files/tntnet.{xml,properties} \ ${IDIR_TNTNET}/etc/tntnet ${INSTALL_DATA} ./files/mime.conf \ ${IDIR_TNTNET}/etc/tntnet diff --git a/package/tntnet/files/tntnet.conf b/package/tntnet/files/tntnet.conf deleted file mode 100644 index c51c47bc2..000000000 --- a/package/tntnet/files/tntnet.conf +++ /dev/null @@ -1,49 +0,0 @@ -# tntnet.conf - -PropertyFile /etc/tntnet/tntnet.properties -Listen 0.0.0.0 80 -#SslListen 0.0.0.0 443 /etc/tntnet/tntnet.pem - -Daemon 1 -User tntnet -Group tntnet -CompPath /usr/lib/tntnet - -# set some limit to prevent DoS-attacks -MaxRequestSize 1048576 # 1 MB - -#Dir / -#Chroot /var/safedir -PidFile /var/run/tntnet.pid -MinThreads 2 -MaxThreads 4 -#ThreadStartDelay 0 # in ms -#QueueSize 100 -#CompPath path -#Load webapp # preload webapplication -#BufferSize 16384 -#SocketReadTimeout 200 -#SocketWriteTimeout 10000 -#KeepAliveTimeout 15000 -#KeepAliveMax 100 -#SessionTimeout 300 -#CompLifetime 10 -#MaxRequestTime 600 -#ReportStateTime 1200 - -#include /etc/tntnet.d/*.conf -include /etc/tntnet/mime.conf - -# make demos callable -#MapUrl ^/demos/controls$ redirect@tntnet /demos/controls/ -#MapUrl ^/demos/controls/(.+)\..* $1@controls -#MapUrl ^/demos/controls/$ index@controls index -#MapUrl ^/demos/controls/(.+) index@controls $1 -#MapUrl ^/demos/(.+)\..* $1@$1 $1 -#MapUrl ^/demos/(.+) $1@$1 -#MapUrl ^/demos/tntnet.jpg tntnet@hello - -# configure tntnet as a simple webserver -DocumentRoot /www -MapUrl (.*)/$ static@tntnet /$1/index.html -MapUrl ^/(.*)$ static@tntnet /$1 diff --git a/package/tntnet/files/tntnet.xml b/package/tntnet/files/tntnet.xml new file mode 100644 index 000000000..2d4f160d1 --- /dev/null +++ b/package/tntnet/files/tntnet.xml @@ -0,0 +1,49 @@ + + + + + static@tntnet + (.*)/$ + /$1/index.html + + + static@tntnet + ^/(.*)$ + /$1 + + + + + + 0.0.0.0 + 80 + + + + 1 + tntnet + tntnet + 1048576 + /var/run/tntnet.pid + 2 + 4 + /www + + /usr/lib/tntnet + + + INFO + + + tntnet + INFO + + + + + + + + + /etc/tntnet/mime.conf + -- cgit v1.2.3