Skip to content

A pastebin based on Cloudflare worker, with friendly CLI usage and rich features

License

Notifications You must be signed in to change notification settings

yywill/uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A pastebin based on Cloudflare Workers

Deploy

Install wrangler, and login it following the instruction.

Create a file wrangler.toml with the following content. Refer to Cloudflare doc on how to fill in these parameters.

name = "The name of your project"
type = "javascript"
account_id = "your Cloudflare account id"
workers_dev = true
zone_id = "your Cloudflare zone id"

vars = { BASE_URL = 'where to deploy your pastebin?' }
kv_namespaces = [
  { binding = "PB", id = "id of a KV namespace", preview_id = "id of another KV namespace" },
]

Generate a long random string in some way you like, and tell it to wrangler:

wrangler secret put SALT

Publish it

wrangler publish

About

A pastebin based on Cloudflare worker, with friendly CLI usage and rich features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.6%
  • Shell 36.1%
  • HTML 9.5%
  • Makefile 3.8%