Sample configuration for the "redis" module
authorAlan T. DeKok <aland@freeradius.org>
Thu, 13 Jan 2011 23:10:42 +0000 (00:10 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 13 Jan 2011 23:13:34 +0000 (00:13 +0100)
raddb/modules/redis [new file with mode: 0644]

diff --git a/raddb/modules/redis b/raddb/modules/redis
new file mode 100644 (file)
index 0000000..d7605d9
--- /dev/null
@@ -0,0 +1,35 @@
+# -*- text -*-
+#
+#  $Id$
+
+#
+#  Configuration file for the "redis" module.  This module does nothing
+#  Other than provide connections to a redis database, and a %{redis: ...}
+#  expansion.
+#
+redis {
+       #  Host where the redis server is located.
+       #  We recommend using ONLY 127.0.0.1 !
+       hostname = 127.0.0.1
+
+       #  The default port.
+       port = 6379
+       
+       #  The password used to authenticate to the server.
+       #  We recommend using a strong password.
+#      password = thisisreallysecretandhardtoguess
+
+       # The number of connections to open to the database.
+       num_connections = 20
+
+       # If a connection fails, retry after this time.
+       connect_failure_retry_delay = 60
+
+       #  Set the maximum lifetime for one connection.
+       #  Use 0 for "lives forever"
+       lifetime = 86400
+
+       #  Set the maximum queries used for one connection.
+       #  Use 0 for "no limit"
+       max_queries = 0
+}
\ No newline at end of file