BSD Ports

www/nginx-module-njs 1.0.1_1 DragonFly

Sources of the njs (JavaScript) module for the NGINX ports

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
www
Package size
529.6 KiB, 4877.6 KiB installed

Description

Njs is an nginx module that extends the server's functionality through JavaScript scripting, enabling the creation of custom server-side logic.

Use cases:

  • Complex access control and security checks in njs before a request reaches an upstream server
  • Manipulating response headers
  • Writing flexible asynchronous content handlers and filters

This port only installs the module sources. The module itself is built by the nginx ports when their NJS option is enabled.

In the other systems

The newest version among them is 1.0.2, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlywww/nginx-module-njs1.0.1_1 behind since 2026-10-15none known-[email protected]-
FreeBSDwww/nginx-module-njs1.0.2 newestnone known-[email protected]2026-10-15
HardenedBSDwww/nginx-module-njs1.0.2 newestno data-[email protected]-
GhostBSDwww/nginx-module-njs1.0.2 newestno data-[email protected]-

Version history 1

  1. 1.0.1

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install nginx-module-njs

From DPorts:

cd /usr/dports/www/nginx-module-njs && make install clean

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

This package contains the sources of the njs module only.  It does not
install a loadable module, and installing it alongside nginx does not
add JavaScript support to a running server.

The module itself is built by the nginx ports.  To use njs, build
www/nginx, www/nginx-devel or www/freenginx with the NJS option enabled.
Those ports pick the sources up from
/usr/local/share/nginx/modules/nginx-module-njs and produce
ngx_http_js_module.so and ngx_stream_js_module.so.