Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > d8544620e4ac7bee48ddb48c85d55709 > files > 212

ikiwiki-3.20190228-1.mga7.noarch.rpm

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>amazon s3</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link rel="stylesheet" href="../style.css" type="text/css" />

<link rel="stylesheet" href="../local.css" type="text/css" />










</head>
<body>

<div class="page">

<div class="pageheader">
<div class="header">
<span>
<span class="parentlinks">

<a href="../index.html">ikiwiki</a>/ 

<a href="../plugins.html">plugins</a>/ 

</span>
<span class="title">
amazon s3

</span>
</span>



</div>









</div>





<div id="pagebody">

<div id="content" role="main">
<p><span class="infobox">
Plugin: amazon_s3<br />
Author: <span class="createlink">Joey</span><br />
Included in ikiwiki: yes<br />
Enabled by default: no<br />
Included in <a href="./goodstuff.html">goodstuff</a>: no<br />
Currently enabled: no<br />
</span></p>

<p>This plugin allows ikiwiki to publish a wiki in the <a href="http://aws.amazon.com/s3">Amazon Simple Storage
Service</a> (S3). As pages are rendered, ikiwiki
will upload them to Amazon S3. The entire wiki contents, aside from the
ikiwiki CGI, can then be served directly out of Amazon S3.</p>

<p>You'll need the <a href="http://search.cpan.org/search?mode=dist&amp;query=Net%3A%3AAmazon%3A%3AS3">Net::Amazon::S3</a> and <a href="http://search.cpan.org/search?mode=dist&amp;query=File%3A%3AMimeInfo">File::MimeInfo</a> perl
modules and an Amazon S3 account to use this plugin.</p>

<h2>configuration</h2>

<p>This plugin uses the following settings in the setup file:</p>

<ul>
<li><code>amazon_s3_key_id</code> - Set to your public access key id.</li>
<li><code>amazon_s3_key_file</code> - Set to the name of a file where you have
stored your secret access key. The content of this file <em>must</em>
be kept secret.</li>
<li><code>amazon_s3_bucket</code> - The globally unique name of the bucket to use to
store the wiki. This determines the URL to your wiki. For example, if you
set it to "foo", then the url will be
"http://foo.s3.amazonaws.com/wiki/".</li>
<li><code>amazon_s3_prefix</code> - A prefix to prepend to each page name.
The default is "wiki/". Note: In order to host your site at the root,
it needs to be set to "", and you'll have to 
<a href="http://aws.typepad.com/aws/2011/02/host-your-static-website-on-amazon-s3.html">read this</a>
for details about configuring your S3 bucket as a website.</li>
<li><code>amazon_s3_location</code> - Optionally, this can be set to control which
datacenter to use. For example, set it to "EU" to for Europe.</li>
<li><code>amazon_s3_dupindex</code> - Normally, when <code>usedirs</code> is enabled,
"foo/index.html" is stored in S3 as a key named "foo/", and all links
between pages use that name. If you also needs links that include
"index.html" in their names to work, you can enable this option. Then
each index.html file will be stored in S3 <em>twice</em>, under both names. This
will use more disk and bandwidth, and is not recommended unless you really
need it for some reason. These days, it's probably better to configure
your S3 bucket as a website.</li>
</ul>

<p>Note that you should still set <code>destdir</code> in the setup file. The files that
are uploaded to Amazon S3 will still be written to the destdir, too.</p>

<p>Likewise, you will probably want to set the <code>url</code> in the setup file.
The url can use the <code>foo.s3.amazonaws.com</code> domain name, or another domain
name that is a CNAME for it.</p>

<p>The <code>hardlink</code> config file setting is not compatible with this plugin.</p>

<h2>data transfer notes</h2>

<p>If you run 'ikiwiki --setup my.setup' to force a rebuild of your wiki, the
entire thing will be re-uploaded to Amazon S3. This will take time, and
cost you money, so it should be avoided as much as possible.</p>

<p>If you run 'ikiwiki --setup my.setup --refresh', ikiwiki will only upload the
modified pages that it refreshes. Faster and cheaper. Still, if you have
very large pages (for example, a page that inlines hundreds of other pages
.. or is just very large), the complete page contents will be re-uploaded
each time it's changed. Amazon S3 does not currently support partial/rsync
type uploads.</p>

<p>Copy and rename detection is not done, so if you copy or rename a large file,
it will be re-uploaded, rather than copied.</p>

<h2>deleting a bucket</h2>

<p>You can use "ikiwiki --setup my.setup --delete-bucket" to delete anything
that's in the configured bucket, and remove the bucket.</p>

</div>







</div>

<div id="footer" class="pagefooter" role="contentinfo">

<div id="pageinfo">




<div class="tags">
Tags:

<a href="./type/special-purpose.html" rel="tag">type/special-purpose</a>

</div>



<div id="backlinks">
Links:

<a href="../news/ikiwiki_version_3.0.html">news/ikiwiki version 3.0</a>

<a href="../roadmap.html">roadmap</a>

<a href="../tips/github.html">tips/github</a>

<a href="../tips/nearlyfreespeech.html">tips/nearlyfreespeech</a>


</div>






<div class="pagedate">
Last edited <span class="date">Tue Feb 26 23:01:54 2019</span>
<!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> -->
</div>

</div>


<!-- from ikiwiki -->
</div>

</div>

</body>
</html>