Add 'user_from_host' directive to generalize username extraction

Closes #100
Default extractor is backward compatible
This commit is contained in:
Sandro Santilli
2013-12-17 17:17:17 +01:00
parent e9db535dd8
commit 1f693c6c78
6 changed files with 32 additions and 1 deletions
@@ -2,6 +2,9 @@ var config = {
environment: 'development'
,port: 8181
,host: '127.0.0.1'
// Regular expression pattern to extract username
// from hostname. Must have a single grabbing block.
,user_from_host: '^(.*)\\.localhost'
// Maximum number of connections for one process
// 128 is a good value with a limit of 1024 open file descriptors
,maxConnections:128