Trying to figure this out myself. So far I've run across this which is the best I've found so far:
http://www.nginx-discovery.com/2011/03/day-39-get-parameters-from-your-module.html
http://www.nginx-discovery.com/2011/03/day-39-get-parameters-from-your-module.html