internal/lglass.md
... ...
@@ -61,3 +61,20 @@ lglass also comes with a simple web interface written in Python3 using Bottle an
61 61
$ ./bin/lglass-web
62 62
63 63
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`.
64
+
65
+## Configuration
66
+
67
+The configuration file format is JSON and allows configuration of the database chain, the listen parameters, the custom messages and the process management.
68
+
69
+| Option | Meaning |
70
+|----------|:-------------|
71
+| listen.host |IP address for listening socket (Default: ::)|
72
+|listen.port|TCP port for listening socket (Default: 4343)|
73
+|listen.protocol|Protocol for listening socket (4 or 6, by default 6)|
74
+|database|Array of database URLs to initialize database chain|
75
+|database.types|Array of object types in database (Default: undefined)<br/>Default chain:<br/>[<br/> "whois+lglass.database.file+file:.",<br/> "whois+lglass.database.cidr+cidr:",<br/> "whois+lglass.database.schema+schema:",<br/> "whois+lglass.database.cache+cached:"<br/>]|
76
+|messages.preamble|String preamble for whois responses|
77
+|messages.help|String help message for help requests|
78
+|process.user|User to change after initialization|
79
+|process.group|Group to change after initialization|
80
+|process.pidfile|Path to PID file|
... ...
\ No newline at end of file