Centmin Mod Nginx RPM Repository

High-performance Nginx packages for AlmaLinux & Rocky Linux

Getting Started

Set up the repository on your server and install Nginx:

# Step 1 — Add the repository
cat > /etc/yum.repos.d/centminmod-nginx.repo << 'EOF'
[centminmod-nginx]
name=Centmin Mod Nginx
baseurl=https://rpm-nginx.centminmod.com/stable/el/$releasever/$basearch/
enabled=1
gpgcheck=0
EOF

# EL8 only: disable nginx module stream to avoid conflicts
dnf module disable -y nginx  # skip on EL9/EL10

# Step 2 — Install Nginx (+ all modules, optional)
dnf install -y centminmod-nginx nginx-module-*

Start and enable Nginx:

systemctl start nginx
systemctl enable nginx

What You Get

Adding Modules

Install only the modules you need:

# Example: add Brotli compression and Lua scripting
dnf install nginx-module-brotli nginx-module-lua

# See everything available
dnf list available nginx-module-*

Prerequisites

Most dependencies are resolved automatically by dnf. Some modules require system libraries that dnf will pull in when you install them:

System PackageRequired ByNotes
procps-ngcentminmod-nginx (base)Explicit RPM dependency
brotlinginx-module-brotliAuto-resolved by dnf
libmaxminddbnginx-module-geoip2Auto-resolved by dnf
gdnginx-module-image-filterAuto-resolved by dnf
libxsltnginx-module-xslt, nginx-module-dav-extAuto-resolved by dnf
libxml2nginx-module-xslt, nginx-module-dav-extAuto-resolved by dnf
libzstdnginx-module-zstdAuto-resolved by dnf

On minimal installs, you can pre-install all prerequisites at once:

dnf install -y procps-ng brotli libmaxminddb gd libxslt libxml2 libzstd

EL8 only: Run dnf module disable -y nginx before installing to avoid modular filtering conflicts.

Module dependencies: nginx-module-lua, nginx-module-set-misc, and nginx-module-encrypted-session require nginx-module-ndk — resolved automatically by dnf.

Available Modules

Install any module with dnf install nginx-module-<name>. Each module auto-configures itself via drop-in config.

nginx-module-accesskeyAccess key-based authorization
nginx-module-brotliBrotli compression (static + dynamic)
nginx-module-cache-purgePurge cached content by URL
nginx-module-dav-extWebDAV extended methods (PROPFIND, OPTIONS, etc.)
nginx-module-echoShell-style output and testing utilities
nginx-module-encrypted-sessionEncrypt/decrypt session variables
nginx-module-fancyindexThemed directory listings
nginx-module-geoip2MaxMind GeoIP2 database lookups
nginx-module-headers-moreAdd, set, or clear HTTP headers
nginx-module-http-concatConcatenate files in a single response
nginx-module-http-rdnsReverse DNS lookups for client IPs
nginx-module-http-redisRedis caching for HTTP responses
nginx-module-image-filterOn-the-fly image resizing and transforms
nginx-module-length-hidingPad response length to prevent side-channel leaks
nginx-module-luaLua scripting (OpenResty lua-nginx-module)
nginx-module-memcExtended memcached interface
nginx-module-ndkNginx Development Kit (dependency for lua, set-misc)
nginx-module-njsNGINX JavaScript — scripting with njs
nginx-module-redis2Redis 2.0 protocol support
nginx-module-set-miscExtended variable manipulation (base64, hashes, etc.)
nginx-module-srcacheSubrequest-based caching (memcached/redis backends)
nginx-module-subs-filterRegex-based response body substitution
nginx-module-testcookieBot detection via cookie challenge
nginx-module-vtsVirtual host traffic status & monitoring
nginx-module-xsltXML/XSLT response transformation
nginx-module-zstdZstandard compression (static + dynamic)

Build Variants

Different builds are available. Most users should use stable (the default above).

VariantBest For
stableMost users — uses your system’s OpenSSL
awslcAWS-LC crypto library (FIPS-capable)
opensslCustom OpenSSL built from source
optimizedLTO + x86-64-v3 + mold linker (Haswell 2013+)
optimized-v4LTO + x86-64-v4 + mold linker (Skylake-X / Zen 4+, AVX-512)
awslc-optimizedAWS-LC + LTO + x86-64-v3 + mold (Haswell 2013+)
awslc-optimized-v4AWS-LC + LTO + x86-64-v4 + mold (Skylake-X / Zen 4+, AVX-512)

To switch variants, replace stable with the variant name in the baseurl.

Supported Systems

centminmod.com · GitHub · Updated April 01, 2026