1 |
# tntnet.conf |
# tntnet.conf |
2 |
# |
# |
3 |
|
|
4 |
|
|
5 |
|
#Settings for "FlisFyr" project |
6 |
|
dburl "postgresql:host=localhost:db=flisfyr:user=torben:passwd=nielsen" |
7 |
|
#end of flisfyr settings |
8 |
|
|
9 |
PropertyFile /etc/tntnet/tntnet.properties |
PropertyFile /etc/tntnet/tntnet.properties |
10 |
Listen 0.0.0.0 80 |
Listen 0.0.0.0 80 |
11 |
#SslListen 0.0.0.0 443 /etc/tntnet/tntnet.pem |
#SslListen 0.0.0.0 443 /etc/tntnet/tntnet.pem |
19 |
# set some limit to prevent DoS-attacks |
# set some limit to prevent DoS-attacks |
20 |
MaxRequestSize 1048576 # 1 MB |
MaxRequestSize 1048576 # 1 MB |
21 |
|
|
22 |
|
|
23 |
#Dir / |
#Dir / |
24 |
#Chroot /var/safedir |
#Chroot /var/safedir |
25 |
PidFile /var/run/tntnet.pid |
PidFile /var/run/tntnet.pid |
51 |
|
|
52 |
MapUrl ^/$ redirect@tntnet /dynamic/ |
MapUrl ^/$ redirect@tntnet /dynamic/ |
53 |
|
|
|
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 |
|
|
MapUrl ^/demos/$ static@tntnet /usr/share/tntnet/demos.html |
|
|
MapUrl ^/demos/(.*)\.png$ static@tntnet /usr/share/tntnet/$1.png |
|
|
MapUrl ^/demos/(.*)\.js$ static@tntnet /usr/share/tntnet/$1.js |
|
|
|
|
54 |
# configure tntnet as a simple webserver |
# configure tntnet as a simple webserver |
55 |
MapUrl .* mime@tntnet |
MapUrl .* mime@tntnet |
56 |
MapUrl ^/(.*/)?$ static@tntnet /home/torben/tntnet/static/$1index.html |
MapUrl ^/(.*/)?$ static@tntnet /home/torben/tntnet/static/$1index.html |