Quick Start
Get started with NetFUNNEL 4 Akamai Agent in 5-10 minutes with this quick start guide.
Prerequisites
- NetFUNNEL console access
- Akamai account with EdgeWorker support
- Permission to create and manage Property
Step 1: Get Client ID
- Go to NetFUNNEL Console
- Click the profile icon in the top right corner
- Select the
Integration Credentialsmenu - Copy
Client ID
Step 2: Create EdgeWorker
- Akamai Console → Click [EdgeWorkers] menu
- Click [Create EdgeWorker ID]
- Enter details and click [Create EdgeWorker ID] to create EdgeWorker
- Select the created EdgeWorker and click [Create version]
- Click [Open editor]
Step 3: Upload Agent Code
- Download
netfunnel-akamai-agent.jsfile from https://agent-lib.stclab.com/agents/cdn/akamai/netfunnel-akamai-agent-latest.js - Select
main.jsfile in [Code Bundle] tab - Paste the contents of
netfunnel-akamai-agent.jsfile - Select
bundle.jsonfile and write the following code:
{
"edgeworker-version": "1.0.0",
"description" : "akamai-agent-1.0.0"
}
- Click [Create new version] to create version
- Click [Activate version]
- Select [Production] and click [Activate version] to deploy
Step 4: Configure Property
Configure Property Variables
- Click [Properties] menu
- Select Property (create if it doesn't exist)
- Select the version to modify
- Add the following to Property Variables:
| VARIABLE NAME | INITIAL VALUE |
|---|---|
NF_CLIENT_ID | {{CLIENT_ID}} |
Add EdgeWorker Rule
- Click [+Rules] in Property Configuration Settings
- Select [Blank Rule Template] and enter "NF EdgeWorker"
- Click [Insert Rule]
- Click [+Match] in Criteria:
- Path:
matches one of→/*
- Path:
- Add [+Match]:
- File Extension:
is not one of→ Exclude HTML files, exclude static file extensions
- File Extension:
- Click [+Behavior] in Behaviors → Select EdgeWorkers
- Click [Insert Behavior]
- Select the created EdgeWorker in Identifier
Add Core Origin Rule
- Click [+Rules]
- Select [Blank Rule Template] and enter "NF Core Origin"
- Click [Insert Rule]
- Click [+Match] in Criteria:
- Path:
matches one of→/ts.wseq
- Path:
- Click [+Behavior] in Behaviors → Select Origin Server
- Click [Insert Behavior]
- Configure:
- Origin Type:
Your Origin - Origin Server Hostname:
{CLIENT_ID}.netfunnel.stclab.com - Forward Host Header:
Origin Hostname - Cache Key Hostname:
Origin Hostname
- Origin Type:
Add Setting Origin Rule
- Click [+Rules]
- Select [Blank Rule Template] and enter "NF Setting Origin"
- Click [Insert Rule]
- Click [+Match] in Criteria:
- Path:
matches one of→ Path of{{NF_SETTING_URL}}(e.g.,/stclab-0601.netfunnel/nf-setting.json)
- Path:
- Click [+Behavior] in Behaviors → Select Origin Server
- Click [Insert Behavior]
- Configure:
- Origin Type:
Your Origin - Origin Server Hostname:
nf-setting-bucket.stclab.com - Forward Host Header:
Origin Hostname - Cache Key Hostname:
Origin Hostname
- Origin Type:
Step 5: Activate Property
- Click [Save] button at the bottom right
- Click [Activate] tab at the top
- Click [Activate
{version}on Production] in Production Network - After Verifying is complete, check the warning message box
- Click [Activate
{version}on Production]
Next Steps
- Installation and Initialization: Detailed configuration guide
- Initialization Settings: Property Variables and additional feature configuration