From 75820e26481f8f94d438192e171b840068ee78ee Mon Sep 17 00:00:00 2001 From: Nicolas Favre-Felix Date: Thu, 30 Dec 2010 14:26:33 +0100 Subject: [PATCH] Starting to work on HTTP Basic Auth --- webdis.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/webdis.json b/webdis.json index 3174b4b..f56ded8 100644 --- a/webdis.json +++ b/webdis.json @@ -1,5 +1,6 @@ { "redis_host": "127.0.0.1", + "redis_port": 6379, "redis_auth": null, @@ -9,4 +10,26 @@ "disable": { "0.0.0.0/0": ["DEBUG", "FLUSHDB", "FLUSHALL"] } + + "acl": [ + + { + "basic_auth": "user:password", + "disable": ["DEBUG", "FLUSHDB", "FLUSHALL"], + "enable": ["SET"] + }, + + { + "ip": "192.168.10.0/24", + "disable": ["SET", "FLUSHDB", "FLUSHALL"], + "enable": ["*"] + }, + + { + "basic_auth": "user:password", + "ip": "192.168.10.0/24", + "disable": ["FLUSHDB", "FLUSHALL"], + "enable": ["SET", "*"] + } + ] }