Skip to content

Commit bacb056

Browse files
Make it easier to read
1 parent 3e61f90 commit bacb056

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

crowdsec-docs/unversioned/bouncers/nginx.mdx

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,16 +308,26 @@ resolver 8.8.8.8 ipv6=off;
308308
lua_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
309309
```
310310
And restart Nginx.
311+
Absolutely! Here's a cleaned-up and more polished version for public-facing documentation:
312+
311313
312314
### Ubuntu 22.xx getting lua error
313315
314-
Nginx package for Ubuntu 22.xx did not include `lua` module for some issues with other modules.
315-
It's fixed and the module is back in the following version of Ubuntu.
316-
What to do to resolve the issue?
317-
* If you can, upgrade to Ubuntu >=24.04
318-
* You could also use OpenResty instead of NGINX, it includes lua module and is compatible with the component
319-
* It changes some paths as the service is different, but the configuration is the same as NGINX as it's a "fork" of it.
320-
* You could also compile the lua module yourself but it involves more manual work
316+
On Ubuntu 22.xx, the default NGINX package does not include the `lua` module due to compatibility issues with other modules. This has been resolved in later versions of Ubuntu.
317+
318+
#### How to fix it
319+
320+
You have a few options to resolve this issue:
321+
322+
- **Upgrade to Ubuntu 24.04 or later**
323+
The `lua` module is included again in newer Ubuntu releases.
324+
325+
- **Use OpenResty instead of NGINX**
326+
OpenResty is a drop-in replacement for NGINX that includes the `lua` module by default.
327+
> Note: OpenResty uses slightly different service names and paths, but configuration remains compatible with standard NGINX.
328+
329+
- **Manually compile the lua module**
330+
This is a more advanced approach and requires manual steps to build and install the module yourself.
321331
322332
## Configuration Reference
323333

0 commit comments

Comments
 (0)