Starting to work on HTTP Basic Auth

master
Nicolas Favre-Felix 14 years ago
parent ab9f037f89
commit 75820e2648

@ -1,5 +1,6 @@
{ {
"redis_host": "127.0.0.1", "redis_host": "127.0.0.1",
"redis_port": 6379, "redis_port": 6379,
"redis_auth": null, "redis_auth": null,
@ -9,4 +10,26 @@
"disable": { "disable": {
"0.0.0.0/0": ["DEBUG", "FLUSHDB", "FLUSHALL"] "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", "*"]
}
]
} }

Loading…
Cancel
Save