Skip to main content
Premium Repository

NGINX Modules APT Repository for Ubuntu and Debian

100+ pre-built NGINX dynamic modules for Debian and Ubuntu, both amd64 and arm64. Set up the repo in seconds; apt install works instantly — every server starts a free 30-day trial.

Set up the repo Browse modules
100+
Modules
6
Distro Codenames
2
Architectures
1
Sub covers RPM + DEB

10+ Exclusive Pro Modules. Only here.

In-house modules you will not find in Sury, Ondrej, or any other APT repo: ipset-access, nftset-access (honeypot + auto-ban), cache-purge, device-type (AI bot detection), immerse (auto WebP/AVIF), tuning, cookie-flag, spnego, and more.

View Pro Modules

Why a third-party APT repository?

The stock nginx package on Debian and Ubuntu ships a minimal module set. Dynamic modules that aren't in the base distro repos — ModSecurity v3, brotli, GeoIP2, JWT, TOTP, NJS extras, naxsi — typically force you to either build NGINX from source on every release, or pin a fork like OpenResty and accept its ecosystem boundaries.

A maintained third-party APT repository solves that. You run our nginx package (stable or mainline), apt install nginx-module-* for what you need, and let apt upgrade move NGINX and its modules together as new NGINX point releases land. No rebuild step, no compiler on the box, no drift between fleet members.

That's the gap the GetPageSpeed NGINX modules APT repository fills, for 100+ modules across every category a production NGINX deployment needs.

Quick install example

# Bootstrap the repo (one-time, public, no sub needed):
curl -fsSLO https://extras.getpagespeed.com/release-latest.deb
sudo apt install ./release-latest.deb
sudo apt update

# Install instantly — starts the free 30-day trial:
sudo apt install nginx-module-modsecurity

# Module auto-symlinks into /etc/nginx/modules-enabled.
sudo systemctl reload nginx

No compilation | Plus / Pro / Ultra / Fleet | amd64 + arm64

Featured NGINX Modules

Popular modules from the repo, each one a single apt install away

And dozens more

A representative slice across auth, security, observability, streaming, and rate limiting

nginx-module-auth-totp

Time-based one-time password (TOTP) authentication at the NGINX edge

nginx-module-auth-ldap

LDAP authentication for NGINX with caching and TLS

nginx-module-zstd

Zstandard compression filter, faster decompression than Brotli

nginx-module-security-headers

Automatic security headers (HSTS, CSP, X-Frame-Options) with sane defaults

nginx-module-length-hiding

Randomize response size to defeat TLS metadata analysis

nginx-module-html-sanitize

On-the-fly HTML output sanitization with allowlist tag rules

nginx-module-cache-purge

Purge cached content selectively from NGINX proxy cache

nginx-module-dynamic-etag

Conditional GET for dynamic pages with computed ETag headers

nginx-module-immutable

Far-future Cache-Control: immutable for static assets

nginx-module-njs

Official NGINX JavaScript (njs) scripting language

nginx-module-naxsi

High-performance WAF with learning mode

nginx-module-rtmp

Turn NGINX into an RTMP / HLS / DASH streaming server

nginx-module-spnego-http-auth

Kerberos / SPNEGO authentication for intranet NGINX

nginx-module-push-stream

HTTP long-polling and SSE pub/sub messaging

nginx-module-graphite

Push NGINX metrics to a Graphite carbon receiver

Browse the full pool index   View documentation

How this APT repository compares

vs the Debian / Ubuntu options for getting NGINX dynamic modules onto your servers

Approach Module count arm64 support Cost
GetPageSpeed Extras (this repo) 100+ modules Yes, every codename Subscription
Stock distro nginx modules ~10 modules Yes Free
Sury successors / single-maintainer APT repos ~10 modules Varies Free
Build NGINX from source per host Any module you compile Yes Engineering time
OpenResty bundle OpenResty ecosystem only Yes Free

Need the same modules on RHEL, Amazon Linux, or Fedora? The RPM tier ships the same catalog with the same names and versions.

Get started in 2 steps

Set up the repo in under a minute; install instantly on a free 30-day trial.

1

Bootstrap the repo (public, no sub needed)

One .deb drops the GPG key, sources list, and the apt pre-flight hook in one shot:

curl -fsSLO https://extras.getpagespeed.com/release-latest.deb
sudo apt install ./release-latest.deb
sudo apt update
2

Install modules — trial starts automatically

Pick what you need from the 100+ module catalog; the first install starts this server's free 30-day trial. Modules are ABI-matched to the GetPageSpeed nginx package, which apt installs alongside them. Subscribe to keep servers licensed past the trial.

sudo apt install \
  nginx-module-modsecurity \
  nginx-module-brotli \
  nginx-module-geoip2

# Modules self-register via
# /etc/nginx/modules-enabled.
sudo systemctl reload nginx
Subscribe Open the setup generator

One subscription covers both the RPM and DEB repos. Repo setup and the 30-day trial need no account at all.

Supported Distributions

Every supported codename has its own pool, with stable and (where available) mainline NGINX tracks

Ubuntu 26.04 LTS (resolute), 24.04 LTS (noble), 22.04 LTS (jammy), 20.04 LTS (focal)
Debian 13 (trixie), 12 (bookworm)

