You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/nginx/admin-guide/dynamic-modules/lua.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Integrate Lua co-routines into the NGINX event-processing model with the communi
15
15
16
16
1. Check the [Technical Specifications]({{< relref "../../technical-specs.md" >}}) page to verify that the module is supported by your operating system.
17
17
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.
19
19
20
20
21
21
<spanid="install"></span>
@@ -64,18 +64,19 @@ Integrate Lua co-routines into the NGINX event-processing model with the communi
64
64
65
65
## Configuration
66
66
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`.
68
68
69
69
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:
70
70
71
71
```nginx
72
72
load_module modules/ndk_http_module.so;
73
73
load_module modules/ngx_http_lua_module.so;
74
+
load_module modules/ngx_stream_lua_module.so;
74
75
```
75
76
76
-
{{< note >}} The directives must be in this order. {{< /note >}}
77
+
{{< note >}} The `ndk_http_module.so` module must be placed first. {{< /note >}}
77
78
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.
79
80
80
81
3. Test the configuration and reload NGINX Plus to enable the module:
81
82
@@ -87,7 +88,11 @@ After installation you will need to enable and configure the module in F5 NGINX
0 commit comments