From 5e47fcba38c222dc37fbd3450777fdaadfae789f Mon Sep 17 00:00:00 2001 From: Luca Sepe Date: Sun, 22 Apr 2012 17:51:27 +0200 Subject: [PATCH] first commit --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ab68f9b --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +nginx_apikey_access_filter_module +================================= + +Nginx filter to restrict the access at your backend APIs + +Status +====== + +This module is under active development and is production ready. + +Synopsis +======== + + server { + + ... + + # let's filter all the requests to our backend API s(i.e. a tornado web app) + location ~* \.do$ { + + # enable the apikey access filter + apikey_access_filter on; + + # set the connection string for the client_id / client_secret provider + apikey_access_filter_dburl "mysql://apikeyadmin:apikeyadmin@127.0.0.1:3306/APIKEYS"; + + # common reverse proxy config (i.e. for tornado) + proxy_pass_header Server; + proxy_set_header Host $http_host; + proxy_redirect off; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Scheme $scheme; + proxy_pass http://backends; + } + + ... + }