Welcome! Log In Create A New Profile

Advanced

Re: Getting CSV file values as nginx variable

agentzh
June 04, 2011 11:26AM
On Fri, Jun 3, 2011 at 5:29 AM, Roman Vasilyev
<roman.vasilyev@yousendit.com> wrote:
> 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?
>

Code up some Lua in the rewrite_by_lua directive provided by ngx_lua?

> 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?
>

No, you're looking in a wrong direction, unfortunately :)

Regards,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Getting CSV file values as nginx variable

Roman Vasilyev June 02, 2011 05:32PM

Re: Getting CSV file values as nginx variable

agentzh June 04, 2011 11:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready