{"id":13480828,"url":"https://github.com/minhajuddin/nginx-mongodb-rest","last_synced_at":"2026-04-04T00:03:31.347Z","repository":{"id":66614654,"uuid":"1320912","full_name":"minhajuddin/nginx-mongodb-rest","owner":"minhajuddin","description":"A mongodb rest client written as an Nginx module","archived":false,"fork":false,"pushed_at":"2011-03-07T13:35:25.000Z","size":96,"stargazers_count":32,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T11:38:18.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/minhajuddin/nginx-mongodb-rest","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/minhajuddin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-02T16:34:32.000Z","updated_at":"2024-07-09T07:11:32.000Z","dependencies_parsed_at":"2023-02-20T07:35:17.871Z","dependency_job_id":null,"html_url":"https://github.com/minhajuddin/nginx-mongodb-rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/minhajuddin/nginx-mongodb-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhajuddin%2Fnginx-mongodb-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhajuddin%2Fnginx-mongodb-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhajuddin%2Fnginx-mongodb-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhajuddin%2Fnginx-mongodb-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minhajuddin","download_url":"https://codeload.github.com/minhajuddin/nginx-mongodb-rest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhajuddin%2Fnginx-mongodb-rest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014820,"owners_count":26085596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T17:00:45.558Z","updated_at":"2025-10-13T11:59:34.687Z","avatar_url":"https://github.com/minhajuddin.png","language":"C","funding_links":[],"categories":["Tools"],"sub_categories":["Administration"],"readme":"nginx-mongodb-rest\n=========\nAn nginx module which works as a mongodb readonly rest client.\n\nDependencies\n============\n**nginx-mongodb-rest** requires the mongo-c-driver which is a submodule of this\nrepository. To checkout the submodule run\n\n    $ git submodule init\n    $ git submodule update\n\n\nInstallation\n============\nInstalling Nginx modules requires rebuilding Nginx from source:\n\n- Grab the [Nginx source](http://nginx.net/) and unpack it.\n- Clone this repository somewhere on your machine `git clone git://github.com/minhajuddin/nginx-mongodb-rest.git`.\n- Check out the required submodule, as described above.\n- Change to the directory containing the Nginx source.\n- Now build:\n\n        $ ./configure --add-module=/path/to/nginx-gridfs/source/\n        $ make\n        $ make install\n\nConfiguration\n=============\n\n    location / {\n        mongodb_rest \"database_name\" \"collection_name\";\n    }\n\n    #example config\n    location / {\n        mongodb_rest \"khalid_dev\" \"products\";\n    }\n\nThe above example configuration exposes the *products* collection in the\n*khalid_dev* database. If the server is running on your `localhost` the command\n`curl -i http://localhost/12` will give you the following output:\n\n    HTTP/1.1 200 OK\n    Server: nginx/0.8.54\n    Date: Wed, 23 Feb 2011 23:23:11 GMT\n    Content-Type: application/json\n    Transfer-Encoding: chunked\n    Connection: keep-alive\n\n    {\"_id\" : \"12\" , \"name\": \"funky widgets\"}\n\nKnown Issues / TODO / Things You Should Hack On\n===============================================\n- allow passing *collection name* through the url\n- allow *ids* of different types e.g. *bson_oid*, *int* ..\n- allow *scriptable* collection names\n\nAuthors\n=======\nKhaja Minhajuddin (minhajuddin\u0026#64;cosmicvent.com), Nagaraju BVS (nagaraju\u0026#64;cosmicvent.com)\n\nCredits\n=======\n- [nginx-gridfs](https://github.com/mdirolf/nginx-gridfs.git) was the \"inspiration\" for this project.\n\nLicense\n=======\n**nginx-mongodb-rest** is licensed under the Apache License, Version 2.0. See *LICENSE* for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhajuddin%2Fnginx-mongodb-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminhajuddin%2Fnginx-mongodb-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhajuddin%2Fnginx-mongodb-rest/lists"}