# 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 -r 617bc29bd759 -r 33468af2eaf7 xml/en/docs/http/ngx_http_js_module.xml --- a/xml/en/docs/http/ngx_http_js_module.xml Wed Apr 22 16:54:18 2020 +0100 +++ b/xml/en/docs/http/ngx_http_js_module.xml Wed Apr 22 16:54:18 2020 +0100 @@ -9,7 +9,7 @@ + rev="22">
@@ -34,9 +34,6 @@ The example works since 0.4.0. -load_module modules/ngx_http_js_module.so; -... - http { js_import http.js; diff -r 617bc29bd759 -r 33468af2eaf7 xml/en/docs/njs/install.xml --- a/xml/en/docs/njs/install.xml Wed Apr 22 16:54:18 2020 +0100 +++ b/xml/en/docs/njs/install.xml Wed Apr 22 16:54:18 2020 +0100 @@ -9,7 +9,7 @@
+ rev="3">
@@ -31,6 +31,19 @@ + +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 -r 617bc29bd759 -r 33468af2eaf7 xml/en/docs/stream/ngx_stream_js_module.xml --- a/xml/en/docs/stream/ngx_stream_js_module.xml Wed Apr 22 16:54:18 2020 +0100 +++ b/xml/en/docs/stream/ngx_stream_js_module.xml Wed Apr 22 16:54:18 2020 +0100 @@ -9,7 +9,7 @@ + rev="20">
@@ -33,9 +33,6 @@ The example works since 0.4.0. -load_module modules/ngx_stream_js_module.so; -... - stream { js_import stream.js; diff -r 617bc29bd759 -r 33468af2eaf7 xml/ru/docs/http/ngx_http_js_module.xml --- a/xml/ru/docs/http/ngx_http_js_module.xml Wed Apr 22 16:54:18 2020 +0100 +++ b/xml/ru/docs/http/ngx_http_js_module.xml Wed Apr 22 16:54:18 2020 +0100 @@ -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 -r 617bc29bd759 -r 33468af2eaf7 xml/ru/docs/njs/install.xml --- a/xml/ru/docs/njs/install.xml Wed Apr 22 16:54:18 2020 +0100 +++ b/xml/ru/docs/njs/install.xml Wed Apr 22 16:54:18 2020 +0100 @@ -9,7 +9,7 @@
+ rev="3">
@@ -32,6 +32,19 @@ + +После установки пакетов необходимо загрузить динамические модули njs при помощи +директивы +load_module: + +load_module modules/ngx_http_js_module.so; + +или + +load_module modules/ngx_stream_js_module.so; + + +
diff -r 617bc29bd759 -r 33468af2eaf7 xml/ru/docs/stream/ngx_stream_js_module.xml --- a/xml/ru/docs/stream/ngx_stream_js_module.xml Wed Apr 22 16:54:18 2020 +0100 +++ b/xml/ru/docs/stream/ngx_stream_js_module.xml Wed Apr 22 16:54:18 2020 +0100 @@ -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;