lua-counter example

Artifact [5f43526cce]
anonymous

Artifact [5f43526cce]

Artifact 5f43526ccee57c433a11a125f34b67592020eb80704080ae53a79eac8c69047b:


location = /postgres {
	internal;
	postgres_query $echo_request_body;
	postgres_pass counter;
}

location = /counter {
	default_type application/json;
	userid on;
	userid_name uid;
	userid_expires 365d;
	userid_p3p 'policyref="/w3c/p3p.xml", CP="NOI CUR ADM PSA OUR STP STA"';

	content_by_lua_file '/home/arcade/work/admin/nginx/counter.content.lua';
	#log_by_lua_file '/home/arcade/work/admin/nginx/counter.log.lua';
	expires epoch;
}