Package Details: nginx-mainline-mod-njs 0.8.3-1

Git Clone URL: https://aur.archlinux.org/nginx-mainline-mod-njs.git (read-only, click to copy)
Package Base: nginx-mainline-mod-njs
Description: nginScript module for mainline nginx
Upstream URL: https://nginx.org/en/docs/njs_about.html
Licenses: custom
Submitter: mtorromeo
Maintainer: mtorromeo
Last Packager: mtorromeo
Votes: 4
Popularity: 0.000026
First Submitted: 2017-04-06 09:43 (UTC)
Last Updated: 2024-02-21 23:18 (UTC)

Latest Comments

ambyjkl commented on 2023-03-12 18:40 (UTC)

With the latest version, the njs module now dynamically links to libxslt, so it should be added to makedepends and depends

Taijian commented on 2020-03-09 11:18 (UTC)

Hi there!

Just a small request: The PKGBUILD for this package states that it is only compatible with x86 architectures. However, I'm running it just fine on armv7h. So maybe add the various arm architectures to the PKGBUILD as well?

Thank you!

diraria commented on 2017-04-17 16:52 (UTC)

Yes, you are right, thank you a lot! It is very strange, that in nginScript documentation (at https://www.nginx.com/resources/wiki/nginScript/) js_run exists.

mtorromeo commented on 2017-04-17 08:38 (UTC)

The js_run directive doesn't exist. ngx_http_js_module only has 3 directives: js_include, js_content and js_set I suggest you read the module documentation: http://nginx.org/en/docs/http/ngx_http_js_module.html

diraria commented on 2017-04-17 07:33 (UTC)

Thank you for answer! Can you, please, help me. I do: 1) Install nginx-mainline 2) Install nginx-mainline-mod-njs 3) Reboot 3) Add location with js_run to server block in /etc/nginx/nginx.conf location /hello { js_run "function hello(req, res) { res.contentType = 'text/plain'; res.status = 200; res.sendHeader(); res.send( 'Hello, world!' ); res.finish(); }"; } 4) Run "nginx -s reload" It gives me error 'unknown directive "js_run"'. Also I tried to add lines load_module /usr/lib/nginx/modules/ngx_http_js_module.so; load_module /usr/lib/nginx/modules/ngx_stream_js_module.so; to the beginning of /etc/nginx/nginx.conf, and it didn't help. Thank you!

mtorromeo commented on 2017-04-17 00:39 (UTC)

No, these modules are compiled to work WITH nginx-mainline so you should not remove it.

diraria commented on 2017-04-16 11:31 (UTC)

Hello, thank you for this package! Could you say, please, if I have already installed nginx-mainline, should I delete ngonx-mainline before install your package? Thank you!