Skip to content

EveryMundo/em-cloudflare-route

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

em-cloudflare-route

Easily provision cloudflare route Serverless Components.

 

  1. Install
  2. Create
  3. Configure
  4. Deploy

 

1. Install

$ npm i @everymundo/[email protected]

2. Create

$ mkdir demo de && cd demo

Just create a serverless.yml file

$ touch serverless.yml
$ touch .env      # your CF credentials
# .env
CF_ACCOUNT_ID=
CF_EMAIL=
CF_KEY=
CF_ZONE_ID=

3. Configure

Create a serverless.yml file:

# serverless.yml
name: demo
stage: dev
plugins:
   - serverless-dotenv-plugin
demo:
  #component: '@everymundo/[email protected]'
  component: '../'
  inputs:
      routeName: al-dev.com
      workerName: geoip
    
        

Use the environment variables CF_ACCOUNT_ID, CF_EMAIL, CF_KEY and CF_ZONE_ID to specify your Cloudflare API credentials.

4. Deploy

$ severless

 

New to Components?

Checkout the Serverless Components repo for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published