#!/usr/home/zick/bin/gosh
(use dbm.fsdbm)
(use wiliki)
;; Customization:
;;
;; (1) Change the #!-line on top to point gosh's path at your site.
;; (2) Tailor keyword arguments after 'make '.
;;
;; :db-path - A path to the dbm database. If it's relative, it's
;; relative to the directory the CGI script exists.
;; I recommend to put the database outside the directory
;; tree accessible via http.
;; The database is automatically created when accessed
;; first time; make sure the data directory is writable
;; by the CGI script only for the first time.
;;
;; :top-page - The name of the top page. If the named page doesn't
;; exist, it is created for the first time it accessed.
;;
;; :title - The name of your WiLiKi site. A string given here
;; is used in some places, like in the title of the
;; "Search results" or "Recent changes" pages.
;;
;; :description - A short description of this Wiki site. This is
;; used in RDF site summary.
;;
;; :editable? - If #f, editing is prohibited.
;;
;; :language - default language, either 'jp or 'en
;;
;; :style-sheet - If a path to the css is given, it is used as a
;; style sheet. #f to use the default style.
;;
;; :charsets - specify assoc list of character encodings to be
;; used to generate webpage.
;;
;; :image-urls - specify which URL is allowed as an in-line image.
;;
;; :db-type - A class that implements database functions;
;; Default is . I think and should
;; work, although they might have a problem in locking
;; the database. You can also define your database class
;; and implement wdb* methods (see wiliki.scm).
;; Don't add this argument if you're not sure about these stuff.
;;
;; :debug-level - if more than 0, wiliki shows diagnostic messages when
;; it encounters an error during processing (including macro
;; expansion error). Useful while debugging, but should be
;; turned off for the sites open to public.
(define (main args)
(wiliki-main
(make
:db-path "/usr/home/zick/wiliki/data"
:log-file "wiki.log"
:top-page "KyotoWiLiKi"
:title "KyotoWiLiKi"
:description "Wiliki Site in Kyoto"
:style-sheet "wiliki.css"
:language 'jp
:charsets '((jp . utf-8) (en . utf-8))
:image-urls '((#/^http:\/\/sourceforge.net\/sflogo/ allow))
:debug-level 0
:db-type
:acl '((default . read) (jouren . read) (editor . write) (admin . all) (ichigen . none) (zick . all))
:session-dir "/usr/home/zick/wiliki/tmp"
:password-path "/usr/home/zick/wiliki/password"
:attachment-dir "/usr/home/zick/wiliki/attach"
)))
;; Local variables:
;; mode: scheme
;; end: