Repository navigation
Howto Install a released module
Goal: load the prebuilt, signed module into an nginx you already run, without a Rust toolchain.
A dynamic module loads only into the exact nginx version it was built for, with the same libc and CPU architecture.
nginx -v # e.g. nginx/1.31.10 → the nginx version
uname -m # x86_64 → amd64, aarch64 → arm64
ldd --version 2>&1 | head -1 # mentions "musl" on Alpine, otherwise glibcReleases cover the current nginx mainline and stable versions. If your nginx is older, either upgrade nginx or take the older release that was built for it — or build from source.
File names carry all three facts:
ngx_http_pow_gate_module-<module-version>-nginx<nginx-version>-<libc>-<arch>.so
From the release page download that .so, its .sig and .pem,
and SHA256SUMS. With the GitHub CLI:
module=ngx_http_pow_gate_module-<module-version>-nginx<nginx-version>-glibc-amd64.so
gh release download v<module-version> --repo teian/ngx_http_pow_gate \
--pattern "$module*" --pattern SHA256SUMSsha256sum -c --ignore-missing SHA256SUMS
gh attestation verify "$module" --repo teian/ngx_http_pow_gateThe first command checks integrity, the second that the file was built by this repository's release workflow. The cosign command for the keyless signature is in each release's notes.
sudo cp "$module" /etc/nginx/modules/ngx_http_pow_gate_module.soAt the very top of nginx.conf, before http {:
load_module modules/ngx_http_pow_gate_module.so;sudo nginx -tnginx -t passing means the module loaded. The gate is still off everywhere —
continue with Set up your first gate.
| Message | Cause |
|---|---|
module ... is not binary compatible |
nginx version or build options differ from the module's. Re-check nginx -v and pick the exact match. |
cannot open shared object file |
Wrong path in load_module, or wrong libc (a glibc module on Alpine, or the reverse). |
wrong ELF class / Exec format error
|
Wrong architecture. |
More in build.md › Troubleshooting.
Getting started
Policy
- Let verified search engines through
- Block or slow down crawlers
- Tune difficulty and clearance lifetime
- Exclude paths and APIs
- Use the bundled rules
- Keep link previews working
Deployment
Operations