# tntnet.conf # #Settings for "FlisFyr" project dburl "postgresql:dbname=flisfyr user=torben password=nielsen host=localhost" #end of flisfyr settings PropertyFile /etc/tntnet/tntnet.properties Listen 0.0.0.0 80 #SslListen 0.0.0.0 443 /etc/tntnet/tntnet.pem Daemon 1 User www-data Group www-data CompPath /usr/lib/tntnet CompPath /home/torben/tntnet/dynamic # set some limit to prevent DoS-attacks MaxRequestSize 1048576 # 1 MB #Dir / #Chroot /var/safedir PidFile /var/run/tntnet.pid #Daemon 0 #MinThreads 5 #MaxThreads 10 #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 ^/dynamic/(.*)\..* $1@flisfyr MapUrl ^/dynamic/(.*) $1@flisfyr MapUrl ^/dynamic$ redirect@tntnet /dynamic/ MapUrl ^/dynamic/$ index@flisfyr MapUrl ^/$ redirect@tntnet /dynamic/ # configure tntnet as a simple webserver MapUrl .* mime@tntnet MapUrl ^/(.*/)?$ static@tntnet /home/torben/tntnet/static/$1index.html MapUrl ^/(.*)$ static@tntnet /home/torben/tntnet/static/$1