Read first: Lua Nginx|Openresty: use session with redis cluster Lua / Openresty: work with redis master-slave replication and redis sentinel Edit file /usr/local/share/lua/5.1/resty/session/storage/redis.lua Note: new…
We use lua-resty-redis-connector Install lua-resty-redis-connector luarocks install lua-resty-redis-connector Example of usage: Online demo: http://5.161.72.222/test/sentinel
Example we have 3 server with IP: 5.161.72.222 5.161.61.47 5.161.97.150 With each server: Step 1*: install redis-server apt install redis-server -y Step 2*:edit file /etc/redis/redis.conf…
Example error: We see the main reason is trying to overwrite '/usr/bin/bsondump', which is also in package mongo-tools 3.6.3-0ubuntu1 Caused package: mongo-tools Solution: Step 1:…
Example code: And we see error: How to fix this error: Solution 1: use directive resolver example: resolver 8.8.8.8; in block location Solution 2: You…
Supports CloudFlare, Incapsula, Sucuri, Any Proxy … Note: if you use reverse proxy, you should use: Test: Online demo: http://5.161.72.222/test/ip Recent search terms:LUA scrept chect…