@netacea/f5
v4.3.79
Published
Netacea F5 CDN integration
Downloads
279
Readme
Netacea F5
@netacea/f5
is a package designed to add Netacea functionality to F5.
Installation
🌻 Starting fresh
Contact one of the Netacea support teams for the TCL code to run. Code examples are below.
✍ Existing ILX Workspace
Run the following command to install the netacea worker
npm i @netacea/f5 --save
Require (javascript) or import (typescript) the worker
// JAVASCRIPT:
const NetaceaF5 = require('@netacea/f5').default
// TYPESCRIPT:
import NetaceaF5 from '@netacea/f5'
Then declare a variable for the worker and register the handlers.
const worker = new NetaceaF5({
apiKey: 'your-api-key',
secretKey: 'your-secret-key'
})
netacea.registerMitigateHandler(ilx)
netacea.registerIngestHandler(ilx)
It's best security practice to not commit your apiKey
and secretKey
to any repository.
Example Typescript:
import NetaceaF5, { F5ConstructorArgs, IlxServer } from '@netacea/f5'
import * as NetaceaConfig from './NetaceaConfig.json'
const f5 = require('f5-nodejs')
const ilx: IlxServer = new f5.ILXServer()
const netacea = new NetaceaF5(NetaceaConfig as F5ConstructorArgs)
netacea.registerMitigateHandler(ilx)
netacea.registerIngestHandler(ilx)
ilx.listen()
🥇 Examples
Example Javascript:
const NetaceaF5 = require('@netacea/f5').default
const worker = new NetaceaF5({
apiKey: 'your-api-key',
secretKey: 'your-secret-key'
})
const NetaceaConfig = require('./NetaceaConfig.json')
const f5 = require('f5-nodejs')
const ilx = new f5.ILXServer()
const netacea = new NetaceaF5(config)
netacea.registerMitigateHandler(ilx)
netacea.registerIngestHandler(ilx)
⬆ Updating
npm i @netacea/f5@latest --save
This will update the netacea module to the latest version.