Welcome! Log In Create A New Profile

Advanced

NGINX lifecycle

Joel Parker
November 09, 2017 04:18PM
I want to load a table of key/value pairs from the file system when nginx
starts and not every time a request comes in. I am going to use the
key/value pairs to compare against incoming post args in my location block.

My question is how many times is init_by_lua_block called ? or is there
somewhere else I should be loading the file ?

server {
init_by_lua_block {
some_global_var = stuff from file io read;
}

location \ {
...
}
}
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX lifecycle

Joel Parker November 09, 2017 04:18PM

Re: NGINX lifecycle

Maxim Dounin November 10, 2017 06:42AM

RE: NGINX lifecycle

Nelson, Erik - 2 via nginx November 10, 2017 09:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 221
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