Skip to content

Instantly share code, notes, and snippets.

View andor-pierdelacabeza's full-sized avatar
💭
😪 Tired

Alvaro [Andor] andor-pierdelacabeza

💭
😪 Tired
View GitHub Profile
@andor-pierdelacabeza
andor-pierdelacabeza / 100_base.conf
Created October 24, 2017 10:10 — forked from danackerson/100_base.conf
using nginx + lua + redis for redirects and rewrites
# using such a setup requires `apt-get install lua-nginx-redis` under Ubuntu Trusty
# more info @ http://wiki.nginx.org/HttpLuaModule#access_by_lua
http {
lua_package_path "/etc/nginx/include.d/?.lua;;";
lua_socket_pool_size 100;
lua_socket_connect_timeout 10ms;
lua_socket_read_timeout 10ms;
server {