X-Git-Url: https://sipb.mit.edu/gitweb.cgi/sipb-www.git/blobdiff_plain/c4c0c33644b714b180d7a8ae937ab24e9b6212b5..a4a8dbd5288b2f0d304a603e7511cea985787be3:/ikiwiki.setup diff --git a/ikiwiki.setup b/ikiwiki.setup index 81df5cf..3078450 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)], + add_plugins => [qw(goodstuff html httpauth rename remove 404 attachment color)], # 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 @@ -208,7 +208,7 @@ if ($ENV{"IKIWIKI_PREVIEW_OUTPUT"}) { %setup_args = ( %common_setup_args, - srcdir => catdir($self_path, "wiki"), + srcdir => catdir($git_root, "wiki"), destdir => $ENV{"IKIWIKI_PREVIEW_OUTPUT"}, url => 'http://sipb.mit.edu', templatedir => catdir($ENV{"IKIWIKI_SHARE"}, 'templates'),