Skip to content

Commit 120f8be

Browse files
y82travisamartin
andauthored
NGINX Plus admin guide: Added lua_stream to Lua Dynamic Module (#46)
* Added lua_stream to Lua Dynamic Module * Apply suggestions from code review Co-authored-by: Travis Martin <[email protected]>
1 parent 540ee26 commit 120f8be

File tree

1 file changed

+10
-5
lines changed
  • content/nginx/admin-guide/dynamic-modules

1 file changed

+10
-5
lines changed

content/nginx/admin-guide/dynamic-modules/lua.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Integrate Lua co-routines into the NGINX event-processing model with the communi
1515

1616
1. Check the [Technical Specifications]({{< relref "../../technical-specs.md" >}}) page to verify that the module is supported by your operating system.
1717

18-
2. Prior to installing the module, verify that the [NDK]({{< relref "ndk.md" >}}) module is already installed.
18+
2. Prior to installing the module, verify that the [NGINX Developer Kit (NDK)]({{< relref "nginx/admin-guide/dynamic-modules/ndk.md" >}}) module is already installed.
1919

2020

2121
<span id="install"></span>
@@ -64,18 +64,19 @@ Integrate Lua co-routines into the NGINX event-processing model with the communi
6464

6565
## Configuration
6666

67-
After installation you will need to enable and configure the module in F5 NGINX Plus configuration file `nginx.conf`.
67+
After installation, enable and configure the modules in NGINX Plus configuration file `nginx.conf`.
6868

6969
1. Enable dynamic loading of NDK and Lua modules with the [`load_module`](https://nginx.org/en/docs/ngx_core_module.html#load_module) directives specified in the top-level (“`main`”) context:
7070

7171
```nginx
7272
load_module modules/ndk_http_module.so;
7373
load_module modules/ngx_http_lua_module.so;
74+
load_module modules/ngx_stream_lua_module.so;
7475
```
7576

76-
{{< note >}} The directives must be in this order. {{< /note >}}
77+
{{< note >}} The `ndk_http_module.so` module must be placed first. {{< /note >}}
7778

78-
2. Perform additional configuration as required by the [module](https://github.com/openresty/lua-nginx-module).
79+
2. Configure additional settings as needed for the modules. For details, see the [`lua-nginx-module`](https://github.com/openresty/lua-nginx-module) and [`stream-lua-nginx-module`](https://github.com/openresty/stream-lua-nginx-module) documentation.
7980

8081
3. Test the configuration and reload NGINX Plus to enable the module:
8182

@@ -87,7 +88,11 @@ After installation you will need to enable and configure the module in F5 NGINX
8788
<span id="info"></span>
8889
## More Info
8990

90-
- [NGINX Lua Module Reference](https://github.com/openresty/lua-nginx-module)
91+
- [The `lua-nginx-module` Module Reference](https://github.com/openresty/lua-nginx-module)
92+
93+
- [The `stream-lua-nginx-module` Module Reference](https://github.com/openresty/stream-lua-nginx-module)
94+
95+
- [The NDK Module Reference](https://github.com/vision5/ngx_devel_kit)
9196

9297
- [NGINX Dynamic Modules]({{< relref "dynamic-modules.md" >}})
9398

0 commit comments

Comments
 (0)