-
```
function M.connect_to_redis ()
local redis = require "resty.redis"
local red = redis:new()
red:set_timeout(10000)
local vcap_services = cjson.decode(os.getenv("ENV"))
local redis_service…
-
-
test message:
"MOVED 12182 127.0.0.1:6979"
-
For background, API Umbrella's architecture can be separated into 3 main components:
- gatekeeper: Custom proxy and routing. The main API gateway portion of the code. Written in Lua inside nginx/Op…
-
### How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
### Which OS are you using?
Windows WSL
### What is the issue affecting?
Diagnostics/Syntax Checking
###…
-
1. Create a single pool for php
2. Reserve some % of that pool for admin requests
3. Reserve an extra 1-2 processes for php-fpm ping
4. Use https://github.com/openresty/lua-resty-limit-traffic for lim…
-
Hello,
I get a strange error from time to time:
```
lua entry thread aborted: runtime error: /resty/mysql.lua:63: attempt to call local 'new_tab' (a table value)
stack traceback:
coroutine 0:
…
-
We sometimes get an unhandled exception thrown to our nginx/error.log when we try to read `ngx.var.request_uri` and manipulate it, for example:
```
2020/02/13 13:06:48 [error] 11893#0: *195814 [lu…
-
Hi:
when using openresty, i need to do some crontab job, such as sync config, at first, I use ngx.timer.at() to do such job, but ngx.timer.at may cause some slow request
then I tried to use init_work…
-
There's already an option to validate server TLS certificate using `lua_ssl_trusted_certificate`.
It would be nice if we could provide client TLS certificate, in the same way as `ngx_http_proxy` mod…
smira updated
2 years ago