lua-nginx-module
lua-nginx-module copied to clipboard
*_by_lua_block directives break Letsencrypt's certbot
This is more of an issue for certbot than for this project but maybe there are some mitigating actions that you could do.
Any directive which includes a lua block like this one breaks certbot's parser and makes the automatic certificate renewal process fail.
location = /ip-address {
default_type text/plain;
content_by_lua_block {
ngx.say(ngx.var.remote_addr)
}
}
There are at least a couple of issues for that on certbot's tracker with he details of what's going on
- https://github.com/certbot/certbot/issues/5194
- https://github.com/certbot/certbot/issues/9066
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
$ dpkg -l "*nginx*"
ii nginx-common 1.14.0-0ubuntu1.9 all small, powerful, scalable web/proxy server - common files
ii nginx-extras 1.14.0-0ubuntu1.9 amd64 nginx web/proxy server (extended version)
ii libnginx-mod-http-lua 1.14.0-0ubuntu1.9 amd64 Lua module for Nginx
...
For now, you can change from *_by_lua_block to _by_lua_file or *_by_lua.