- You are using Cloudflare for DNS, and you have proxying enabled.
- You have sufficient permissions on Cloudflare to create workers and configure worker routes for your website.
- The Satellite has been successfully set up and is reachable (via HTTPS) from the worker.
Deploying the Worker
Using the CLI
Before proceeding, ensure that you have Wrangler installed and authenticated.
# Install wrangler
npm install --global wrangler
# Authenticate with Cloudflare
Follow the steps below to deploy the worker to your account.
You can obtain your organization's ID from https://app.levo.ai/settings/organizations or by clicking on your profile picture in Levo's dashboard, and navigating to
User Settings -> Organizations.
# Clone the worker repository
git clone https://github.com/levoai/cf-worker.git
# cd into the repository
# Deploy the worker
# Add your organization ID as a secret
echo <VALUE> | wrangler secret put LEVO_ORG_ID
That's it! The worker has been added to your Cloudflare account.
You must also add
LEVO_SATELLITE_URL as an environment variable for the worker if you are hosting the Satellite yourself.
Check the repository's README for a list of all supported variables.
Configuring Websites to use the Worker
Follow the instructions in the Cloudflare Docs.