<!-- review: finished -->
<!-- Legacy links -->

<a id="install-thirdpartymodules"></a>

# 第三方模块

除了我们自己为 [Angie](https://cn.angie.software//angie/docs/installation/oss_packages.md#install-dynamicmodules-oss) 和 [Angie PRO](https://cn.angie.software//angie/docs/installation/pro_packages.md#install-dynamicmodules-pro) 开发的动态模块外，
我们还在仓库中收集并发布了一些流行的 nginx 兼容第三方模块的软件包，
这些模块由我们公司之外的开发者开发。

<a id="installation-and-configuration-1"></a>

## 安装和配置

第三方模块软件包的安装方式与我们自己的软件包相同，都是从我们的仓库安装：

- [Angie](https://cn.angie.software//angie/docs/installation/oss_packages.md#oss-packages)
- [Angie PRO](https://cn.angie.software//angie/docs/installation/pro_packages.md#pro-packages)

要在 [配置](https://cn.angie.software//angie/docs/configuration/configfile.md#configfile) 中使用已安装的模块，
请在 `main` 上下文中使用 [load_module](https://cn.angie.software//angie/docs/configuration/modules/core.md#load-module) 指令加载它：

```nginx
load_module modules/<module_name>.so;
```

#### NOTE
我们不审查这些模块的源代码，
也不对安装它们的后果负责；
这些软件包的编译完全基于大量用户请求，
 *仅仅* 为了用户的便利。

<a id="list-of-modules"></a>

## 模块列表

| 模块                                                                                                                                                                                                                                                                                                                 | 版本                       | 软件包                                                                      | 描述                                                                                                                                      |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------|--------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
| [Auth JWT](https://cn.angie.software//angie/docs/installation/external-modules/auth-jwt.md#external-auth-jwt)                                                                                                                                                                                                      | 0.9.0                    | `angie-module-auth-jwt`  `angie-pro-module-auth-jwt`                     | 为客户端添加 JWT 身份验证。                                                                                                                        |
| [Auth LDAP](https://cn.angie.software//angie/docs/installation/external-modules/auth-ldap.md#external-ldap)                                                                                                                                                                                                        | 241200e                  | `angie-module-auth-ldap`  `angie-pro-module-auth-ldap`                   | 添加对多服务器 LDAP 身份验证的支持。                                                                                                                   |
| [Auth PAM](https://cn.angie.software//angie/docs/installation/external-modules/auth-pam.md#external-auth-pam)                                                                                                                                                                                                      | v1.5.5                   | `angie-module-auth-pam`  `angie-pro-module-auth-pam`                     | 添加对 PAM 身份验证的支持。                                                                                                                        |
| [Auth SPNEGO](https://cn.angie.software//angie/docs/installation/external-modules/auth-spnego.md#external-auth-spnego)                                                                                                                                                                                             | v1.1.3                   | `angie-module-auth-spnego`  `angie-pro-module-auth-spnego`               | 添加对 SPNEGO 和 GSSAPI 的支持。                                                                                                                |
| [Auth TOTP](https://cn.angie.software//angie/docs/installation/external-modules/auth-totp.md#external-auth-totp)                                                                                                                                                                                                   | 1.1.0                    | `angie-module-auth-totp`  `angie-pro-module-auth-totp`                   | 添加基于 TOTP 的一次性密码身份验证。                                                                                                                   |
| [Brotli](https://cn.angie.software//angie/docs/installation/external-modules/brotli.md#external-brotli)                                                                                                                                                                                                            | v1.0.0rc                 | `angie-module-brotli`  `angie-pro-module-brotli`                         | 为响应添加静态和动态 Brotli 压缩。                                                                                                                   |
| [Cache Purge](https://cn.angie.software//angie/docs/installation/external-modules/cache-purge.md#external-cache-purge)                                                                                                                                                                                             | 2.5.3                    | `angie-module-cache-purge`  `angie-pro-module-cache-purge`               | 允许从 FastCGI、proxy、SCGI 和 uWSGI 缓存中清除内容。                                                                                                 |
| [CGI](https://cn.angie.software//angie/docs/installation/external-modules/cgi.md#external-cgi)                                                                                                                                                                                                                     | v0.13                    | `angie-module-cgi`  `angie-pro-module-cgi`                               | 添加对 CGI 的支持。                                                                                                                            |
| [Combined Upstreams](https://cn.angie.software//angie/docs/installation/external-modules/combined-upstreams.md#external-combined-upstreams)                                                                                                                                                                        | 2.3.1                    | `angie-module-combined-upstreams`  `angie-pro-module-combined-upstreams` | 允许将多个服务器组合并为一个。                                                                                                                         |
| [DAV Ext](https://cn.angie.software//angie/docs/installation/external-modules/dav-ext.md#external-dav-ext)                                                                                                                                                                                                         | v3.0.0                   | `angie-module-dav-ext`  `angie-pro-module-dav-ext`                       | 通过 PROPFIND 和 OPTIONS 方法扩展 WebDAV 支持。                                                                                                   |
| [Dynamic Limit Req](https://cn.angie.software//angie/docs/installation/external-modules/dynamic-limit-req.md#external-dynamic-limit-req)                                                                                                                                                                           | 1.9.3                    | `angie-module-dynamic-limit-req`  `angie-pro-module-dynamic-limit-req`   | 用于动态阻止 IP 地址并定期解除阻止。                                                                                                                    |
| [Echo](https://cn.angie.software//angie/docs/installation/external-modules/echo.md#external-echo)                                                                                                                                                                                                                  | v0.63                    | `angie-module-echo`  `angie-pro-module-echo`                             | 允许在配置文件中调用 `echo`、`sleep`、`time`、`exec`<br/>和其他 shell 命令。                                                                               |
| [Enhanced Memcached](https://cn.angie.software//angie/docs/installation/external-modules/enhanced-memcached.md#external-enhanced-memcached)                                                                                                                                                                        | v0.3                     | `angie-module-enhanced-memcached`  `angie-pro-module-enhanced-memcached` | 扩展内置 [Memcached](https://cn.angie.software//angie/docs/configuration/modules/http/http_memcached.md#http-memcached) 模块的功能。              |
| [Eval](https://cn.angie.software//angie/docs/installation/external-modules/eval.md#external-eval)                                                                                                                                                                                                                  | 2016.06.10               | `angie-module-eval`  `angie-pro-module-eval`                             | 允许将子请求的响应体保存到变量中。                                                                                                                       |
| [GeoIP2](https://cn.angie.software//angie/docs/installation/external-modules/geoip2.md#external-geoip2)                                                                                                                                                                                                            | 3.4                      | `angie-module-geoip2`  `angie-pro-module-geoip2`                         | 在 MaxMind GeoIP2 数据库中添加地理位置搜索。                                                                                                          |
| [Headers More](https://cn.angie.software//angie/docs/installation/external-modules/headers-more.md#external-headers-more)                                                                                                                                                                                          | v0.39                    | `angie-module-headers-more`  `angie-pro-module-headers-more`             | 允许设置和清除请求和响应头。                                                                                                                          |
| [HTTP Auth Radius](https://cn.angie.software//angie/docs/installation/external-modules/http-auth-radius.md#external-http-auth-radius)                                                                                                                                                                              | 458af16                  | `angie-module-http-auth-radius`  `angie-pro-module-http-auth-radius`     | 添加对 Radius 的支持。                                                                                                                         |
| [JWT](https://cn.angie.software//angie/docs/installation/external-modules/jwt.md#external-jwt)                                                                                                                                                                                                                     | v3.4.3                   | `angie-module-jwt`  `angie-pro-module-jwt`                               | [Auth JWT](https://cn.angie.software//angie/docs/installation/external-modules/auth-jwt.md#external-auth-jwt) 的轻量级替代方案。                 |
| [Keyval](https://cn.angie.software//angie/docs/installation/external-modules/keyval.md#external-keyval)                                                                                                                                                                                                            | 0.3.0                    | `angie-module-keyval`  `angie-pro-module-keyval`                         | 允许使用来自键值对的值的变量。                                                                                                                         |
| [Lua](https://cn.angie.software//angie/docs/installation/external-modules/lua.md#external-lua)：<br/>[http_lua_module](https://github.com/openresty/lua-nginx-module)、<br/>[stream_lua_module](https://github.com/openresty/stream-lua-nginx-module)                                                                | 0.10.28 / v0.0.16        | `angie-module-lua`  `angie-pro-module-lua`                               | 分别允许在 Angie 配置的 `http` 和 `stream` 上下文中<br/>使用 Lua 语言。                                                                                   |
| [ModSecurity](https://cn.angie.software//angie/docs/installation/external-modules/modsecurity.md#external-modsec)                                                                                                                                                                                                  | v1.0.4                   | `angie-module-modsecurity`  `angie-pro-module-modsecurity`               | 添加用于使用 ModSecurity 规则的连接器。                                                                                                              |
| [NJS](https://cn.angie.software//angie/docs/installation/external-modules/njs.md#external-njs)：<br/>[http_js](https://cn.angie.software//angie/docs/installation/external-modules/http_js.md#http-js)、<br/>[stream_js](https://cn.angie.software//angie/docs/installation/external-modules/stream_js.md#stream-js) | 0.9.1                    | `angie-module-njs`  `angie-pro-module-njs`                               | 分别允许在 Angie 配置的 `http` 和 `stream` 上下文中<br/>使用 njs（JavaScript 语言的子集）。<br/><br/>还提供名为 `...-njs-light` 的轻量级版本软件包；<br/>但是，它与常规版本不兼容，不能同时使用。 |
| [NDK](https://cn.angie.software//angie/docs/installation/external-modules/ndk.md#external-ndk)                                                                                                                                                                                                                     | v0.3.4                   | `angie-module-ndk`  `angie-pro-module-ndk`                               | 添加 Nginx 开发工具包（NDK）用于开发新模块。                                                                                                             |
| [OpenTracing](https://cn.angie.software//angie/docs/installation/external-modules/opentracing.md#external-opentracing)                                                                                                                                                                                             | v0.41.0                  | `angie-module-opentracing`  `angie-pro-module-opentracing`               | 在 Angie 中添加分布式 OpenTracing 请求跟踪；<br/>包含用于将数据导出到 Zipkin 和 DataDog 的插件。                                                                   |
| [OpenTelemetry](https://cn.angie.software//angie/docs/installation/external-modules/otel.md#external-otel)                                                                                                                                                                                                         | v0.1.2                   | `angie-module-otel`  `angie-pro-module-otel`                             | 允许将遥测数据发送到 OpenTelemetry 收集器。                                                                                                           |
| [PostgreSQL](https://cn.angie.software//angie/docs/installation/external-modules/postgres.md#external-postgres)                                                                                                                                                                                                    | 1.0rc7                   | `angie-module-postgres`  `angie-pro-module-postgres`                     | 包含对 PostgreSQL 数据库的直接支持。                                                                                                                |
| [Redis2](https://cn.angie.software//angie/docs/installation/external-modules/redis2.md#external-redis2)                                                                                                                                                                                                            | v0.15                    | `angie-module-redis2`  `angie-pro-module-redis2`                         | 包含对 HTTP 上游的 Redis 2.0 支持。                                                                                                              |
| [RTMP](https://cn.angie.software//angie/docs/installation/external-modules/rtmp.md#external-rtmp)                                                                                                                                                                                                                  | v1.2.2                   | `angie-module-rtmp`  `angie-pro-module-rtmp`                             | 包含对用于流媒体和点播广播的 RTMP 支持。                                                                                                                 |
| [Set Misc](https://cn.angie.software//angie/docs/installation/external-modules/set-misc.md#external-set-misc)                                                                                                                                                                                                      | v0.33                    | `angie-module-set-misc`  `angie-pro-module-set-misc`                     | 向 [Rewrite](https://cn.angie.software//angie/docs/configuration/modules/http/http_rewrite.md#http-rewrite) 模块添加各种 set_xxx 指令。           |
| [Subs](https://cn.angie.software//angie/docs/installation/external-modules/subs.md#external-subs)                                                                                                                                                                                                                  | e12e965                  | `angie-module-subs`  `angie-pro-module-subs`                             | 允许使用正则表达式替换 HTTP 响应体中的字符串。                                                                                                              |
| [TestCookie](https://cn.angie.software//angie/docs/installation/external-modules/testcookie.md#external-testcookie)                                                                                                                                                                                                | 64137c2                  | `angie-module-testcookie`  `angie-pro-module-testcookie`                 | 使用基于 cookie 的"质询-响应"机制帮助对抗机器人。                                                                                                          |
| [UnBrotli](https://cn.angie.software//angie/docs/installation/external-modules/unbrotli.md#external-unbrotli)                                                                                                                                                                                                      | 60bed63                  | `angie-module-unbrotli`  `angie-pro-module-unbrotli`                     | 为不支持 Brotli 编码的客户端解压 `Content-Encoding: br` 的响应。                                                                                        |
| [Upload](https://cn.angie.software//angie/docs/installation/external-modules/upload.md#external-upload)                                                                                                                                                                                                            | 2.3.0                    | `angie-module-upload`  `angie-pro-module-upload`                         | 为来自客户端的文件上传添加 `multipart/form-data` （RFC 1867）编码，<br/>包括断点续传功能。                                                                         |
| [VOD](https://cn.angie.software//angie/docs/installation/external-modules/vod.md#external-vod)                                                                                                                                                                                                                     | 1.33                     | `angie-module-vod`  `angie-pro-module-vod`                               | 允许重新打包 MP4 文件以通过 HLS、HDS、MSS 和 DASH 进行流式传输。                                                                                             |
| [VTS](https://cn.angie.software//angie/docs/installation/external-modules/vts.md#external-vts)：<br/>[module-vts](https://github.com/vozlt/nginx-module-vts)、<br/>[module-sts](https://github.com/vozlt/nginx-module-sts)、<br/>[module-stream-sts](https://github.com/vozlt/nginx-module-stream-sts)                | v0.2.4 / v0.1.1 / v0.1.1 | `angie-module-vts`  `angie-pro-module-vts`                               | 包含上述三个用于流量监控的模块。                                                                                                                        |
| [ZIP](https://cn.angie.software//angie/docs/installation/external-modules/zip.md#external-zip)                                                                                                                                                                                                                     | 1.3.0                    | `angie-module-zip`  `angie-pro-module-zip`                               | 包含动态 ZIP 归档打包。                                                                                                                          |
| [Zstd](https://cn.angie.software//angie/docs/installation/external-modules/zstd.md#external-zstd)                                                                                                                                                                                                                  | f4ba115                  | `angie-module-zstd`  `angie-pro-module-zstd`                             | 包含 Zstandard 压缩。                                                                                                                        |
