Adding SSL support with @aviramc's patch for ngx_lua