Skip to content

Instantly share code, notes, and snippets.

View rita3ko's full-sized avatar
🐢

Rita Kozlov rita3ko

🐢
View GitHub Profile
@rita3ko
rita3ko / cloudflare-dev-checklist.md
Last active January 18, 2025 21:27
cloudflare developer platform checklist

🧡 fork to keep track of and show off which cloudflare developer products you've used:

💻 compute

  • Workers
  • CI/CD
  • Observability
  • Static assets
  • Gradual deployment
  • Browser Rendering API
  • Rate limiting API
@rita3ko
rita3ko / web_views.js
Created October 16, 2019 23:50
Page views Cloudflare Worker
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
/**
* Respond to the request
* @param {Request} request
*/
async function handleRequest(request) {
let count = await counter.get('views')
@rita3ko
rita3ko / cloudflare_exposure.md
Created February 2, 2017 15:52
How to set up Cloudflare in front of Exposure

How to set up Cloudflare in front of Exposure

For anyone familiar with Cloudflare, you may have found it odd when you tried using a vanity domain on Exposure, and were notified a proxy in front of it would not work.

This guide will walk you through how to put Exposure behind Cloudflare’s proxy when using a custom domain.

  1. In the Expsoure dashboard, under Preferences → Site Preferences click on “Setup a Domain”, and choose whether you would like to use a subdomain, or the root domain (both will work for this guide)
  2. You will be given a DNS record:
    • If you chose subdomain, you will be presented with the following CNAME record to add to your DNS: domains.exposure.co
  • If you chose the root domain, you will be given an IP address (A record)