docs/html/configuration.html

changeset 320
12ed560c926c
parent 307
a4419589ea26
child 429
1607450065ba
equal deleted inserted replaced
319:2433b5969d44 320:12ed560c926c
26 <li><a href="remove.html">remove</a></li> 26 <li><a href="remove.html">remove</a></li>
27 <li><a href="copy.html">copy</a></li> 27 <li><a href="copy.html">copy</a></li>
28 <li><a href="move.html">move</a></li> 28 <li><a href="move.html">move</a></li>
29 <li><a href="get-property.html">get-property</a></li> 29 <li><a href="get-property.html">get-property</a></li>
30 <li><a href="set-property.html">set-property</a></li> 30 <li><a href="set-property.html">set-property</a></li>
31 <li><a href="remove-property.html">remove-property</a></li>
31 <li><a href="lock.html">lock</a></li> 32 <li><a href="lock.html">lock</a></li>
32 <li><a href="unlock.html">unlock</a></li> 33 <li><a href="unlock.html">unlock</a></li>
33 <li><a href="info.html">info</a></li> 34 <li><a href="info.html">info</a></li>
34 <li><a href="date.html">date</a></li> 35 <li><a href="date.html">date</a></li>
35 <li><a href="add-repository.html">add-repository</a></li> 36 <li><a href="add-repository.html">add-repository</a></li>
46 <li><a href="introduction.html">Introduction</a></li> 47 <li><a href="introduction.html">Introduction</a></li>
47 <li><a href="sync-commands.html">Commands</a></li> 48 <li><a href="sync-commands.html">Commands</a></li>
48 <ul> 49 <ul>
49 <li><a href="pull.html">pull</a></li> 50 <li><a href="pull.html">pull</a></li>
50 <li><a href="push.html">push</a></li> 51 <li><a href="push.html">push</a></li>
52 <li><a href="archive.html">archive</a></li>
51 <li><a href="resolve-conflicts.html">resolve-conflicts</a></li> 53 <li><a href="resolve-conflicts.html">resolve-conflicts</a></li>
52 <li><a href="delete-conflicts.html">delete-conflicts</a></li> 54 <li><a href="delete-conflicts.html">delete-conflicts</a></li>
53 <li><a href="trash-info.html">trash-info</a></li> 55 <li><a href="trash-info.html">trash-info</a></li>
54 <li><a href="empty-trash.html">empty-trash</a></li> 56 <li><a href="empty-trash.html">empty-trash</a></li>
55 <li><a href="add-directory.html">add-directory</a></li> 57 <li><a href="add-directory.html">add-directory</a></li>
66 <div class="content"> 68 <div class="content">
67 <div id="header"> 69 <div id="header">
68 <h1 class="title">Configuration</h1> 70 <h1 class="title">Configuration</h1>
69 </div> 71 </div>
70 <p>The main configuration file for <em>dav</em> is <code>$HOME/.dav/config.xml</code> and is used for configuring repositories, proxies and encryption keys. This configuration is also used by <em>dav-sync</em>. The file is created automaticaly if it doesn't exist.</p> 72 <p>The main configuration file for <em>dav</em> is <code>$HOME/.dav/config.xml</code> and is used for configuring repositories, proxies and encryption keys. This configuration is also used by <em>dav-sync</em>. The file is created automaticaly if it doesn't exist.</p>
71 <p>The <em>config.xml</em> file is an XML file with <code>&lt;configuration&gt;</code> as root element. The <code>&lt;configuration&gt;</code> element can have the following child elements: <code>&lt;repository&gt;</code>, <code>&lt;http-proxy&gt;</code>, <code>&lt;https-proxy&gt;</code>, <code>&lt;key&gt;</code></p> 73 <p>The <em>config.xml</em> file is an XML file with <code>&lt;configuration&gt;</code> as root element. The <code>&lt;configuration&gt;</code> element can have the following child elements: <code>&lt;repository&gt;</code>, <code>&lt;http-proxy&gt;</code>, <code>&lt;https-proxy&gt;</code>, <code>&lt;key&gt;</code>, <code>&lt;namespace&gt;</code></p>
72 <h2 id="repository">repository</h2> 74 <h2 id="repository">repository</h2>
73 <p>This element is used to configure a repository. A repository must have a unique name to identify the repository and a url pointing to the root collection for this repository.</p> 75 <p>This element is used to configure a repository. A repository must have a unique name to identify the repository and a url pointing to the root collection for this repository.</p>
74 <p>Required child elements: <code>&lt;name&gt;</code>, <code>&lt;url&gt;</code><br /> 76 <p>Required child elements: <code>&lt;name&gt;</code>, <code>&lt;url&gt;</code><br />
75 Optional elements: <code>&lt;user&gt;</code>, <code>&lt;password&gt;</code>, <code>&lt;default-key&gt;</code>, <code>&lt;full-encryption&gt;</code>, <code>&lt;content-encryption&gt;</code>, <code>&lt;decrypt-content&gt;</code>, <code>&lt;decrypt-name&gt;</code>, <code>&lt;cert&gt;</code>, <code>&lt;verification&gt;</code>, <code>&lt;ssl-version&gt;</code>, <code>&lt;authmethods&gt;</code></p> 77 Optional elements: <code>&lt;user&gt;</code>, <code>&lt;password&gt;</code>, <code>&lt;default-key&gt;</code>, <code>&lt;full-encryption&gt;</code>, <code>&lt;content-encryption&gt;</code>, <code>&lt;decrypt-content&gt;</code>, <code>&lt;decrypt-name&gt;</code>, <code>&lt;cert&gt;</code>, <code>&lt;verification&gt;</code>, <code>&lt;ssl-version&gt;</code>, <code>&lt;authmethods&gt;</code></p>
76 <h3 id="name">name</h3> 78 <h3 id="name">name</h3>
167 Example: <code>&lt;password&gt;MTIzNDU2Nzg=&lt;/password&gt;</code></p> 169 Example: <code>&lt;password&gt;MTIzNDU2Nzg=&lt;/password&gt;</code></p>
168 <h3 id="no">no</h3> 170 <h3 id="no">no</h3>
169 <p>A comma separated list of all hosts that should not be accessed through the proxy.</p> 171 <p>A comma separated list of all hosts that should not be accessed through the proxy.</p>
170 <p>Type: string<br /> 172 <p>Type: string<br />
171 Example: <code>&lt;no&gt;host1, host2, host3&lt;/no&gt;</code></p> 173 Example: <code>&lt;no&gt;host1, host2, host3&lt;/no&gt;</code></p>
174 <h2 id="namespace">namespace</h2>
175 <p>Configures an XML-namespace with prefix and uri. The prefix can be used with commands like <code>get-property</code>. The element must have the <code>prefix</code> and the <code>uri</code> attribute.</p>
176 <p>Type: no value Example: <code>&lt;namespace prefix=&quot;e&quot; uri=&quot;http://example.com/&quot; /&gt;</code></p>
172 <h2 id="example-1-minimal-repository-configuration">Example 1: minimal repository configuration</h2> 177 <h2 id="example-1-minimal-repository-configuration">Example 1: minimal repository configuration</h2>
173 <p>A minimal configuration for a repository. If no user and/or password are configured, dav prompts for authentication informations if required.</p> 178 <p>A minimal configuration for a repository. If no user and/or password are configured, dav prompts for authentication informations if required.</p>
174 <pre><code>&lt;configuration&gt; 179 <pre><code>&lt;configuration&gt;
175 &lt;repository&gt; 180 &lt;repository&gt;
176 &lt;name&gt;myrepo&lt;/name&gt; 181 &lt;name&gt;myrepo&lt;/name&gt;

mercurial