GitHub - cloudflare/matched-data-worker | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

cloudflare/matched-data-worker

Repository files navigation

Matched Data JS

Logpush Setup

  1. Dataset:
    • Firewall Events
  2. Select Data Fields:
    • Required: General > Metadata
    • Any others are optional
  3. Select Destination:
    • S3 Compatible
  4. Enter Destination Info (see example below):
    • Given the final URL you want to use is <subdomain>.<example.com>/logs:
      • <subdomain> and <example.com> are arbitrary
      • logs is required according to the default configuration of the worker
    • S3 Compatible Bucket Path: <subdomain>/logs
    • Endpoint URL: <example.com>
    • All other fields can be arbitrary values

Logpush Setup Example

destination-example.png

Configure and Deploy

  1. Edit wrangler.toml to add DOMAIN, SUBDOMAIN, and ACCOUNTID.
  2. Edit src/index.ts (line 37) to send the decoded data anywhere you would like.
  3. Run npx wrangler secret put MATCHED_PAYLOAD_PRIVATE_KEY:
    • Enter the private key generated when deploying a matched payload.
    • Refer to the documentation for more information on generating the private/public key pair.
  4. Run npm run deploy.

Matched Payload Format

The matched data payload is base64 encoded, and then binary encoded using the following format:

[version: 1 byte][encapped key: 32 bytes][payload size: 8 bytes][payload: N bytes]

Local testing

  1. Run echo 'MATCHED_PAYLOAD_PRIVATE_KEY=uBS5eBttHrqkdY41kbZPdvYnNz8Vj0TvKIUpjB1y/GA=' > .dev.vars (taken from https://github.com/cloudflare/matched-data-cli).
  2. In terminal window 1, run: npm run dev.
  3. In terminal window 2, run: npm run req.
  4. Back in terminal window 1, you should see [ 'test matched data' ].

See Also

https://github.com/cloudflare/matched-data-cli

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.