HTTP JavaScript directives
js_engine (http-js)
Selects engine; introduced in 0.8.6, QuickJS availability depends on build. Current module documentation deprecates the built-in njs engine since njs 1.0.0; check the installed module and QuickJS build before selecting an engine.
Formal Syntax & Structure
nginx syntaxnginx
js_engine njs | qjs;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| engine | njs | qjs | Select built-in njs or QuickJS; introduced in njs 0.8.6. Current docs mark njs engine deprecated since 1.0.0; verify installed release and engine build. |
Working Example
Example Snippetnginx
js_engine qjs;