mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
1.3 KiB
1.3 KiB
Smeagol can be configured entirely with environment variables. The variables are:
SMEAGOL_CONFIG(optional but advised) should be the full or relative pathname of a Smeagol Configuration file;SMEAGOL_CONTENT_DIRshould be the full or relative pathname of the directory from which Smeagol should serve content (which may initially be empty, but must be writable by the process which runs Smeagol);SMEAGOL_DEFAULT_LOCALEwhich should be a locale specification in the form "en-GB", "fr-FR", or whatever to suit your users;SMEAGOL_FORMATTERSshould be an edn-formatted map of formatter directives (this would be pretty hard to do from an environment variable);SMEAGOL_LOG_LEVELwhich should be one ofTRACE DEBUG INFO WARN ERROR FATALSMEAGOL_PASSWDshould be the full or relative pathname of a Smeagol Passwd file - see Security and authentication. This file must contain an entry for at least your initial user, and, if you want to administer users through the user interface, must be writable by the process which runs Smeagol.SMEAGOL_SITE_TITLEwhich should be the title you want shown on the header of all pages.
You can have both a configuration file and environment variables; if you do, the values of the environment variables take precedence over the values in the config file.