summaryrefslogtreecommitdiff
path: root/doc/ikiwiki.setup
blob: d0a2829a1ae9f9401599854da86fbcc5ddec902e (plain)
  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. use IkiWiki::Setup::Standard {
  8. wikiname => "MyWiki",
  9. # Be sure to customise these..
  10. srcdir => "/path/to/source",
  11. destdir => "/var/www/wiki",
  12. templatedir => "/usr/share/ikiwiki/templates",
  13. url => "http://myhost/wiki",
  14. cgiurl => "http://myhost/ikiwiki.cgi",
  15. #historyurl => "http://svn.myhost/trunk/[[file]]",
  16. #diffurl => "http://svn.someurl/trunk/[[file]]?root=wiki&r1=[[r1]]&r2=[[r2]]",
  17. # Whether to integrate with svn.
  18. svn => 1,
  19. svnrepo => "/svn/wiki",
  20. wrappers => [
  21. {
  22. # The svn wrapper.
  23. # Note that this will overwrite any exsting
  24. # post-commit hook script, which may not be
  25. # what you want.
  26. wrapper => "/svn/wiki/hooks/post-commit",
  27. wrappermode => 04755,
  28. },
  29. {
  30. # The cgi wrapper.
  31. #cgiwrapper => {
  32. # cgi => 1,
  33. # wrapper => "/var/www/wiki/ikiwiki.cgi",
  34. # wrappermode => 06755,
  35. #},
  36. },
  37. ],
  38. # Can anonymous web users edit pages?
  39. #anonok => 1,
  40. }