Am 01.05.2012 12:59, schrieb ArtemGr:
> Tommi Mäkitalo<tommi@...> writes:
>> The current svn version of tntnet can be started with a json
>> configuration file with "tntnet -j tntnet.json". And here is a
>> configuration file from the calc demo:
> Do you have a similar XML configuration example?
>
> P.S. XML is bulkier, but have a better IDE (editor) support,
> for example editing XML in Eclipse (or in JOE) would be more comfortable than
> editing JSON.
>
> In JSON everything is quoted the same way,
> whereas in XML the keywords and the values are separated
> (e.g. keywords are tags and/or attribute names,
> and values are Text and/or attribute values).
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Tntnet-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tntnet-general
sure. Here is the same in xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is the main configuration file for tntnet.
You can find documentation about the parameters in the man page tntnet.xml(7)
-->
<tntnet>
<mappings>
<!-- map / to calc@calc -->
<mapping>
<target>calc@calc</target>
<url>^/$</url>
</mapping>
<!-- map /comp.* or /comp to comp@calc -->
<mapping>
<target>$1@calc</target>
<url>^/([^.]+)(\..+)?</url>
</mapping>
</mappings>
<!-- listen to a port (empty string means any local interface) -->
<listeners>
<listener>
<ip></ip>
<port>8000</port>
</listener>
</listeners>
<!-- to enable ssl, we need a Certificate and a ssllistener-section -->
<!--
<ssllistener>
<ssllistener>
<ip></ip>
<port>8443</port>
<certificate>tntnet.pem</certificate>
</ssllistener>
</ssllistener>
-->
<!-- this propertyfile defines, what and where to log -->
<logproperties>tntnet.properties</logproperties>
<!--<maxRequestSize>65536</maxRequestSize> -->
<!--<maxRequestTime>600</maxRequestTime> -->
<!--<user>tntnet</user> -->
<!--<group>tntnet</group> -->
<!--<dir>/</dir> -->
<!--<chrootdir>/var/safedir</chrootdir> -->
<!--<pidfile>/var/run/tntnet.pid</pidfile> -->
<!--<daemon>0</daemon> -->
<!--<minThreads>5</minThreads> -->
<!--<maxThreads>100</maxThreads> -->
<!--<threadStartDelay>10</threadStartDelay> -->
<!--<queueSize>1000</queueSize> -->
<!--<compPath>path</compPath> -->
<!--<bufferSize>16384</bufferSize> -->
<!--<socketReadTimeout>10</socketReadTimeout> -->
<!--<socketWriteTimeout>10000</socketWriteTimeout> -->
<!--<keepAliveTimeout>15000</keepAliveTimeout> -->
<!--<keepAliveMax>1000</keepAliveMax> -->
<!--<sessionTimeout>300</sessionTimeout> -->
<!--<listenBacklog>64</listenBacklog> -->
<!--<listenRetry>5</listenRetry> -->
<!--<enableCompression>no</enableCompression> -->
<!--<mimeDb>/etc/mime.types</mimeDb> -->
<!--<minCompressSize>1024</minCompressSize> -->
<!--<maxUrlMapCache>8192</maxUrlMapCache> -->
<!--<defaultContentType>text/html; charset=UTF-8</defaultContentType> -->
<!--<accessLog>/var/log/tntnet/access.log</accessLog> -->
<!--<errorLog>/var/log/tntnet/error.log</errorLog> -->
<!--<maxBackgroundTasks>5</maxBackgroundTasks> -->
<compPath>
<entry>.libs</entry>
</compPath>
</tntnet>
Tommi
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general