I am trying to use nginx for serving static contents(images/css etc.) I need to span up multiple instances of nginx to support as per the incoming load. So i am looking for Mongo+gridfs solution to store the static files- since it provides replication and sharding. I see i can serve contents from gridfs using either of these these modules. Direct nginx module - https://github.com/mdirolf/nginx-gridfs
Using Lua scripting language https://github.com/bigplum/lua-resty-mongol
Question is - can i create UploadImage api in nginx itself to store files in gridfs when user calls a POST method passing the file.
It looks to me that it is possible using lua resty module but not sure. Any idea?