GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing webd.is — Webdis, an HTTP interface for Redis with JSON output
+
FeaturesInstallHTTP
Webdis is a simple HTTP server which forwards commands to Redis and sends the reply back using a format of your choice.
Accessing
to the top
/COMMAND/arg0/arg1/.../argN[.ext] on Webdis executes the command on Redis and returns the response; the reply format can be changed with the optional extension (.json, .txt…)
Return codes:
File upload with PUT:
Because the URI format is quite limited, Webdis can read its last argument from a file when it is sent using HTTP PUT. To do this with cURL, use JSON(P) and friends
By default, Webdis replies are JSON objects containing a single item, mapping the requested command name to the Redis reply. The following JSON types are used:
to the top
?jsonp query string parameter adds an optional wrapping function, transforming the reply into a JSONP call. This makes it possible to include Webdis in Javascript apps.
A few other formats are supported:
?type= query string parameter allows you to serve strings as any content-type.
Publish, subscribe
Webdis exposes Redis PUB/SUB channels to HTTP clients, forwarding messages in the channel as they are published by Redis. This is done using chunked transfer encoding.
to the top
Webdis also provides HTML5 WebSocket access to pub/sub channels. Access control
Because some Redis commands can write data, exposing Webdis to clients on the web might not be a good idea. Fortunately, an ACL system matches a profile type to a list of permissions. Each access control setting can match clients by IP + range, by HTTP Auth, or by both, and lists the commands they are able and unable to execute.
to the top
This lets you disable write commands for the public, whilst still keeping a full access from your network.
"acl": [
{
"disabled": ["SET", "DEBUG", "FLUSHDB", "FLUSHALL"]
},
{
"ip": "192.168.0.0/16",
"enabled": ["SET"]
},
{
"http_basic_auth": "root:p4ssw0rd1",
"enabled": ["FLUSHDB"]
}
]
More!
Also supported:
to the top
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |