Text::Textile
Text::WikiFormat
XML::Feed
+Net::Amazon::S3
=head1 AUTHOR
if (link($srcfile, $config{destdir}."/".$file)) {
return;
}
- # if hardlink fails, fall back top copying
+ # if hardlink fails, fall back to copying
}
my $srcfd=readfile($srcfile, 1, 1);
# For use with the pinger plugin, how many seconds to wait before
# timing out.
#pinger_timeout => 15.
+
+ # For use with the amazon S3 plugin, your public access key id.
+ #amazon_s3_key_id => 'XXXXXXXXXXXXXXXXXXXX',
+ # And a file holding your secret key. This file *must* not be
+ # readable by others!
+ #amazon_s3_key_file => "/home/me/.hide/.s3_key
+ # The globally unique name of the bucket to use to store the wiki.
+ #amazon_s3_bucket => "mywiki",
+ # A prefix to prepend to each page name.
+ #amazon_s3_prefix => "wiki/",
+ # Uncomment to use the S3 European datacenter.
+ #amazon_s3_location => "EU",
}
## configuration
+Important note: You should seriously consider turning off `usedirs` before
+enabling this plugin. If `usedirs` is enabled, every page has to be stored
+in S3 *twice*, as "page/index.html" and as "page/". That will cost you
+money and bandwidth.
+
This plugin uses the following settings in the setup file:
* `amazon_s3_key_id` - Set to your public access key id.
The url can use the `foo.s3.amazonaws.com` domain name, or another domain
name that is a CNAME for it.
+The `hardlink` config file setting is not compatible with this plugin.
+
## data transfer notes
If you run 'ikiwiki -setup my.setup' to force a rebuild of your wiki, the
syslog => 0,
userdir => "users",
usedirs => 0,
- add_plugins => [qw{goodstuff version haiku polygen fortune}],
+ add_plugins => [qw{goodstuff version polygen fortune amazon_s3}],
+ amazon_s3_key_id => '08TJMT99S3510QHZEP82',
+ amazon_s3_bucket => 'ikiwiki-test',
+ amazon_s3_key_file => "/home/joey/.hide/aws_secret_access_key",
}