| 1 |
#!/usr/bin/perl |
| 2 |
# Setup file for ikiwiki. |
| 3 |
# |
| 4 |
# Passing this to ikiwiki --setup will make ikiwiki generate |
| 5 |
# wrappers and build the wiki. |
| 6 |
# |
| 7 |
# Remember to re-run ikiwiki --setup any time you edit this file. |
| 8 |
use IkiWiki::Setup::Standard { |
| 9 |
# name of the wiki |
| 10 |
wikiname => 'sokol-iki', |
| 11 |
# contact email for wiki |
| 12 |
adminemail => 'z.vanya@gmail.com', |
| 13 |
# users who are wiki admins |
| 14 |
adminuser => [qw{imz http://lj.rossia.org/users/imz/ http://copylefter.livejournal.com/ http://anunah.myopenid.com/ http://taoom.livejournal.com/}], |
| 15 |
# users who are banned from the wiki |
| 16 |
banned_users => [], |
| 17 |
# where the source of the wiki is located |
| 18 |
srcdir => '/home/sokol-iki/sokol-iki/content', |
| 19 |
# where to build the wiki |
| 20 |
destdir => '/var/www/apache2/html/sokol-iki', |
| 21 |
# base url to the wiki |
| 22 |
url => 'http://zephyrous.yauza.ru/sokol-iki', |
| 23 |
# url to the ikiwiki.cgi |
| 24 |
cgiurl => 'http://zephyrous.yauza.ru/cgi-bin/sokol-iki.cgi', |
| 25 |
# filename of cgi wrapper to generate |
| 26 |
cgi_wrapper => '/srv/sokol-iki/ikiwiki.cgi', |
| 27 |
# mode for cgi_wrapper (can safely be made suid) |
| 28 |
cgi_wrappermode => '06755', |
| 29 |
# rcs backend to use |
| 30 |
rcs => 'git', |
| 31 |
# plugins to add to the default configuration |
| 32 |
add_plugins => [qw{goodstuff websetup comments htmltidy anonok}], |
| 33 |
# plugins to disable |
| 34 |
disable_plugins => [qw{passwordauth}], |
| 35 |
# location of template files |
| 36 |
templatedir => 'templates', |
| 37 |
# base wiki source location |
| 38 |
underlaydir => '/usr/local/share/ikiwiki/basewiki', |
| 39 |
# display verbose messages? |
| 40 |
#verbose => 1, |
| 41 |
# log to syslog? |
| 42 |
syslog => 1, |
| 43 |
# create output files named page/index.html? |
| 44 |
usedirs => 1, |
| 45 |
# use '!'-prefixed preprocessor directives? |
| 46 |
prefix_directives => 1, |
| 47 |
# use page/index.mdwn source files |
| 48 |
indexpages => 1, |
| 49 |
# enable Discussion pages? |
| 50 |
discussion => 1, |
| 51 |
# only send cookies over SSL connections? |
| 52 |
sslcookie => 0, |
| 53 |
# extension to use for new pages |
| 54 |
default_pageext => 'mdwn', |
| 55 |
# extension to use for html files |
| 56 |
htmlext => 'html', |
| 57 |
# strftime format string to display date |
| 58 |
timeformat => '%c', |
| 59 |
# UTF-8 locale to use |
| 60 |
#locale => 'en_US.UTF-8', |
| 61 |
# put user pages below specified page |
| 62 |
userdir => '', |
| 63 |
# how many backlinks to show before hiding excess (0 to show all) |
| 64 |
numbacklinks => 10, |
| 65 |
# attempt to hardlink source files? (optimisation for large files) |
| 66 |
hardlink => 0, |
| 67 |
# force ikiwiki to use a particular umask |
| 68 |
#umask => 022, |
| 69 |
# group for wrappers to run in |
| 70 |
#wrappergroup => 'ikiwiki', |
| 71 |
# extra library and plugin directory |
| 72 |
libdir => '/home/sokol-iki/.ikiwiki', |
| 73 |
# environment variables |
| 74 |
ENV => {}, |
| 75 |
# regexp of source files to ignore |
| 76 |
#exclude => '\\.wav$', |
| 77 |
# specifies the characters that are allowed in source filenames |
| 78 |
wiki_file_chars => '-[:alnum:]+/.:_', |
| 79 |
# allow symlinks in the path leading to the srcdir (potentially insecure) |
| 80 |
allow_symlinks_before_srcdir => 0, |
| 81 |
|
| 82 |
# git plugin |
| 83 |
# git hook to generate |
| 84 |
git_wrapper => '/home/sokol-iki/sokol-iki.git/hooks/post-update', |
| 85 |
# mode for git_wrapper (can safely be made suid) |
| 86 |
#git_wrappermode => '06755', |
| 87 |
# git pre-receive hook to generate |
| 88 |
#git_test_receive_wrapper => '/git/wiki.git/hooks/pre-receive', |
| 89 |
# unix users whose commits should be checked by the pre-receive hook |
| 90 |
#untrusted_committers => [], |
| 91 |
# gitweb url to show file history ([[file]] substituted) |
| 92 |
#historyurl => 'http://git.example.com/gitweb.cgi?p=wiki.git;a=history;f=[[file]]', |
| 93 |
# gitweb url to show a diff ([[file]], [[sha1_to]], [[sha1_from]], [[sha1_commit]], and [[sha1_parent]] substituted) |
| 94 |
#diffurl => 'http://git.example.com/gitweb.cgi?p=wiki.git;a=blobdiff;f=[[file]];h=[[sha1_to]];hp=[[sha1_from]];hb=[[sha1_commit]];hpb=[[sha1_parent]]', |
| 95 |
# where to pull and push changes (set to empty string to disable) |
| 96 |
#gitorigin_branch => 'origin', |
| 97 |
# branch that the wiki is stored in |
| 98 |
#gitmaster_branch => 'master', |
| 99 |
|
| 100 |
# aggregate plugin |
| 101 |
# enable aggregation to internal pages? |
| 102 |
#aggregateinternal => 1, |
| 103 |
# allow aggregation to be triggered via the web? |
| 104 |
#aggregate_webtrigger => 0, |
| 105 |
|
| 106 |
# anonok plugin |
| 107 |
# PageSpec to limit which pages anonymous users can edit |
| 108 |
#anonok_pagespec => '*/discussion', |
| 109 |
|
| 110 |
# If you're using the comments plugin, you can allow anonymous comments to be posted by setting: |
| 111 |
anonok_pagespec => "postcomment(*)", |
| 112 |
|
| 113 |
|
| 114 |
# attachment plugin |
| 115 |
# enhanced PageSpec specifying what attachments are allowed |
| 116 |
#allowed_attachments => 'virusfree() and mimetype(image/*) and maxsize(50kb)', |
| 117 |
# virus checker program (reads STDIN, returns nonzero if virus found) |
| 118 |
#virus_checker => 'clamdscan -', |
| 119 |
|
| 120 |
# blogspam plugin |
| 121 |
# PageSpec of pages to check for spam |
| 122 |
#blogspam_pagespec => 'postcomment(*)', |
| 123 |
# options to send to blogspam server |
| 124 |
#blogspam_options => 'blacklist=1.2.3.4,blacklist=8.7.6.5,max-links=10', |
| 125 |
# blogspam server XML-RPC url |
| 126 |
#blogspam_server => '', |
| 127 |
|
| 128 |
# bzr plugin |
| 129 |
# bzr post-commit hook to generate |
| 130 |
#bzr_wrapper => '', |
| 131 |
# mode for bzr_wrapper (can safely be made suid) |
| 132 |
#bzr_wrappermode => '06755', |
| 133 |
# url to show file history, using loggerhead ([[file]] substituted) |
| 134 |
#historyurl => '', |
| 135 |
# url to view a diff, using loggerhead ([[file]] and [[r2]] substituted) |
| 136 |
#diffurl => 'http://example.com/revision?start_revid=[[r2]]#[[file]]-s', |
| 137 |
|
| 138 |
# calendar plugin |
| 139 |
# base of the archives hierarchy |
| 140 |
#archivebase => 'archives', |
| 141 |
|
| 142 |
# camelcase plugin |
| 143 |
# list of words to not turn into links |
| 144 |
#camelcase_ignore => [], |
| 145 |
|
| 146 |
# comments plugin |
| 147 |
# PageSpec of pages where comments are allowed |
| 148 |
#comments_pagespec => 'blog/* and !*/Discussion', |
| 149 |
comments_pagespec => '* and !*/Discussion and !index', |
| 150 |
# PageSpec of pages where posting new comments is not allowed |
| 151 |
#comments_closed_pagespec => 'blog/controversial or blog/flamewar', |
| 152 |
# Base name for comments, e.g. "comment_" for pages like "sandbox/comment_12" |
| 153 |
#comments_pagename => '', |
| 154 |
# Interpret directives in comments? |
| 155 |
#comments_allowdirectives => 0, |
| 156 |
# Allow anonymous commenters to set an author name? |
| 157 |
comments_allowauthor => 1, |
| 158 |
# commit comments to the VCS |
| 159 |
#comments_commit => 1, |
| 160 |
|
| 161 |
# darcs plugin |
| 162 |
# wrapper to generate (set as master repo apply hook) |
| 163 |
#darcs_wrapper => '/darcs/repo/_darcs/ikiwiki-wrapper', |
| 164 |
# mode for darcs_wrapper (can safely be made suid) |
| 165 |
#darcs_wrappermode => '06755', |
| 166 |
# darcsweb url to show file history ([[file]] substituted) |
| 167 |
#historyurl => 'http://darcs.example.com/darcsweb.cgi?r=wiki;a=filehistory;f=[[file]]', |
| 168 |
# darcsweb url to show a diff ([[hash]] and [[file]] substituted) |
| 169 |
#diffurl => 'http://darcs.example.com/darcsweb.cgi?r=wiki;a=filediff;h=[[hash]];f=[[file]]', |
| 170 |
|
| 171 |
# highlight plugin |
| 172 |
# types of source files to syntax highlight |
| 173 |
#tohighlight => '.c .h .cpp .pl .py Makefile:make', |
| 174 |
|
| 175 |
# htmlscrubber plugin |
| 176 |
# PageSpec specifying pages not to scrub |
| 177 |
#htmlscrubber_skip => '!*/Discussion', |
| 178 |
|
| 179 |
# inline plugin |
| 180 |
# enable rss feeds by default? |
| 181 |
rss => 1, |
| 182 |
# enable atom feeds by default? |
| 183 |
atom => 1, |
| 184 |
# allow rss feeds to be used? |
| 185 |
#allowrss => 0, |
| 186 |
# allow atom feeds to be used? |
| 187 |
#allowatom => 0, |
| 188 |
# urls to ping (using XML-RPC) on feed update |
| 189 |
#pingurl => 'http://rpc.technorati.com/rpc/ping', |
| 190 |
|
| 191 |
# listdirectives plugin |
| 192 |
# directory in srcdir that contains directive descriptions |
| 193 |
#directive_description_dir => 'ikiwiki/directive', |
| 194 |
|
| 195 |
# lockedit plugin |
| 196 |
# PageSpec controlling which pages are locked |
| 197 |
#locked_pages => '!*/Discussion', |
| 198 |
|
| 199 |
# Alternatively, if you're using the comments plugin, you can allow users to comment on pages, but not edit anything else. |
| 200 |
locked_pages => "!postcomment(*) and !*/Discussion", |
| 201 |
|
| 202 |
# mdwn plugin |
| 203 |
# enable multimarkdown features? |
| 204 |
#multimarkdown => 0, |
| 205 |
|
| 206 |
# mercurial plugin |
| 207 |
# mercurial post-commit hook to generate |
| 208 |
#mercurial_wrapper => '', |
| 209 |
# mode for mercurial_wrapper (can safely be made suid) |
| 210 |
#mercurial_wrappermode => '06755', |
| 211 |
# url to hg serve'd repository, to show file history ([[file]] substituted) |
| 212 |
#historyurl => 'http://example.com:8000/log/tip/[[file]]', |
| 213 |
# url to hg serve'd repository, to show diff ([[file]] and [[r2]] substituted) |
| 214 |
#diffurl => 'http://localhost:8000/?fd=[[r2]];file=[[file]]', |
| 215 |
|
| 216 |
# mirrorlist plugin |
| 217 |
# list of mirrors |
| 218 |
#mirrorlist => {}, |
| 219 |
|
| 220 |
# openid plugin |
| 221 |
# an url where users can signup for an OpenID |
| 222 |
openidsignup => 'http://myopenid.com/', |
| 223 |
|
| 224 |
# passwordauth plugin |
| 225 |
# a password that must be entered when signing up for an account |
| 226 |
#account_creation_password => 's3cr1t', |
| 227 |
# cost of generating a password using Authen::Passphrase::BlowfishCrypt |
| 228 |
#password_cost => 8, |
| 229 |
|
| 230 |
# pinger plugin |
| 231 |
# how many seconds to try pinging before timing out |
| 232 |
#pinger_timeout => 15, |
| 233 |
|
| 234 |
# prettydate plugin |
| 235 |
# format to use to display date |
| 236 |
#prettydateformat => '%X, %B %o, %Y', |
| 237 |
|
| 238 |
# recentchanges plugin |
| 239 |
# name of the recentchanges page |
| 240 |
#recentchangespage => 'recentchanges', |
| 241 |
# number of changes to track |
| 242 |
#recentchangesnum => 100, |
| 243 |
|
| 244 |
# repolist plugin |
| 245 |
# URIs of repositories containing the wiki's source |
| 246 |
#repositories => [qw{svn://svn.example.org/wiki/trunk}], |
| 247 |
|
| 248 |
# search plugin |
| 249 |
# path to the omega cgi program |
| 250 |
#omega_cgi => '/usr/lib/cgi-bin/omega/omega', |
| 251 |
|
| 252 |
# svn plugin |
| 253 |
# subversion repository location |
| 254 |
#svnrepo => '/svn/wiki', |
| 255 |
# path inside repository where the wiki is located |
| 256 |
#svnpath => 'trunk', |
| 257 |
# svn post-commit hook to generate |
| 258 |
#svn_wrapper => '/svn/wikirepo/hooks/post-commit', |
| 259 |
# mode for svn_wrapper (can safely be made suid) |
| 260 |
#svn_wrappermode => '04755', |
| 261 |
# viewvc url to show file history ([[file]] substituted) |
| 262 |
#historyurl => 'http://svn.example.org/trunk/[[file]]', |
| 263 |
# viewvc url to show a diff ([[file]], [[r1]], and [[r2]] substituted) |
| 264 |
#diffurl => 'http://svn.example.org/trunk/[[file]]?root=wiki&r1=[[r1]]&r2=[[r2]]', |
| 265 |
|
| 266 |
# tag plugin |
| 267 |
# parent page tags are located under |
| 268 |
#tagbase => 'tag', |
| 269 |
# Auto-create the new tag pages, uses autotagpage.tmpl |
| 270 |
#tag_autocreate => 0, |
| 271 |
# the new tag pages are auto-created cleanly: do no commit them |
| 272 |
#tag_autocreate_clean => 1, |
| 273 |
|
| 274 |
# teximg plugin |
| 275 |
# Should teximg use dvipng to render, or dvips and convert? |
| 276 |
#teximg_dvipng => '', |
| 277 |
# LaTeX prefix for teximg plugin |
| 278 |
#teximg_prefix => '\\documentclass{article} |
| 279 |
#\\usepackage{amsmath} |
| 280 |
#\\usepackage{amsfonts} |
| 281 |
#\\usepackage{amssymb} |
| 282 |
#\\pagestyle{empty} |
| 283 |
#\\begin{document} |
| 284 |
#', |
| 285 |
# LaTeX postfix for teximg plugin |
| 286 |
#teximg_postfix => '\\end{document}', |
| 287 |
|
| 288 |
# tla plugin |
| 289 |
# tla post-commit hook to generate |
| 290 |
#tla_wrapper => '', |
| 291 |
# mode for tla_wrapper (can safely be made suid) |
| 292 |
#tla_wrappermode => '06755', |
| 293 |
# url to show file history ([[file]] substituted) |
| 294 |
#historyurl => '', |
| 295 |
# url to show a diff ([[file]] and [[rev]] substituted) |
| 296 |
#diffurl => '', |
| 297 |
|
| 298 |
# underlay plugin |
| 299 |
# extra underlay directories to add |
| 300 |
#add_underlays => '', |
| 301 |
|
| 302 |
# websetup plugin |
| 303 |
# list of plugins that cannot be enabled/disabled via the web interface |
| 304 |
#websetup_force_plugins => [], |
| 305 |
# show unsafe settings, read-only, in web interface? |
| 306 |
#websetup_show_unsafe => 1, |
| 307 |
} |