summaryrefslogtreecommitdiff
path: root/package/tntnet/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/tntnet/files')
-rw-r--r--package/tntnet/files/mime.conf22
-rw-r--r--package/tntnet/files/tntnet.conf49
-rw-r--r--package/tntnet/files/tntnet.properties31
3 files changed, 102 insertions, 0 deletions
diff --git a/package/tntnet/files/mime.conf b/package/tntnet/files/mime.conf
new file mode 100644
index 000000000..bab84a83d
--- /dev/null
+++ b/package/tntnet/files/mime.conf
@@ -0,0 +1,22 @@
+DefaultType text/html
+AddType text/plain .txt
+AddType text/html .html .htm .xhtml
+AddType image/png .png
+AddType image/gif .gif
+AddType image/bmp .bmp
+AddType application/x-tar .tgz
+AddType image/jpeg .jpeg .jpg
+AddType image/tif .tif .tiff
+AddType text/css .css
+AddType text/plain .asc
+AddType text/rtf .rtf
+AddType video/mpeg .mpeg .mpg .mpe
+AddType application/x-javascript .js
+AddType application/msword .doc .dot
+AddType application/pdf .pdf
+AddType application/postscript .ps .ai .eps
+AddType application/vnd.ms-excel .xls .xlb
+AddType application/vnd.ms-powerpoint .ppt .pps .pot
+AddType application/zip .zip
+AddType application/x-gtar .gtar .tgz .taz
+AddType application/x-java-archive .jar
diff --git a/package/tntnet/files/tntnet.conf b/package/tntnet/files/tntnet.conf
new file mode 100644
index 000000000..c51c47bc2
--- /dev/null
+++ b/package/tntnet/files/tntnet.conf
@@ -0,0 +1,49 @@
+# 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.properties b/package/tntnet/files/tntnet.properties
new file mode 100644
index 000000000..3e1006411
--- /dev/null
+++ b/package/tntnet/files/tntnet.properties
@@ -0,0 +1,31 @@
+# sample logging-properties for application tntnet
+# put this in tntnet.properties and use:
+# log_init("tntnet.properties");
+# in your application to initialize logging
+#
+# define categories with:
+# log_define("some.category")
+# this defines a static function, so you must put it outside other functions.
+# you can define a category per file or a category per namespace.
+#
+# print logging-messages with:
+# log_fatal("some fatal message");
+# log_error("some error message");
+# log_warn("some warn message");
+# log_info("some info message");
+# log_debug("some debug message");
+#
+rootLogger=INFO
+
+# define logger-categories
+logger.tntnet=INFO
+
+file=/var/log/tntnet.log
+maxfilesize=1MB
+maxbackupindex=10
+flushdelay=100 # delay write in milliseconds
+#host=localhost:1234 # send log-messages with udp
+#disabled=1 # disable logging
+#logprocess=1 # log in separate process
+#logprocesuser=someuser # change to user in log process
+#logprocesgroup=somegroup # change to group in log process