radware-nodejs-middleware
v7.0.9
Published
Official Radware Node.js express connector.
Downloads
5
Readme
RADWARE-CONNECTOR
Official Radware Node.js express connector.
Version: 7.0.9
Supports
- Node.js version (>= 18.0.0)
- This connector architects on top of middleware concept.
How do I get set up?
Radware Supports two modes of connection,
- Monitor Mode (Async)
- Active Mode (Sync)
The connector supports both of the them out of the box.
Calltype & UserId Params
Calltype defaults to 1 if it is not provided & userId defaults to '' if it is not provided.
Both the values are taken as query string parameter.
For Ex: http://localhost:3000?calltype=2&userId=12345
Nodejs Setup :
Install nvm in Linux Machine: (Node virtual manager used to switch nodejsversions)
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
source ~/.nvm/nvm.sh (Install nvm )
Install nodejs 18 using nvm :
nvm list ( To see list of node js versions )
nvm install –-lts (Installs latest nodejs version)
(To install particular version: nvm install 18.17.1)
Install node js plugin packages:
npm install radware-nodejs-middleware
- version 7.0.8:
- Support node js version 18
- Fixes for errors and deprecated code
- version 7.0.9:
- Passed trimed ip to _zpsbd6 from header
- Remove implementation for ss_ipv4_in_ipv6_to_ipv4 to work this connector as nginx connector
Place/Add ss2_config. json in your application.
Add radware-nodejs-middleware in your application
var shieldConnector = require('radware-nodejs-middleware'); shieldConnector.setConfigfilePath("path_to/ss2_config.json") // Please add the Absolute path to ss2_config.json file. app.use(shieldConnector.validateShieldsquare()) // Calling radware nodejs middleware in the application.