From 016b56259025e62a0224465ec4a28ec80bd80b82 Mon Sep 17 00:00:00 2001 From: dn42 wiki Date: Mon, 2 Feb 2015 08:50:28 +0000 Subject: [PATCH] add Configuration from lglass docs --- internal/lglass.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/internal/lglass.md b/internal/lglass.md index 25340ae..3b8c4a4 100644 --- a/internal/lglass.md +++ b/internal/lglass.md @@ -61,3 +61,20 @@ lglass also comes with a simple web interface written in Python3 using Bottle an $ ./bin/lglass-web Furthermore you can use any WSGI server like Gunicorn by using lglass.web.application:app as WSGI callback. You can provide a path to the configuration file in the environment variable `LGLASS_WEB_CFG`. + +## Configuration + +The configuration file format is JSON and allows configuration of the database chain, the listen parameters, the custom messages and the process management. + +| Option | Meaning | +|----------|:-------------| +| listen.host |IP address for listening socket (Default: ::)| +|listen.port|TCP port for listening socket (Default: 4343)| +|listen.protocol|Protocol for listening socket (4 or 6, by default 6)| +|database|Array of database URLs to initialize database chain| +|database.types|Array of object types in database (Default: undefined)
Default chain:
[
"whois+lglass.database.file+file:.",
"whois+lglass.database.cidr+cidr:",
"whois+lglass.database.schema+schema:",
"whois+lglass.database.cache+cached:"
]| +|messages.preamble|String preamble for whois responses| +|messages.help|String help message for help requests| +|process.user|User to change after initialization| +|process.group|Group to change after initialization| +|process.pidfile|Path to PID file| \ No newline at end of file