欢迎光临
我们一直在努力

CF别名可视化无限邮箱

https://github.com/dreamhunter2333/cloudflare_temp_email

利用 Cloudflare Workers 创建临时邮箱

  • 使用 Cloudflare Pages 部署前端
  • 使用 Cloudflare Workers 部署后端
  • email 转发使用 Cloudflare Email Route
  • Cloudflare D1 作为数据库。
  • 免费版附件过大会造成 Exceeded CPU Limit 错误

在线演示

This is a temporary email service that uses Cloudflare Workers to create a temporary email address and view the received email in web browser.

Live Demo

demo

Deploy

Install/Update Wrangler

DB – Cloudflare D1

# create a database, and copy the output to wrangler.toml in the next step
wrangler d1 create dev
wrangler d1 execute dev --file=db/schema.sql

d1

Backend – Cloudflare workers

cd worker
pnpm install
# copy wrangler.toml.template to wrangler.toml
# and add your d1 config and these config
# PREFIX = "tmp" - the email create will be like tmp<xxxxx>@DOMAIN
# DOMAIN = "xxx.xxx" - you domain name
# JWT_SECRET = "xxx"
# BLACK_LIST = ""
cp wrangler.toml.template wrangler.toml
# deploy
pnpm run deploy

you can find and test the worker’s url in the workers dashboard

worker

enable email route and config email forward catch-all to the worker

email

Frontend – Cloudflare pages

cd frontend
pnpm install
# add .env.local and modify VITE_API_BASE to your worker's url
# VITE_API_BASE=https://xxx.xxx.workers.dev - don't put / in the end
cp .env.example .env.local
pnpm build --emptyOutDir
cd ..
pnpm run deploy

pages

赞(0) 打赏
未经允许不得转载:我淘网 » CF别名可视化无限邮箱

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

登录

找回密码

注册