website/server-config: packBlobs and kvIndexFile options

Change-Id: I3cde74d961d292a5d18b952e184e8df0e000bbc3
This commit is contained in:
mpl 2014-06-27 15:25:14 +02:00
parent 1cddedd7d8
commit 6dbd76f8eb
1 changed files with 6 additions and 1 deletions

View File

@ -45,10 +45,14 @@ web browser and restart the server.</p>
<h2 id="storage">Storage options</h2>
<p>At least one of these must be set:</p>
<ul>
<li><b><code>blobPath</code></b>: local disk path to store blobs</li>
<li><b><code>blobPath</code></b>: local disk path to store blobs. (valid for diskpacked too).</li>
<li><b><code>s3</code></b>: "<code>key:secret:bucket</code>" or "<code>key:secret:bucket:hostname</code>" (with colons, but no quotes).</li>
<li><b><code>googlecloudstorage</code></b>: "<code>clientId:clientSecret:refreshToken:bucketName</code>"</li>
</ul>
<p>Additionally:</p>
<ul>
<li><b><code>packBlobs</code></b>: if true, diskpacked is used instead of the default filestorage.</li>
</ul>
<p>For now, if more than one storage option is set, one of them is the primary storage and the other ones are set up as mirrors. The precedence order is the same as the order they are listed above.</p>
<p>Others aren't yet supported by the simple config mode. Patches
to <code>pkg/genconfig</code> welcome.</p>
@ -57,6 +61,7 @@ to <code>pkg/genconfig</code> welcome.</p>
<p>Unless <b><code>runIndex</code></b> is set to <code>false</code>, exactly one of these must be set:</p>
<ul>
<li><b><code>sqlite</code></b>: path to SQLite database file to use for indexing</li>
<li><b><code>kvIndexFile</code></b>: path to kv (https://github.com/cznic/kv) database file to use for indexing</li>
<li><b><code>mongo</code></b>: user:password@host</li>
<li><b><code>mysql</code></b>: user@host:password</li>
<li><b><code>postgres</code></b>: user@host:password</li>