summaryrefslogtreecommitdiff
path: root/package/tntnet/files/tntnet.conf
blob: c51c47bc202c9edd122c76ba589d9d390b5c1498 (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
# 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