Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aborting Nginx reload on condition #2308

Closed
Rockybilly opened this issue Apr 26, 2024 · 1 comment
Closed

Aborting Nginx reload on condition #2308

Rockybilly opened this issue Apr 26, 2024 · 1 comment

Comments

@Rockybilly
Copy link

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_lua_block 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.

@Rockybilly
Copy link
Author

See: #2311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant