Hello, is there a way with lua that, upon checking a condition, abort an nginx reload with error, so the old conf keeps running.
I have this in my _xxx_by_luablock codes in the conf:
local m = require(module)
if this fails, all the requests in the server becomes HTTP 500. This fails obviously because of an error in the lua code, however to be extra careful I want to prevent reload if an error can be found before the worker starts running.
Hello, is there a way with lua that, upon checking a condition, abort an nginx reload with error, so the old conf keeps running.
I have this in my _xxx_by_luablock codes in the conf:
local m = require(module)
if this fails, all the requests in the server becomes HTTP 500. This fails obviously because of an error in the lua code, however to be extra careful I want to prevent reload if an error can be found before the worker starts running.