From: Quentin Smith Date: Sat, 13 Mar 2010 23:51:23 +0000 (-0500) Subject: Allow attachments X-Git-Url: https://sipb.mit.edu/gitweb.cgi/sipb-www.git/commitdiff_plain/b9a642922898170a4f74e533171ec235b9130a85 Allow attachments --- diff --git a/ikiwiki.setup b/ikiwiki.setup index c3983d8..0dc4f8a 100644 --- a/ikiwiki.setup +++ b/ikiwiki.setup @@ -23,7 +23,7 @@ my %common_setup_args = ( # IMPORTANT! If you add plugins that involve interface changes, you # will need to modify our templates to allow this, as our custom # template does not support them yet. See ~/src/ikiwiki/templates - add_plugins => [qw(goodstuff html httpauth rename remove 404)], + add_plugins => [qw(goodstuff html httpauth rename remove 404 attachment)], # plugins to disable # IMPORTANT! If you reenable passwordauth/openid, you need to # do some modifications described in TODO.SIPB in the source-tree @@ -83,9 +83,9 @@ my %common_setup_args = ( # attachment plugin # enhanced PageSpec specifying what attachments are allowed - #allowed_attachments => 'virusfree() and mimetype(image/*) and maxsize(50kb)', + allowed_attachments => 'virusfree() and (mimetype(image/*) or mimetype(application/pdf)) and maxsize(10000kb)', # virus checker program (reads STDIN, returns nonzero if virus found) - #virus_checker => 'clamdscan -', + virus_checker => 'clamscan -', # calendar plugin # base of the archives hierarchy