All packages built for amd64 and arm64. Mainline NGINX variants ship for Focal, Jammy, Noble, Resolute, Bookworm, and Trixie.

Frequently Asked Questions

Everything you need to know about the APT NGINX modules repository

Repo setup, apt update, and installing standard modules need nothing up front: every install starts a free 30-day trial on this server, automatically. After the trial, NGINX appends a small notice to HTML pages for 30 days; after that, the server answers with a license page until an active GetPageSpeed subscription covers this server's IP. One subscription covers both RPM and DEB.

Pro modules and the NGINX-MOD build require the Pro plan or higher from the start.

With GetPageSpeed's own nginx package, which the repository installs in place of the distro build. Each module depends on the exact ABI of that build, so modules and NGINX always upgrade together and never need recompiling. For NGINX mainline, use the -mainline pool variant (Focal, Jammy, Noble, Resolute, Bookworm, Trixie).

The release package pins our nginx packages at priority 1001 so another nginx source cannot displace them; what the pin does and does not override.

Ubuntu 20.04 LTS (focal), 22.04 LTS (jammy), 24.04 LTS (noble), and 26.04 LTS (resolute). Debian 12 (bookworm) and 13 (trixie). Both amd64 and arm64 for every codename. Mainline NGINX support is shipped as a separate -mainline pool. Individual module availability can vary by codename; each module's documentation lists where it ships.

Yes. The RPM tier ships the same nginx-module-* catalog on Red Hat-family distros with the same names and versions. If your fleet mixes Debian-family and Red Hat-family hosts, you get one mental model, one set of upstream module versions, and one place to file bugs.

Every module rebuilds on each upstream tag and on each nginx point-release ABI bump. Builds run through a CI matrix across all six supported codenames on both amd64 and arm64, so an arm64 host gets the same module versions as an amd64 host on the same day, on every codename. The one exception is PageSpeed, which does not build on arm64.

Security fixes from upstream module repositories flow through within the same release cadence, and you can pin versions in /etc/apt/preferences.d/ if you need to.

NGINX-MOD is the GetPageSpeed-built NGINX with the most useful modules statically compiled in (active health checks, dynamic upstream API), plus performance patches and faster TLS. Drop-in replacement for the stock nginx package, same configuration format.

Now available as a DEB for Ubuntu 22.04 (jammy), Ubuntu 24.04 (noble), Ubuntu 26.04 (resolute), and Debian 12 (bookworm): apt-get install nginx-mod from the ${codename}-nginx-mod APT suite. It also brings the extended limit_req_rate units (r/h, r/d, r/w, r/M, r/Y) that stock NGINX does not support.

Open a ticket with the upstream repository URL and a one-line description. Most module requests land within a release cycle.

What the release package changes, and how to check it

The release package is small and readable. Here is what it puts on your system, how its packages rank against your distribution's, and how to inspect it before you install it.

APT: files, priority and the nginx pin

On Debian and Ubuntu the release package installs:

  • /etc/apt/sources.list.d/getpagespeed-extras.sources, with Signed-By: /etc/apt/keyrings/deb-archive-keyring.gpg, so our key is trusted for this repository only, never system-wide.
  • /etc/apt/preferences.d/getpagespeed-nginx.pref, the nginx pin shown below.
  • /etc/apt/apt.conf.d/99-getpagespeed-extras.conf, an install hook that runs before any download. When a transaction includes packages from our repository, it sends their names to www.getpagespeed.com and stops with a subscribe link if this server is not covered. Nothing else is sent.
  • Two helpers: getpagespeed-extras-channel (switch between stable, mainline and NGINX-MOD) and extras (subscription status for this server).

The pin, verbatim:

Package: nginx nginx-mod nginx-common nginx-core nginx-full nginx-extras nginx-light nginx-module-* libnginx-mod-*
Pin: origin extras.getpagespeed.com
Pin-Priority: 1001

The priority math. APT gives every repository priority 500 by default, and between equal priorities the higher version wins. The pin raises only our nginx packages to 1001. Above 1000, APT installs our version even when another source, such as nginx.org or a PPA, offers a newer one, and even if that means a downgrade. That is deliberate: our modules are built against our nginx and depend on its exact ABI package (nginx-r<version>), so a foreign nginx would leave them uninstallable.

What it does not override. Every other package from our repository stays at the default 500 and competes with your distribution by version number, like any third-party repository. A package you hold with apt-mark hold stays held: no pin changes it.

See the effect with apt-cache policy nginx: our version is listed with priority 1001. To opt out, delete the pin file. Package upgrades do not recreate it; running getpagespeed-extras-channel does.

Inspect the release package before you trust it

Download it and read every file and maintainer script it ships before installing anything.

curl -fsSLO https://extras.getpagespeed.com/release-latest.deb
dpkg-deb --info release-latest.deb       # metadata and dependencies
dpkg-deb --contents release-latest.deb   # every file it installs
dpkg-deb --control release-latest.deb ctl
cat ctl/postinst ctl/postrm              # maintainer scripts

Compare every key against the full fingerprints on our signing keys page.

Ready to skip the source-build cycle?

Set up the APT repo in under a minute and install instantly on a free 30-day trial. 100+ modules, one sub covers RPM and DEB.

Subscribe Open the setup generator