Ajout : vm_hosted : lhc-remorque .
[lhc/ateliers.git] / etc / nginx / site.d / lhc-remorque / ikiwiki.setup
diff --git a/etc/nginx/site.d/lhc-remorque/ikiwiki.setup b/etc/nginx/site.d/lhc-remorque/ikiwiki.setup
new file mode 100644 (file)
index 0000000..d5645a8
--- /dev/null
@@ -0,0 +1,219 @@
+#!/usr/bin/perl
+
+use IkiWiki::Setup::Standard {
+       wikiname => 'Remorque Atelier',
+       adminemail => 'admin+lhc-remorque@heureux-cyclage.org',
+       adminuser => [qw{
+               julm
+               lchevalier
+        }],
+       banned_users => [],
+       srcdir => "/home/lhc/var/ikiwiki/remorque",
+       destdir => "/home/www/pub/lhc-remorque",
+       #templatedir => "/home/lhc/var/ikiwiki/remorque/tmpl",
+       templatedir => '/usr/share/ikiwiki/templates',
+       underlaydir => '/usr/share/ikiwiki/basewiki',
+       url => '/',
+       cgiurl => '/cgi/ikiwiki.cgi',
+       #prefsurl => "https://$ENV{site}/cgi/ikiwiki.cgi",
+       #cgi_wrapper => 'cgi/ikiwiki.cgi',
+       #cgi_wrappermode => '02750',
+       cgiauthurl => "https://remorque.heureux-cyclage.org/auth/cgi/ikiwiki.cgi",
+       httpauth_pagespec => '!*/Discussion and !tmp',
+       anonok_pagespec => '*/Discussion or tmp',
+       locked_pages => '(user(git) and * and !*/Discussion and !tmp) and !*/Discussion',
+       rcs => "git",
+       historyurl => "/git/?p=remorqueatelier.git;a=history;f=[[file]]",
+       diffurl    => "/git/?p=remorqueatelier.git;a=blobdiff;f=[[file]];h=[[sha1_to]];hp=[[sha1_from]];hb=[[sha1_commit]];hpb=[[sha1_parent]]",
+       gitorigin_branch => "origin",
+       gitmaster_branch => "master",
+       wrappers => [
+                { cgi => 1
+                , wrapper => "/home/www/pub/lhc-remorque/cgi/ikiwiki.cgi"
+                , wrappermode => "00750"
+                }
+        , { post_commit => 1
+                , wrapper => "/home/git/hooks/remorque/post-update.ikiwiki"
+                , wrappermode => "06750"
+                , wrapper_background_command => ""
+                }
+       # , { post_commit => 1
+       #        , wrapper => "/home/git/pub/remorqueatelier/hooks/post-receive.iki"
+       #        , wrappermode => "06750"
+       #        , wrapper_background_command => ""
+       #        }
+       # , { test_receive => 1
+       #        , wrapper => "/home/git/pub/remorqueatelier.git/hooks/pre-receive.iki"
+       #        , wrappermode => "06750"
+       #        }
+        ],
+       #untrusted_committers => undef,
+       add_plugins => [qw{
+               404
+               attachment
+               brokenlinks
+               cutpaste
+               editdiff
+               favicon
+               htmlscrubber
+               httpauth
+               img
+               inline
+               link
+               lockedit
+               map
+               orphans
+               pagecount
+               pagestats
+               progress
+               recentchanges
+               recentchangesdiff
+               remove
+               rename
+               repolist
+               search
+               sidebar
+               table
+               tag
+               template
+               toc
+        }],
+       disable_plugins => [qw{
+               anonok
+               httpauth
+               mail
+               more
+               openid
+               passwordauth
+               rename
+               shortcut
+               signinedit
+               toggle
+        }],
+       verbose => 1,
+       #syslog => 1,
+       usedirs => 1,
+       prefix_directives => 1,
+       indexpages => 0,
+       discussion => 1,
+       discussionpage => 'Discussion',
+       html5 => 0,
+       sslcookie => 1,
+       default_pageext => 'mdwn',
+       htmlext => 'xhtml',
+       timeformat => '%c',
+       locale => 'fr_FR.UTF-8',
+       #userdir => 'usr',
+       numbacklinks => 10,
+       hardlink => 0,
+       umask => 002,
+       #wrappergroup => 'ikiwiki',
+       #libdir => '/home/lhc/var/ikiwiki/remorqueatelier/.ikiwiki',
+       libdir => '',
+       ENV => {},
+       #include => '^\\.htaccess$',
+       exclude => '^/etc$',
+       #wiki_file_chars => '-[:alnum:]+/.:_@’()&',
+       wiki_file_chars => '-[:alnum:]+/.:_',
+       allow_symlinks_before_srcdir => 1,
+       #htmlscrubber_skip => '!*/Discussion',
+       #rss => 0,
+       atom => 1,
+       #allowrss => 0,
+       allowatom => 1,
+       pingurl => [],
+       #blogspam_pagespec => 'postcomment(*)',
+       #blogspam_options => 'blacklist=1.2.3.4,blacklist=8.7.6.5,max-links=10',
+       #blogspam_server => '',
+       #moderate_pagespec => 'user(http://*)',
+       #openid_realm => '',
+       #openid_cgiurl => '',
+       #openidsignup => 'http://myopenid.com/',
+       account_creation_password => 'w3_sh411_0v3rc0m3',
+       password_cost => 8,
+       #tohighlight => '.c .h .cpp .pl .py Makefile:make',
+       #multimarkdown => 0,
+       #allowed_attachments =>
+       # '  (mimetype(image/*)         and maxsize(100kb))
+       # or (mimetype(application/pdf) and maxsize(2mb)
+       # )',
+       #virus_checker => 'clamdscan -',
+       #comments_pagespec => 'blog/* and !*/Discussion',
+       #comments_closed_pagespec => 'blog/controversial or blog/flamewar',
+       #comments_pagename => '',
+       #comments_allowdirectives => 0,
+       #comments_allowauthor => 0,
+       #comments_commit => 1,
+       #getsource_mimetype => 'text/plain; charset=utf-8',
+       #mirrorlist => {},
+       repositories =>
+        [ "git://git.heureux-cyclage.org/remorqueatelier.git"
+        , "git\@git.heureux-cyclage.org:remorqueatelier.git"
+        ],
+       omega_cgi => '/usr/lib/cgi-bin/omega/omega',
+       search_pagespec => '* and !recentchanges/*',
+       #websetup_force_plugins => [],
+       #websetup_unsafe => [],
+       #websetup_show_unsafe => 1,
+       #archivebase => 'archives',
+       #archive_pagespec => 'posts/* and !*/Discussion',
+       #directive_description_dir => 'ikiwiki/directive',
+       #teximg_dvipng => '',
+       #teximg_prefix => '\\documentclass{article}
+       #\\usepackage{amsmath}
+       #\\usepackage{amsfonts}
+       #\\usepackage{amssymb}
+       #\\pagestyle{empty}
+       #\\begin{document}
+       #',
+       #teximg_postfix => '\\end{document}',
+       #aggregateinternal => 1,
+       #aggregate_webtrigger => 0,
+       #camelcase_ignore => [],
+       #pinger_timeout => 15,
+       #prettydateformat => '%X, %B %o, %Y',
+       recentchangespage => 'recentchanges',
+       recentchangesnum => 100,
+       #rsync_command => 'rsync -qa --delete . user@host:/path/to/docroot/',
+       global_sidebars => '*',
+       #tagbase => 'tag',
+       #add_underlays => [qw{/home/fai/wiki.underlay}],
+       #add_templates => [qw{/home/fai/.ikiwiki/templates}],
+       external_links => qr{^(git)(/.*|$)},
+       attachment =>
+        { insert => 'Lier'
+        , rename => 'Renommer'
+        , remove => 'Détacher'
+        , upload => 'Attacher'
+        },
+       backlinks =>
+        { map_tmpl => 'map-doc'
+        , map_id   => 'backlink'
+        , tmpl     => 'page.tmpl'
+        , page     => 'backlinks'
+        , title    => 'rétro-liens'
+        },
+       edit =>
+        { title    => 'édition'
+        , save     => 'Sauvegarder'
+        , preview  => 'Apercevoir'
+        , cancel   => 'Annuler'
+        , remove   => 'Supprimer'
+        , rename   => 'Bouger'
+        , diff     => 'Comparer'
+        , location => 'Emplacement'
+        , type     => 'Type'
+        },
+       tag =>
+        { map_tmpl => 'map-doc'
+        , map_id   => 'backlink'
+        , tmpl     => 'page.tmpl'
+        , page     => 'tag'
+        , title    => 'étiquette'
+        },
+       toc =>
+        { id   => 'may-be-invalid'
+        , back => '↑ '
+        },
+       default_file => 'default.mdwn'
+ }