Installation via Wrangler (CLI)
This section describes how configure and deploy the Netacea integration via the Wrangler.
Last updated
This section describes how configure and deploy the Netacea integration via the Wrangler.
Last updated
To successfully integrate using Netacea, please ensure you have:
Installed , (version 16.13.0 or higher) and on you machine.
An active Cloudflare account with access to the Cloudflare Dashboard.
A “Paid” Cloudflare subscription, in order to avoid any issues with worker request-limits etc.
Access to the Cloudflare Workers product.
The detailed GitHub instructions to pull the code, configure and deploy the Netacea Cloudflare plugin can be found .
Open Windows Command-Prompt/PowerShell and navigate to a directory where you can save the Netacea code.
Within that directory execute the following command
This will use wrangler to create (generate) a new local worker bundle by pulling the latest Netacea GitHub code.
You can verify this by visiting the above directory and seeing the worker with the following format:
Open the src directory and edit the NetaceaConfig.json
file to match the below:
Replace the values with the details that Netacea has provided you and save the file.
The last three configuration variables are used to increase security by concealing Netacea's default cookie names and values from public view.
Navigate to the worker's root directory and edit the wrangler.toml
file:
Replace the values with the appropriate details.
Once ready, save the file.
Within the worker root directory, execute the following two commands to ensure all the necessary node modules are installed/updated
Execute the following command:
This might prompt you to login to Cloudflare via your browser and allow access to wrangler. If so, login and allow access.
Login to Cloudflare, open the dashboard and select "Workers Routes" from the menu. You should be able to see the newly deployed worker, associated with the route from the wrangler.toml
file.
Deployments of each worker can be seen by clicking on the environment (e.g. production) and selecting the Deployment's tab:
For each worker, you can see various metrics, the associated routes and have the option to roll-back to a previous deployment.
The can be found on your Cloudflare Dashboard.
The refers to the path that the worker should be applied to, e.g. "www.example.com/*" and can be edited after deployment.