2012-12-11 02:35:16 +00:00
|
|
|
{% extends "global/layout.html" %}
|
2013-02-05 23:23:58 +00:00
|
|
|
{% block title %}{% trans %}Configuration File Specification{% endtrans %}{% endblock %}
|
|
|
|
{% block lastupdated %}{% trans %}September 2012{% endtrans %}{% endblock %}
|
2012-12-14 03:41:29 +00:00
|
|
|
{% block accuratefor %}0.9.2{% endblock %}
|
2012-10-05 13:02:11 +00:00
|
|
|
{% block content %}
|
2013-02-05 23:23:58 +00:00
|
|
|
<h2>{% trans %}Overview{% endtrans %}</h2>
|
|
|
|
<p>{% trans -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
This page provides a general specification of I2P configuration files,
|
|
|
|
used by the router and various applications.
|
|
|
|
It also gives an overview of the information contained in the various files,
|
|
|
|
and links to detailed documentation where available.
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
|
|
|
|
2013-02-05 23:23:58 +00:00
|
|
|
<h2>{% trans %}General Format{% endtrans %}</h2>
|
|
|
|
<p>{% trans url='http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Properties.html#load%28java.io.InputStream%29' -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
An I2P configuration file is formatted as specified in
|
2013-02-05 23:23:58 +00:00
|
|
|
<a href="{{ url }}">Java Properties</a>
|
2012-10-05 13:02:11 +00:00
|
|
|
with the following exceptions:
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
<ul>
|
2013-02-05 23:23:58 +00:00
|
|
|
<li>{% trans %}Encoding must be UTF-8{% endtrans %}</li>
|
|
|
|
<li>{% trans %}Does not use or recognize any escapes, including '\', so lines may not be continued{% endtrans %}</li>
|
|
|
|
<li>{% trans %}'#' or ';' starts a comment, but '!' does not{% endtrans %}</li>
|
|
|
|
<li>{% trans %}'#' starts a comment in any position but ';' must be in column 1 to start a comment{% endtrans %}</li>
|
|
|
|
<li>{% trans %}Leading and trailing whitespace is not trimmed on keys{% endtrans %}</li>
|
|
|
|
<li>{% trans %}Leading and trailing whitespace is trimmed on values{% endtrans %}</li>
|
|
|
|
<li>{% trans %}'=' is the only key-termination character (not ':' or whitespace){% endtrans %}</li>
|
|
|
|
<li>{% trans %}Lines without '=' are ignored. It does not store the key with a value of ""{% endtrans %}</li>
|
|
|
|
<li>{% trans %}As there are no escapes, keys may not contain '#', '=', or '\n', or start with ';'{% endtrans %}</li>
|
|
|
|
<li>{% trans %}As there are no escapes, values may not contain '#' or '\n', or start or end with '\r' or whitespace{% endtrans %}</li>
|
2012-10-05 13:02:11 +00:00
|
|
|
</ul>
|
2013-02-05 23:23:58 +00:00
|
|
|
|
|
|
|
<p>{% trans -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
The file need not be sorted, but most applications do sort by key when
|
|
|
|
writing to the file, for ease of reading and manual editing.
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
|
|
|
|
|
|
|
<p>{% trans url='http://docs.i2p-projekt.de/javadoc/net/i2p/data/DataHelper.html',
|
|
|
|
commonstructures=site_url('docs/spec/common-structures') -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
Reads and writes are implemented in
|
2013-02-05 23:23:58 +00:00
|
|
|
<a href="{{ url }}">DataHelper loadProps() and storeProps()</a>.
|
2012-10-05 13:02:11 +00:00
|
|
|
Note that the file format is significantly different than the
|
|
|
|
serialized format for I2P protocols specified in
|
2013-02-05 23:23:58 +00:00
|
|
|
<a href="{{ commonstructures }}#type_Mapping">Mapping</a>.
|
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
2013-02-05 23:23:58 +00:00
|
|
|
<h2>{% trans %}Core library and router{% endtrans %}</h2>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
2013-02-05 23:23:58 +00:00
|
|
|
<h3>{% trans %}Clients{% endtrans %} (clients.config)</h3>
|
|
|
|
<p>{% trans -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
Configured via /configclients in the router console.
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
2013-02-05 23:23:58 +00:00
|
|
|
<h3>{% trans %}Logger{% endtrans %} (logger.config)</h3>
|
|
|
|
<p>{% trans -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
Configured via /configlogging in the router console.
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
2013-02-05 23:23:58 +00:00
|
|
|
<h3>{% trans %}Individual Plugin{% endtrans %} (xxx/plugin.config)</h3>
|
|
|
|
<p>{% trans pluginspec=site_url('docs/spec/plugin') -%}
|
|
|
|
See <a href="{{ pluginspec }}">the plugin specification</a>.
|
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
2013-02-05 23:23:58 +00:00
|
|
|
<h3>{% trans %}Plugins{% endtrans %} (plugins.config)</h3>
|
|
|
|
<p>{% trans -%}
|
|
|
|
Enable/disable for each installed plugin.
|
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
2013-02-05 23:23:58 +00:00
|
|
|
<h3>{% trans %}Router{% endtrans %} (router.config)</h3>
|
|
|
|
<p>{% trans -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
Configured via /configadvanced in the router console.
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
2013-02-05 23:23:58 +00:00
|
|
|
<h2>{% trans %}Applications{% endtrans %}</h2>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
2013-02-05 23:23:58 +00:00
|
|
|
<h3>{% trans %}Addressbook{% endtrans %} (addressbook/config.txt)</h3>
|
|
|
|
<p>{% trans -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
See documentation in SusiDNS.
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
|
|
|
<h3>I2PSnark (i2psnark.config)</h3>
|
2013-02-05 23:23:58 +00:00
|
|
|
<p>{% trans -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
Configured via the application gui.
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
|
|
|
<h3>I2PTunnel (i2ptunnel.config)</h3>
|
2013-02-05 23:23:58 +00:00
|
|
|
<p>{% trans -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
Configured via the /i2ptunnel application in the router console.
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
2013-02-05 23:23:58 +00:00
|
|
|
<h3>{% trans %}Router Console{% endtrans %}</h3>
|
|
|
|
<p>{% trans -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
The router console uses the router.config file.
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
2012-10-05 13:02:11 +00:00
|
|
|
|
|
|
|
<h3>SusiMail (susimail.config)</h3>
|
2013-02-05 23:23:58 +00:00
|
|
|
<p>{% trans -%}
|
2012-10-05 13:02:11 +00:00
|
|
|
See post on zzz.i2p.
|
2013-02-05 23:23:58 +00:00
|
|
|
{%- endtrans %}</p>
|
|
|
|
<!--
|
2012-10-05 13:02:11 +00:00
|
|
|
<h3>Systray (systray.config)</h3>
|
|
|
|
<p>
|
|
|
|
TBD
|
|
|
|
</p>
|
2013-02-05 23:23:58 +00:00
|
|
|
-->
|
2012-10-05 13:02:11 +00:00
|
|
|
{% endblock %}
|