Sha256: 391a92b2841a85d3bd18d169b8e0230ef478dfb08eb71c1bc7043f718c3493e1

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

worker_processes  1;
error_log logs/error.log debug;
events {
	worker_connections 1024;
}
http {
	server {
		listen 8080;

		location = /test {

			access_by_lua "
			  ngx.log(ngx.DEBUG, 'ACCESS PHASE')
			  require('accelerator').access({ host='127.0.0.1', port=11211 })
			";

			proxy_pass http://127.0.0.1:8081/;
		}
	}

	server {
		listen 8081;

		location = / {

			more_set_headers "Cache-Control: max-age=1";

			content_by_lua "
			  ngx.log(ngx.DEBUG, 'CONTENT PHASE')
			  ngx.say(os.time())
			";
		}
	}
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
accelerator-0.1.1 nginx/nginx.conf
accelerator-0.1.0 nginx/nginx.conf