id: 6a17bd4663f94cc6b958860290a3997f
parent_id: 
item_type: 1
item_id: 692adaa0cde841d7b7afacbebe39b315
item_updated_time: 1764345508237
title_diff: "[{\"diffs\":[[1,\"利用cloudflarework+pages部署一个简易的临时邮件系统-cloudflar\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":45}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>利用cloudflarework+pages部署一个简易的临时邮件系统-cloudflare羊毛系列 - 米拉一频道</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"41125\\\"></a>\\\r\\\n<h1>利用cloudflarework+pages部署一个简易的临时邮件系统-cloudflare羊毛系列 - 米拉一频道</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:article\\\"><div style=\\\"font-size: 16px; display:block; min-width: 100%; position: relative;\\\"> <div style=\\\"box-sizing:border-box;font-family:sans-serif;line-height:1.15;text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);\\\"><div style=\\\"box-sizing:border-box;font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, &quot;Liberation Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;font-size:16px;font-weight:400;line-height:1.5;color:rgb(33, 37, 41);text-align:left;background:rgb(228, 228, 228);\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><span style=\\\"box-sizing:border-box;box-shadow:rgba(26, 26, 26, 0.1) 0px 1px 3px;border-radius:4px;background-color:rgb(255, 255, 255);\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;font-size:15px;word-break:break-all;\\\">\\\n                                                                                                                        <span style=\\\"box-sizing:border-box;\\\"></span><h1 style=\\\"box-sizing:border-box;line-height:1.2;color:rgb(68, 68, 68);font-weight:700;font-size:30px;margin:50px 0px 20px;\\\">项目官方文档</h1><p style=\\\"box-sizing:border-box;margin:0px 0px 20px;color:rgb(68, 68, 68);line-height:25px;\\\"><a href=\\\"https://temp-mail-docs.awsl.uk/zh/guide/config-send-mail\\\" style=\\\"box-sizing:border-box;text-decoration:none;background-color:transparent;transition:0.3s;color:rgb(108, 117, 125);\\\" target=\\\"_blank\\\">https://temp-mail-docs.awsl.uk/zh/guide/config-send-mail</a></p><span style=\\\"box-sizing:border-box;\\\"></span><h1 style=\\\"box-sizing:border-box;line-height:1.2;color:rgb(68, 68, 68);font-weight:700;font-size:30px;margin:50px 0px 20px;\\\">项目github仓库</h1><p style=\\\"box-sizing:border-box;margin:0px 0px 20px;color:rgb(68, 68, 68);line-height:25px;\\\"><a href=\\\"https://github.com/dreamhunter2333/cloudflare_temp_email\\\" style=\\\"box-sizing:border-box;text-decoration:none;background-color:transparent;transition:0.3s;color:rgb(108, 117, 125);\\\" target=\\\"_blank\\\"><span style=\\\"box-sizing:border-box;padding:0.2em;transition:background-color 0.4s;color:black;background-color:rgb(234, 226, 96);font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">https://github.com/dreamhunter2333/cloudflare_temp_email</span></a></p><span style=\\\"box-sizing:border-box;\\\"></span><h1 style=\\\"box-sizing:border-box;line-height:1.2;color:rgb(68, 68, 68);font-weight:700;font-size:30px;margin:50px 0px 20px;\\\"><span style=\\\"box-sizing:border-box;padding:0.2em;transition:background-color 0.4s;color:black;background-color:rgb(234, 226, 96);font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">安装过程</span></h1><span style=\\\"box-sizing:border-box;\\\"></span><h2 style=\\\"box-sizing:border-box;line-height:1.2;margin:0px 0px 20px;color:rgb(68, 68, 68);font-weight:700;font-size:25px;\\\">首先要定义两个域名</h2><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">前端url webmail.milaone.app</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">后端url cfmail-api.milaone.app</li></ul><span style=\\\"box-sizing:border-box;\\\"></span><h2 style=\\\"box-sizing:border-box;line-height:1.2;margin:0px 0px 20px;color:rgb(68, 68, 68);font-weight:700;font-size:25px;\\\">1.数据库设置</h2><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">在works和pages中选D1数据库</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">创建数据库起名字dev</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">创建后进入到dev数据库,然后打开consol标签<br style=\\\"box-sizing:border-box;\\\"/> -把 <a href=\\\"https://github.com/dreamhunter2333/cloudflare_temp_email/blob/main/db/schema.sql\\\" style=\\\"box-sizing:border-box;text-decoration:none;background-color:transparent;transition:0.3s;color:rgb(108, 117, 125);\\\" target=\\\"_blank\\\">https://github.com/dreamhunter2333/cloudflare_temp_email/blob/main/db/schema.sql</a>这个schema.sql文件中的内容复制到donsol中,然后点击Execute按钮</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">数据库创建完成</li></ul><hr style=\\\"height:0px;overflow:visible;box-sizing:content-box;margin-top:16px;margin-bottom:16px;border-width:1px 0px 0px;border-right-style:initial;border-bottom-style:initial;border-left-style:initial;border-right-color:initial;border-bottom-color:initial;border-left-color:initial;border-image:initial;border-top-style:solid;border-top-color:rgba(0, 0, 0, 0.1);\\\"/><span style=\\\"box-sizing:border-box;\\\"></span><h2 style=\\\"box-sizing:border-box;line-height:1.2;margin:0px 0px 20px;color:rgb(68, 68, 68);font-weight:700;font-size:25px;\\\">2.后台程序部署</h2><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">还是在在works和pages中,创建应用程序,选workers</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">起名字cfmail-api,保存,然后点右下角完成.</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">然后界面中右上角点edit code.</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">然后再左边点击文件按钮,右键点works.js然后删除.</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\"><strong style=\\\"box-sizing:border-box;font-weight:bolder;\\\">再下载<a href=\\\"https://github.com/dreamhunter2333/cloudflare_temp_email/releases/latest/download/worker.js\\\" style=\\\"box-sizing:border-box;text-decoration:none;background-color:transparent;transition:0.3s;color:rgb(108, 117, 125);\\\" target=\\\"_blank\\\">works.js</a></strong></li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">右键点击,出现上传,把下载的works.js上传上去,然后右上角部署</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">再来到项目的settings--&gt;Variables中,添加变量</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\"><p style=\\\"box-sizing:border-box;margin:0px 0px 20px;color:rgb(68, 68, 68);line-height:25px;\\\">开始部署时我们只添加4个变量,文章结尾我附带了可设置的变量代码示例说明.</p><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">ADMIN_PASSWORDS = [&quot;1234&quot;]</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">PASSWORDS = [&quot;1234&quot;]</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">DOMAINS = [&quot;milaone.app&quot;]</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">JWT_SECRET =[&quot;xxxyyyzzz&quot;]</li></ul></li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\"><p style=\\\"box-sizing:border-box;margin:0px 0px 20px;color:rgb(68, 68, 68);line-height:25px;\\\">在KV Namespace Bindings中添加一个KV</p><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">创建一个KV,起名字dev</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">然后在这里Variable name填 KV 大写.</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">KV Namespace选择创建的KV库dev</li></ul></li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\"><p style=\\\"box-sizing:border-box;margin:0px 0px 20px;color:rgb(68, 68, 68);line-height:25px;\\\">添加D1数据库</p><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">同样在settings--&gt;Variable中,找到D1 Database,添加上一步创建的数据库dev</li></ul></li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">最后再进行部署一次.</li></ul><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\"><p style=\\\"box-sizing:border-box;margin:0px 0px 20px;color:rgb(68, 68, 68);line-height:25px;\\\">后端验证</p><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">后端设置完成后,可以通过访问后端域名的url及目录进行验证,例如我的域名</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">cfmail-api.milaone.app   返回结果OK</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">cfmail-api.milaone.app/health_check   返回结果OK</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">则说明后端配置完成.后期可随时在变量中增删内容以达到配置效果</li></ul></li></ul><hr style=\\\"height:0px;overflow:visible;box-sizing:content-box;margin-top:16px;margin-bottom:16px;border-width:1px 0px 0px;border-right-style:initial;border-bottom-style:initial;border-left-style:initial;border-right-color:initial;border-bottom-color:initial;border-left-color:initial;border-image:initial;border-top-style:solid;border-top-color:rgba(0, 0, 0, 0.1);\\\"/><span style=\\\"box-sizing:border-box;\\\"></span><h2 style=\\\"box-sizing:border-box;line-height:1.2;margin:0px 0px 20px;color:rgb(68, 68, 68);font-weight:700;font-size:25px;\\\">3.前台程序部署</h2><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">还是在在works和pages中,创建应用程序,选Pages</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">选择Create using direct upload,然后再选择Upload assets按钮</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">然后来到作者的官方文档中 <a href=\\\"https://temp-mail-docs.awsl.uk/zh/guide/ui/pages.html\\\" style=\\\"box-sizing:border-box;text-decoration:none;background-color:transparent;transition:0.3s;color:rgb(108, 117, 125);\\\" target=\\\"_blank\\\">点击这里生成配置文件</a></li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">在该页面中的地址栏输入后端的域名的https地址,比如我使用的地址是<a href=\\\"https://cfmail-api.milaone.app/\\\" style=\\\"box-sizing:border-box;text-decoration:none;background-color:transparent;transition:0.3s;color:rgb(108, 117, 125);\\\" target=\\\"_blank\\\">https://cfmail-api.milaone.app</a> 生成配置,得到下载一个frontend.zip文件,上传到pages中.<br style=\\\"box-sizing:border-box;\\\"/><img src=\\\"利用cloudflarework+pages部署一个简易的临时邮件系统-cloudflar_files/gOSwJkAAJkAAJkAAJkAAJkAAJkAAJkICeBCiW6OkXWkUCJEACJEACJEACJEACJEACJEACJJAnAhRL8gSew5IACZAACZAACZAACZAACZAACZAACehJgGKJnn6hVSRAAiRAAiRAAiRAAiRAAiRAAiRAAnki8P8A9xsWlhadXtEAAAAASUVORK5CYII=\\\" type=\\\"image/png\\\" data-filename=\\\"gOSwJkAAJkAAJkAAJkAAJkAAJkAAJkICeBCiW6OkXWkUCJEACJEACJEACJEACJEACJEACJJAnAhRL8gSew5IACZAACZAACZAACZAACZAACZAACehJgGKJnn6hVSRAAiRAAiRAAiRAAiRAAiRAAiRAAnki8P8A9xsWlhadXtEAAAAASUVORK5CYII=\\\" height=\\\"292\\\" style=\\\"box-sizing:border-box;border-style:none;vertical-align:middle;margin:0px 0px 20px;max-width:100%;cursor:zoom-in;margin-left:auto;margin-right:auto;display:block;\\\" title=\\\"2024-06-06T02:47:55.png\\\" width=\\\"528\\\"/></li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">最后在Custom Domain给前端自定义一个域名,例如我使用的是webmail.milaone.app</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">前端验证,访问前端<a href=\\\"https://webmail.milaone.com/\\\" style=\\\"box-sizing:border-box;text-decoration:none;background-color:transparent;transition:0.3s;color:rgb(108, 117, 125);\\\" target=\\\"_blank\\\">https://webmail.milaone.com</a>,此时应该出现界面并提示输入密码</li></ul><span style=\\\"box-sizing:border-box;\\\"></span><h2 style=\\\"box-sizing:border-box;line-height:1.2;margin:0px 0px 20px;color:rgb(68, 68, 68);font-weight:700;font-size:25px;\\\">3.邮件路由设置</h2><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">来到<a href=\\\"https://dash.cloudflare.com/\\\" style=\\\"box-sizing:border-box;text-decoration:none;background-color:transparent;transition:0.3s;color:rgb(108, 117, 125);\\\" target=\\\"_blank\\\">https://dash.cloudflare.com</a> 面板首页,然后选择需要使用的域名进入.</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">左边选择Email菜单,在Email Routing中选择Routing ruls中Catch-all address<br style=\\\"box-sizing:border-box;\\\"/>激活,并且edit.</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">其中的Action选择的是Send to a Worker ,目标选择后端的worker名字</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">验证:截止到现在登录前端url已经可以</li></ul><span style=\\\"box-sizing:border-box;\\\"></span><h2 style=\\\"box-sizing:border-box;line-height:1.2;margin:0px 0px 20px;color:rgb(68, 68, 68);font-weight:700;font-size:25px;\\\">4.发送邮件设置</h2><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\"><a href=\\\"https://resend.com/domains\\\" style=\\\"box-sizing:border-box;text-decoration:none;background-color:transparent;transition:0.3s;color:rgb(108, 117, 125);\\\" target=\\\"_blank\\\">https://resend.com/domains</a>进行域名验证</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">然后在API-Key 中创建一个api,全部权限,然后把密码拷贝</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">到后端的Worker中Settings--&gt;Environment Variables--&gt;添加一个变量</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">RESEND_TOKEN = re_PxW46o6o_HJrmMYARCGdhMtB3JHD(上一步拷贝出来的密码)</li></ul><span style=\\\"box-sizing:border-box;\\\"></span><h2 style=\\\"box-sizing:border-box;line-height:1.2;margin:0px 0px 20px;color:rgb(68, 68, 68);font-weight:700;font-size:25px;\\\">截止到以上步骤,就可以完整的收发邮件了.</h2><span style=\\\"box-sizing:border-box;\\\"></span><h2 style=\\\"box-sizing:border-box;line-height:1.2;margin:0px 0px 20px;color:rgb(68, 68, 68);font-weight:700;font-size:25px;\\\">如果需要更方便的朋友,强烈建议挂上Telegram机器人</h2><span style=\\\"box-sizing:border-box;\\\"></span><h2 style=\\\"box-sizing:border-box;line-height:1.2;margin:0px 0px 20px;color:rgb(68, 68, 68);font-weight:700;font-size:25px;\\\">5.Telegram机器人</h2><ul style=\\\"box-sizing:border-box;margin:0px 0px 20px;\\\"><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">创建机器人(具体方法自己搜.)</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">拿到用于这个项目的机器人token,还有telegram的账户id.</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">到后端的Worker中Settings--&gt;Environment Variables--&gt;添加一个变量</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">TELEGRAM_BOT_TOKEN = 机器人token</li><li style=\\\"box-sizing:border-box;color:rgb(68, 68, 68);padding:2px 0px;\\\">在邮件的管理后台,机器人中填入账户id.</li></ul><span style=\\\"box-sizing:border-box;\\\"></span><h1 style=\\\"box-sizing:border-box;line-height:1.2;color:rgb(68, 68, 68);font-weight:700;font-size:30px;margin:50px 0px 20px;\\\">附1:变量说明</h1><pre style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};border-radius:4px;background-color: #fbfaf8;border: 1px solid rgba(0,0,0,.14902);color: #333;font-size: 12px;padding: 8px;font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif;box-sizing: border-box;\\\"><span style=\\\"font-family:SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;font-size:87.5%;color:rgb(0, 0, 0);font:15px / 1.4 Microsoft YaHei, Arial, sans-serif;position:absolute;border-radius:50%;background:rgb(252, 98, 93);width:12px;height:12px;left:10px;top:10px;box-shadow:rgb(253, 188, 64) 20px 0px, rgb(53, 205, 75) 40px 0px;z-index:2;\\\"> </span><span style=\\\"box-sizing:border-box;overflow-wrap:break-word;text-shadow:none;border-radius:0px 0px 5px 5px;cursor:auto;overflow-y:scroll;font-family:&quot;Source Code Pro&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif;word-break:break-word;font-size:15px;max-height:600px;display:block;overflow-x:auto;background:rgb(30, 30, 30);color:rgb(220, 220, 220);padding:12px 16px;\\\"><span style=\\\"box-sizing:border-box;color:gold;\\\">[vars]</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># TITLE = &quot;Custom Title&quot; # 自定义网站标题</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(156, 220, 254);\\\">PREFIX</span> = <span style=\\\"box-sizing:border-box;color:rgb(214, 157, 133);\\\">&quot;tmp&quot;</span> <span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 要处理的邮箱名称前缀，不需要后缀可配置为空字符串</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 如果你想要你的网站私有，取消下面的注释，并修改密码</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># PASSWORDS = [&quot;123&quot;, &quot;456&quot;]</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># admin 控制台密码, 不配置则不允许访问控制台</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># ADMIN_PASSWORDS = [&quot;123&quot;, &quot;456&quot;]</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># admin 联系方式，不配置则不显示，可配置任意字符串</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># ADMIN_CONTACT = &quot;xx@xx.xxx&quot;</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(156, 220, 254);\\\">DOMAINS</span> = [<span style=\\\"box-sizing:border-box;color:rgb(214, 157, 133);\\\">&quot;xxx.xxx1&quot;</span> , <span style=\\\"box-sizing:border-box;color:rgb(214, 157, 133);\\\">&quot;xxx.xxx2&quot;</span>] <span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 你的域名, 支持多个域名</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(156, 220, 254);\\\">JWT_SECRET</span> = <span style=\\\"box-sizing:border-box;color:rgb(214, 157, 133);\\\">&quot;xxx&quot;</span> <span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 用于生成 jwt 的密钥, jwt 用于给用户登录以及鉴权</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(156, 220, 254);\\\">BLACK_LIST</span> = <span style=\\\"box-sizing:border-box;color:rgb(214, 157, 133);\\\">&quot;&quot;</span> <span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 黑名单，用于过滤发件人，逗号分隔</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 是否允许用户创建邮件, 不配置则不允许</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(156, 220, 254);\\\">ENABLE_USER_CREATE_EMAIL</span> = <span style=\\\"box-sizing:border-box;color:rgb(86, 156, 214);\\\">true</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 允许用户删除邮件, 不配置则不允许</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(156, 220, 254);\\\">ENABLE_USER_DELETE_EMAIL</span> = <span style=\\\"box-sizing:border-box;color:rgb(86, 156, 214);\\\">true</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 允许自动回复邮件</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(156, 220, 254);\\\">ENABLE_AUTO_REPLY</span> = <span style=\\\"box-sizing:border-box;color:rgb(86, 156, 214);\\\">false</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 是否启用 webhook</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># ENABLE_WEBHOOK = true</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 前端界面页脚文本</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># COPYRIGHT = &quot;Dream Hunter&quot;</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 默认发送邮件余额，如果不设置，将为 0</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># DEFAULT_SEND_BALANCE = 1</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># Turnstile 人机验证配置</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># CF_TURNSTILE_SITE_KEY = &quot;&quot;</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># CF_TURNSTILE_SECRET_KEY = &quot;&quot;</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># dkim config</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># DKIM_SELECTOR = &quot;mailchannels&quot; # 参考 DKIM 部分 mailchannels._domainkey 的 mailchannels</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># DKIM_PRIVATE_KEY = &quot;&quot; # 参考 DKIM 部分 priv_key.txt 的内容</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># telegram bot 最多绑定邮箱数量</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># TG_MAX_ACCOUNTS = 5</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># 全局转发地址列表，如果不配置则不启用，启用后所有邮件都会转发到列表中的地址</span>\\\n<span style=\\\"box-sizing:border-box;color:rgb(87, 166, 74);font-style:italic;\\\"># FORWARD_ADDRESS_LIST = [&quot;xxx@xxx.com&quot;]</span></span><div style=\\\"box-sizing:border-box;border-radius:0px;margin:0px;font-family:inherit;font-size:inherit;line-height:inherit;overflow:visible;text-transform:none;appearance:button;cursor:pointer;\\\"><i style=\\\"box-sizing:border-box;\\\"></i> 复制</div></pre>                    </div></div></span></div></div></div></div></div></div></div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":21384}]"
metadata_diff: {"new":{"id":"692adaa0cde841d7b7afacbebe39b315","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345843392,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:20:19.697Z
created_time: 2025-11-28T16:20:19.697Z
type_: 13