# HG changeset patch # User Yaroslav Zhuravlev # Date 1587570858 -3600 # Node ID 33468af2eaf7d3bcbb1792aac8d45bbdd2a9f344 # Parent 617bc29bd759b77c287cf442af67a67bb00d1de5 Moved load_module from examples of js modules to Installation. diff --git a/xml/en/docs/http/ngx_http_js_module.xml b/xml/en/docs/http/ngx_http_js_module.xml --- a/xml/en/docs/http/ngx_http_js_module.xml +++ b/xml/en/docs/http/ngx_http_js_module.xml @@ -9,7 +9,7 @@ + rev="22">
@@ -34,9 +34,6 @@ Download and install instructions are av The example works since 0.4.0. -load_module modules/ngx_http_js_module.so; -... - http { js_import http.js; diff --git a/xml/en/docs/njs/install.xml b/xml/en/docs/njs/install.xml --- a/xml/en/docs/njs/install.xml +++ b/xml/en/docs/njs/install.xml @@ -9,7 +9,7 @@
+ rev="3">
@@ -31,6 +31,19 @@ For Linux, njs modules + +After package installation, njs dynamic modules need to be loaded with the +load_module +directive: + +load_module modules/ngx_http_js_module.so; + +or + +load_module modules/ngx_stream_js_module.so; + + +
diff --git a/xml/en/docs/stream/ngx_stream_js_module.xml b/xml/en/docs/stream/ngx_stream_js_module.xml --- a/xml/en/docs/stream/ngx_stream_js_module.xml +++ b/xml/en/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ + rev="20">
@@ -33,9 +33,6 @@ Download and install instructions are av The example works since 0.4.0. -load_module modules/ngx_stream_js_module.so; -... - stream { js_import stream.js; diff --git a/xml/ru/docs/http/ngx_http_js_module.xml b/xml/ru/docs/http/ngx_http_js_module.xml --- a/xml/ru/docs/http/ngx_http_js_module.xml +++ b/xml/ru/docs/http/ngx_http_js_module.xml @@ -9,7 +9,7 @@ + rev="22">
@@ -34,9 +34,6 @@ Пример работает начиная с версии 0.4.0. -load_module modules/ngx_http_js_module.so; -... - http { js_import http.js; diff --git a/xml/ru/docs/njs/install.xml b/xml/ru/docs/njs/install.xml --- a/xml/ru/docs/njs/install.xml +++ b/xml/ru/docs/njs/install.xml @@ -9,7 +9,7 @@
+ rev="3">
@@ -32,6 +32,19 @@ njs + +После установки пакетов необходимо загрузить динамические модули njs при помощи +директивы +load_module: + +load_module modules/ngx_http_js_module.so; + +или + +load_module modules/ngx_stream_js_module.so; + + +
diff --git a/xml/ru/docs/stream/ngx_stream_js_module.xml b/xml/ru/docs/stream/ngx_stream_js_module.xml --- a/xml/ru/docs/stream/ngx_stream_js_module.xml +++ b/xml/ru/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ + rev="20">
@@ -33,9 +33,6 @@ Пример работает начиная с версии 0.4.0. -load_module modules/ngx_stream_js_module.so; -... - stream { js_import stream.js;