mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
2
Configuration
Simon Brooke edited this page 2017-09-12 17:23:12 +01:00
Smeagol reads a configuration file, whose content should be formatted as a clojure map.
The default content is as follows:
{
:site-title "Smeagol" ;; overall title of the site, used in page headings
:default-locale "en-GB" ;; default language used for messages
:content-dir "/usr/local/etc/content"
;; where content is served from
:passwd "/usr/local/etc/passwd"
;; where the password file is stored
:log-level :info ;; the minimum logging level; one of
;; :trace :debug :info :warn :error :fatal
:formatters {"vega" smeagol.formatting/process-vega
"vis" smeagol.formatting/process-vega
"mermaid" smeagol.formatting/process-mermaid
"backticks" smeagol.formatting/process-backticks}
}
The values should be:
:content-dirThe directory in which your editable content is stored;:default-localeA string comprising a lower-case ISO 639 code specifying a language, optionally followed by a hyphen and an upper-case ISO 3166 specifying a country.:formattersA map of formatters used in Extensible Markup, q.v.:log-levelThe minimum level of log messages to be logged; one of:trace :debug :info :warn :error :fatal:passwdThe path to yourpasswdfile - see Security and authentication;:site-titleThe title for your wiki.
The default file is at resources/config.edn; this default can be overridden by providing an environment variable, SMEAGOL_CONFIG, whose value is the full or relative pathname of a suitable file.
Note that all the values in the configuration can be overridden with Environment Variables.