7167e6e57bdd5fa5ed34af47a6876d949e95a129
[ikiwiki.git] / doc / ikiwiki.setup
1 #!/usr/bin/perl
2 # Configuration file for ikiwiki.
3 # Passing this to ikiwiki --setup will make ikiwiki generate two
4 # wrapper programs, one for cgi and one for a subversion post-commit hook.
5 #
6 # Remember to re-run ikiwiki --setup any time you edit this file.
7
8 use IkiWiki::Setup::Standard {
9         wikiname => "MyWiki",
10
11         # Be sure to customise these..
12         srcdir => "/path/to/source",
13         destdir => "/var/www/wiki",
14         templatedir => "/usr/share/ikiwiki/templates",
15
16         url => "http://myhost/wiki",
17         cgiurl => "http://myhost/ikiwiki.cgi",
18         #historyurl => "http://svn.myhost/trunk/[[]]",
19         
20         # Whether to integrate with svn.
21         svn => 1,
22         svnrepo => "/svn/wiki",
23
24         wrappers => [
25                 {
26                         # The svn wrapper.
27                         # Note that this will overwrite any exsting
28                         # post-commit hook script, which may not be
29                         # what you want.
30                         wrapper => "/svn/wiki/hooks/post-commit",
31                         wrappermode => 04755,
32                 },
33                 {
34                         # The cgi wrapper.
35                         #cgiwrapper => {
36                         #       cgi => 1,
37                         #       wrapper => "/var/www/wiki/ikiwiki.cgi",
38                         #       wrappermode => 06755,
39                         #},
40                 },
41         ],
42         
43         # Can anonymous web users edit pages?
44         #anonok => 1,
45 }