Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minhajuddin/nginx-mongodb-rest
A mongodb rest client written as an Nginx module
https://github.com/minhajuddin/nginx-mongodb-rest
Last synced: 9 days ago
JSON representation
A mongodb rest client written as an Nginx module
- Host: GitHub
- URL: https://github.com/minhajuddin/nginx-mongodb-rest
- Owner: minhajuddin
- License: other
- Created: 2011-02-02T16:34:32.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-03-07T13:35:25.000Z (over 13 years ago)
- Last Synced: 2024-08-01T17:23:16.795Z (3 months ago)
- Language: C
- Homepage: https://github.com/minhajuddin/nginx-mongodb-rest
- Size: 93.8 KB
- Stars: 32
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mongodb - nginx-mongodb-rest - REST client written as an Nginx module (Tools / Administration)
- awesome-mongodb - nginx-mongodb-rest - REST client written as an Nginx module (Tools / Administration)
README
nginx-mongodb-rest
=========
An nginx module which works as a mongodb readonly rest client.Dependencies
============
**nginx-mongodb-rest** requires the mongo-c-driver which is a submodule of this
repository. To checkout the submodule run$ git submodule init
$ git submodule updateInstallation
============
Installing Nginx modules requires rebuilding Nginx from source:- Grab the [Nginx source](http://nginx.net/) and unpack it.
- Clone this repository somewhere on your machine `git clone git://github.com/minhajuddin/nginx-mongodb-rest.git`.
- Check out the required submodule, as described above.
- Change to the directory containing the Nginx source.
- Now build:$ ./configure --add-module=/path/to/nginx-gridfs/source/
$ make
$ make installConfiguration
=============location / {
mongodb_rest "database_name" "collection_name";
}#example config
location / {
mongodb_rest "khalid_dev" "products";
}The above example configuration exposes the *products* collection in the
*khalid_dev* database. If the server is running on your `localhost` the command
`curl -i http://localhost/12` will give you the following output:HTTP/1.1 200 OK
Server: nginx/0.8.54
Date: Wed, 23 Feb 2011 23:23:11 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive{"_id" : "12" , "name": "funky widgets"}
Known Issues / TODO / Things You Should Hack On
===============================================
- allow passing *collection name* through the url
- allow *ids* of different types e.g. *bson_oid*, *int* ..
- allow *scriptable* collection namesAuthors
=======
Khaja Minhajuddin ([email protected]), Nagaraju BVS ([email protected])Credits
=======
- [nginx-gridfs](https://github.com/mdirolf/nginx-gridfs.git) was the "inspiration" for this project.License
=======
**nginx-mongodb-rest** is licensed under the Apache License, Version 2.0. See *LICENSE* for more details.