From f4a64fb55d02e3eb757dd0e152753ab04f8faa02 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Sun, 6 Oct 2013 20:17:47 +0200 Subject: [PATCH] add configuration overview --- docs/CONFIGURATION.md | 83 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 docs/CONFIGURATION.md diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md new file mode 100644 index 0000000..f8d2005 --- /dev/null +++ b/docs/CONFIGURATION.md @@ -0,0 +1,83 @@ +Isso Configuration +================== + +The Isso configuration file is an INI-style textfile. You can point Isso to +your configuration file either with `-c path/to/isso.cfg` or with a environment +variable set to the *absolute* path. + +The configuration has several sections: *general* for general application behavior, +*server* to specify host and port when not using uWSGI, *SMTP* to send mail +notifications (heavily recommended to use) and *guard*, a naive solution for spam +and abuse detection. + +## Example Configuration + + [general] + dbpath = /var/lib/isso/comments.db + host = https://example.tld/ + [server] + port = 1234 + +For more information on the syntax, refer to [Wikipedia: INI file][1] + +[1]: https://en.wikipedia.org/wiki/INI_file + +## general + +dbpath +: location to the SQLite3 database, defaults to /tmp/isso.db (may pruned +after system restart, so use a proper location). + +secretkey +: session key. If you restart the application several times per hour for +whatever reason, use a static key. Defaults to a random string per application +start. + +host +: location to your website or blog. When you start Isso, it will try to +establish a connection to your website (a simple HEAD request). If this +check fails, none can comment on your website. + +max-age +: time to allow users to remove or edit their comments. Defaults to `900` +seconds (15 minutes). + +## server (not applicable for uWSGI) + +host +: interface to listen on, defaults to `localhost`. + +port +: port to listen on, defaults to 8080. + +reload +: reload application, when editing the source code (only useful for developers), +disabled by default. + +## SMTP + +username +: self-explanatory + +password +: self-explanatory (yes, plain text, create a dedicated account for notifications. + +host +: server host, defaults to `localhost`. + +port +: server port, defaults to `465`. + +ssl +: use SSL, defaults to `on`. + +to +: recipient address + +from +: sender address + +## guard + +enabled +: defaults to `on`.