Tip
Find the up-to-date installation instructions at https://docs.levo.ai/install-traffic-capture-sensors/cloudflare-worker.
In order to deploy using https://deploy.workers.cloudflare.com
you'll need to follow the steps provided after clicking the following button linking your github account and forking this repository.
To deploy the worker using Wrangler please fork this repository and run after setting Wrangler up:
wrangler deploy
This worker requires a secret variable that you must setup:
LEVO_ORG_ID
You can obtain your organization ID by navigating to https://app.levo.ai/settings/organizations.
Go to the levo-cf-worker
worker and then navigate to Settings > Variables > Edit Variables
.
Once there, create a new variable with a name and value and click on Encrypt
.
This change will be applied automatically next time the worker handles a new request.
If you are forking the repository and publishing using Wrangler you can run the following command to set the secrets:
echo <VALUE> | wrangler secret put LEVO_ORG_ID
You may optionally configure the following variables:
LEVO_ENV
: The environment that the app belongs to (e.g.dev
,prod
, etc). The default isstaging
.LEVO_SATELLITE_URL
: The URL of a satellite that traces are sent to. The default ishttps://collector.levo.ai
.
Go to the levo-cf-worker
worker and then navigate to Settings > Variables > Edit Variables
.
Once there, create a new variable with a name and value.
Add the variables as KEY=VALUE
pairs under [vars]
in wrangler.toml
, and run wrangler deploy
.
If you run into issues with this specific project, please feel free to file an issue here. If the problem is with Wrangler, please file an issue here.