Getting CSV file values as nginx variable

Roman Vasilyev roman.vasilyev at yousendit.com
Fri Jun 3 01:29:08 MSD 2011


Hi,

I need to get values of CSV files in my project:
John Malkovich,Person,123 Mulholland Drive,.......
to have in config something like:
csv_path /path/to/csv/dir;
csv_key $arg_id;

uwsgi_param USER_NAME $csv_1;

what's the best way for it?

I've checked Array Var module by agentzh
( https://github.com/agentzh/array-var-nginx-module )
looks like it realizes similar task.
May be I'm looking in wrong direction and answer closer?



More information about the nginx mailing list