id: 6de6f9bd53f94cd0b8ac69603902a31c
parent_id: 
item_type: 1
item_id: 4346f02be64942f99a1e65b7e13cb2f7
item_updated_time: 1764345638813
title_diff: "[{\"diffs\":[[1,\"NAS必备！手把手教你部署最新 Lucky ，一站式搞定 DDNS、自动证书与反向代理\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":43}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>NAS必备！手把手教你部署最新 Lucky ，一站式搞定 DDNS、自动证书与反向代理</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  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\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=\\\"45166\\\"></a>\\\r\\\n<h1>NAS必备！手把手教你部署最新 Lucky ，一站式搞定 DDNS、自动证书与反向代理</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"\\\"><div style=\\\"max-width: 700px;\\\"><p></p><div style=\\\"--en-blockquote: true; box-sizing: border-box; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial;\\\"><div>原文链接: <a href=\\\"https://mp.weixin.qq.com/s?__biz=MzU3MTAyNjUwMA==&amp;mid=2247486098&amp;idx=1&amp;sn=afca36b36dbc836399550d95cc25343e&amp;chksm=fd07459a2d965cc4669a1840f87285b73ac71e2eccaccfc5fd038c61facf312a2f7a75f3b53d&amp;mpshare=1&amp;scene=1&amp;srcid=0726djLnnADUJG0nrBC1JcE5&amp;sharer_shareinfo=f75f352e16c052225de402998df96a3f&amp;sharer_shareinfo_first=f75f352e16c052225de402998df96a3f#rd\\\"><span>https://mp.weixin.qq.com/s?__biz=MzU3MTAyNjUwMA==&amp;mid=224748...</span></a></div></div><p></p><div style=\\\"\\\"><div><div><div><span style=\\\"\\\">原创</span><span> 生活爱好者 </span><span><a style=\\\"\\\"> 资深生活爱好者 </a></span><span><em></em></span></div><div style=\\\"\\\"><div><span style=\\\"\\\"><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>哈喽，艾瑞巴蒂我是生活爱好者。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>作为一名NAS玩家，部署Lucky是绕不开的话题，本期介绍如何在NAS部署Lucky。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>Lucky—— 专为 NAS、软路由等内网设备打造的全能网络工具，集成动态域名解析（DDNS）、内网穿透、反向代理、端口转发及 SSL 证书管理功能。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"color: rgb(51, 51, 51);\\\"><span>通过lucky进行反向代理，为访问NAS上一把安全锁，降低风险。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"color: rgb(51, 51, 51);\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/1876b91e7a89464aa4a9bafbbebe6a8b\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><strong style=\\\"\\\"><span style=\\\"\\\"><span><br/></span></span></strong></p><p style=\\\"color: rgb(73,73,73);\\\"><strong style=\\\"\\\"><span style=\\\"\\\"><span>本文使用设备：威联通NAS</span></span></strong></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><span style=\\\"color: rgb(2, 30, 170); font-weight: bold;\\\">一、NAS部署</span></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>进入NAS，打开ContainerStaion，将代码按照下图格式复制粘贴。</span></span></p></span></div><div><div><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span>services:</span><br/><span>    lucky:</span><br/><span>        image: gdy666/lucky</span><br/><span>        container_name: lucky</span><br/><span>        restart: always</span><br/><span>        volumes:</span><br/><span>            - '/share/Container/lucky:/goodluck' # 这步必须做，否则重启配置会消失，可直接照抄配置。</span><br/><span>        network_mode: host</span><br/><span># host模式, 同时支持IPv4/IPv6, Liunx系统推荐</span><br/><span># 桥接模式, 只支持IPv4，windows 不推荐使用docker版本</span><br/><span># 我仍然不建议使用默认的桥接模式，如作者所说很容易出问题，已经试验过</span><br/></pre></div></div></div><div><span style=\\\"\\\"><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span style=\\\"\\\" title=\\\"\\\"><img src=\\\":/cf8b337cec8d4bfd95b07d01f3697e06\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><span style=\\\"color: rgb(2, 30, 170); font-weight: bold;\\\">二、配置Lucky</span></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>在浏览器中输入NAS的ip+端口号即可访问lucky。默认账密：666/666。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\" title=\\\"\\\"><span><img src=\\\":/a3651a626a174d06a354f4be606d4ca1\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><strong style=\\\"\\\"><span><br/></span></strong></p><p style=\\\"color: rgb(73,73,73);\\\"><strong style=\\\"\\\"><span>1、修改密码</span></strong></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>点击设置，修改账密，启用外网访问。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p align=\\\"\\\" style=\\\"\\\" title=\\\"\\\"><span style=\\\"\\\"><span><img src=\\\":/cd231807bb334ff38f63f475f4efe34e\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><strong style=\\\"\\\"><span><br/></span></strong></p><p style=\\\"color: rgb(73,73,73);\\\"><strong style=\\\"\\\"><span>2、动态域名（DDNS）</span></strong></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>点击左侧【动态域名】→【添加任务】。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/903892f0ff844f1eb898b9d80dd3077c\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>选择托管服务商，接着点击创建DNSPod Token，获取ID和Token。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/2f89ac7553474600bf9d724d2771a1e2\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>下拉页面，点击【同步记录】，先填写一个主域名（二级域名），回车填写一个三级域名，举例：申请的一个域名为：shegnhuoaihaozhe.com。那么三级域名写成*.shegnhuoaihaozhe.com</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/cc92d937d7074f2a8069f3823a154c88\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>添加完任务后，下图为配置成功的界面。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/ecff2e67f6cc432bb0f60469f62de939\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><strong style=\\\"\\\"><span><br/></span></strong></p><p style=\\\"color: rgb(73,73,73);\\\"><strong style=\\\"\\\"><span>3、SSL/TTS证书</span></strong></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>点击左侧【SSL/TTS证书】→【添加证书】。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/977e2458bb4a4f0780b10ff3ddf5f7d1\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>添加方式选择【ACME】，证书颁发机构选择【</span></span><span style=\\\"\\\"><span>Let's Encrypt</span></span><span style=\\\"\\\"><span>】，上面步骤输入的ID和Token粘贴过来。域名列表和上述填写的一样，DNS强制查询IPV4和DNS查询仅使用TCP，点击启用。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/25643d350f1c412e8426cb31366ab4b3\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>刷新下，证书配置成功。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/7aef32bd2dcf4f8e932a31f8bd060a99\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><strong style=\\\"\\\"><span><br/></span></strong></p><p style=\\\"color: rgb(73,73,73);\\\"><strong style=\\\"\\\"><span>4、web服务</span></strong></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>点击【Web服务】→【添加Web服务规则】</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/9b0354949c734a1983ed47d905a10778\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>填写监听端口号，注意这里的端口号还要到路由器上进行转发，点开TLS的滑块。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/d84930b05e8d46f084202d18bbf9659f\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>点击【默认规则】，服务类型选择关闭连接。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/35c880dd38144be89a6599306fb4dd7a\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>添加子规则</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>前端地址填写xxx.&lt;域名&gt;，例如 nas.shenghuo.com(shenghuo.com为域名，前面的nas.随便填，笔者用来访问NAS，所以填写nas.方便记忆。)</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/593cc3077d694631997e0d86474426c1\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span>完成反代之后，再访问NAS，地址前加了把锁，成功搞定。也可以将lucky或者其他服务进行此操作，操作步骤同添加子规则。</span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><br/></span></span></p><p style=\\\"color: rgb(73,73,73);\\\"><span style=\\\"\\\"><span><img src=\\\":/7ce3c2e251d94b8287fa8c48bfa44026\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" height=\\\"auto\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></span></p></span></div><div><strong style=\\\"-webkit-tap-highlight-color: transparent; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: 0.544px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; background-color: rgb(255, 255, 255); color: rgba(0, 0, 0, 0.85);\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word;\\\">宝子们，希望本期文章能切实帮到你。往期文章也有不少有趣实用的项目，后续会持续输出更精彩好玩的内容！</span></span></strong></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":13828}]"
metadata_diff: {"new":{"id":"4346f02be64942f99a1e65b7e13cb2f7","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","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":1764348822366,"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-28T21:03:51.012Z
created_time: 2025-11-28T21:03:51.012Z
type_: 13