deploy: b4866847f8
This commit is contained in:
1 parent
095c4a9167
commit
90e0abc584
169 files changed
+293
-281
No files matched your search
+8
-5
@@ -10,7 +10,7 @@
|
||||
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
|
||||
<link rel="modulepreload" href="/assets/chunks/framework.44fd0451.js">
|
||||
<link rel="modulepreload" href="/assets/chunks/theme.ccb07a11.js">
|
||||
<link rel="modulepreload" href="/assets/guide_servers.md.572907a5.lean.js">
|
||||
<link rel="modulepreload" href="/assets/guide_servers.md.eaef179a.lean.js">
|
||||
<script src="https://cdn.wwads.cn/js/makemoney.js" async="true"></script>
|
||||
<script id="check-dark-light">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
||||
</head>
|
||||
@@ -25,7 +25,10 @@
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">WebhookRequestBody</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">""</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">WebhookHeaders</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">""</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">MaxRetries</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#F78C6C;">3</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">Profiles</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">null</span></span></code></pre></div><h5 id="enable" tabindex="-1">Enable <a class="header-anchor" href="#enable" aria-label="Permalink to "Enable""></a></h5><p>布尔值,选择是否开启 DDNS 功能。</p><h5 id="provider" tabindex="-1">Provider <a class="header-anchor" href="#provider" aria-label="Permalink to "Provider""></a></h5><p>DDNS 供应商的名称。目前支持 <code>webhook</code>、<code>cloudflare</code> 以及 <code>tencentcloud</code>。</p><h5 id="accessid" tabindex="-1">AccessID <a class="header-anchor" href="#accessid" aria-label="Permalink to "AccessID""></a></h5><p>DDNS 供应商的令牌 ID。 仅适用于供应商 <code>tencentcloud</code>。</p><h5 id="accesssecret" tabindex="-1">AccessSecret <a class="header-anchor" href="#accesssecret" aria-label="Permalink to "AccessSecret""></a></h5><p>DDNS 供应商的令牌 Secret。 仅适用于供应商 <code>cloudflare</code> 及 <code>tencentcloud</code>。</p><h5 id="webhookmethod" tabindex="-1">WebhookMethod <a class="header-anchor" href="#webhookmethod" aria-label="Permalink to "WebhookMethod""></a></h5><p>Webhook 的请求方法。 例如 <code>GET</code>、<code>POST</code>等。 仅适用于供应商 <code>webhook</code>。</p><h5 id="webhookurl" tabindex="-1">WebhookURL <a class="header-anchor" href="#webhookurl" aria-label="Permalink to "WebhookURL""></a></h5><p>Webhook 的请求地址。 仅适用于供应商 <code>webhook</code>。</p><h5 id="webhookrequestbody" tabindex="-1">WebhookRequestBody <a class="header-anchor" href="#webhookrequestbody" aria-label="Permalink to "WebhookRequestBody""></a></h5><p>Webhook 的请求体。 仅适用于供应商 <code>webhook</code>。</p><h5 id="webhookheaders" tabindex="-1">WebhookHeaders <a class="header-anchor" href="#webhookheaders" aria-label="Permalink to "WebhookHeaders""></a></h5><p>Webhook 的请求头。 仅适用于供应商 <code>webhook</code>。</p><h5 id="maxretries" tabindex="-1">MaxRetries <a class="header-anchor" href="#maxretries" aria-label="Permalink to "MaxRetries""></a></h5><p>当请求失败时,重试请求的次数。</p><h5 id="profiles" tabindex="-1">Profiles <a class="header-anchor" href="#profiles" aria-label="Permalink to "Profiles""></a></h5><p>多配置设定。在单配置设定中,此项不进行处理。</p><h4 id="多配置" tabindex="-1">多配置 <a class="header-anchor" href="#多配置" aria-label="Permalink to "多配置""></a></h4><p>当使用多配置时,请将 <code>DDNS.Provider</code> 留空。如 <code>DDNS.Provider</code> 的值不为空,多配置设定将被无视。</p><div class="language-yaml"><button title="Copy Code" class="copy"></button><span class="lang">yaml</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#F07178;">DDNS</span><span style="color:#89DDFF;">:</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">Profiles</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">null</span></span></code></pre></div><h5 id="enable" tabindex="-1">Enable <a class="header-anchor" href="#enable" aria-label="Permalink to "Enable""></a></h5><p>布尔值,选择是否开启 DDNS 功能。</p><h5 id="provider" tabindex="-1">Provider <a class="header-anchor" href="#provider" aria-label="Permalink to "Provider""></a></h5><p>DDNS 供应商的名称。目前支持 <code>webhook</code>、<code>cloudflare</code> 以及 <code>tencentcloud</code>。</p><h5 id="accessid" tabindex="-1">AccessID <a class="header-anchor" href="#accessid" aria-label="Permalink to "AccessID""></a></h5><p>DDNS 供应商的令牌 ID。</p><p>仅适用于供应商 <code>tencentcloud</code>。</p><h5 id="accesssecret" tabindex="-1">AccessSecret <a class="header-anchor" href="#accesssecret" aria-label="Permalink to "AccessSecret""></a></h5><p>DDNS 供应商的令牌 Secret。</p><p>仅适用于供应商 <code>cloudflare</code> 及 <code>tencentcloud</code>。</p><h5 id="webhookmethod" tabindex="-1">WebhookMethod <a class="header-anchor" href="#webhookmethod" aria-label="Permalink to "WebhookMethod""></a></h5><p>Webhook 的请求方法。例如 <code>GET</code>、<code>POST</code>等。</p><p>仅适用于供应商 <code>webhook</code>。</p><h5 id="webhookurl" tabindex="-1">WebhookURL <a class="header-anchor" href="#webhookurl" aria-label="Permalink to "WebhookURL""></a></h5><p>Webhook 的请求地址。</p><p>仅适用于供应商 <code>webhook</code>。</p><h5 id="webhookrequestbody" tabindex="-1">WebhookRequestBody <a class="header-anchor" href="#webhookrequestbody" aria-label="Permalink to "WebhookRequestBody""></a></h5><p>Webhook 的请求体。</p><p>仅适用于供应商 <code>webhook</code>。</p><h5 id="webhookheaders" tabindex="-1">WebhookHeaders <a class="header-anchor" href="#webhookheaders" aria-label="Permalink to "WebhookHeaders""></a></h5><p>Webhook 的请求头。</p><p>仅适用于供应商 <code>webhook</code>。</p><h5 id="maxretries" tabindex="-1">MaxRetries <a class="header-anchor" href="#maxretries" aria-label="Permalink to "MaxRetries""></a></h5><p>当请求失败时,重试请求的次数。</p><h5 id="profiles" tabindex="-1">Profiles <a class="header-anchor" href="#profiles" aria-label="Permalink to "Profiles""></a></h5><p>多配置设定。在单配置设定中,此项不进行处理。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p><code>WebhookURL</code>、<code>WebhookRequestBody</code> 以及<code>WebhookHeaders</code>可以使用如下参数:</p><p><code>{ip}</code> - 主机当前IP</p><p><code>{domain}</code> - ddns域名</p><p><code>{type}</code> - IP类型,可能为"ipv4"和"ipv6"</p><p><code>{access_id}</code> - 凭据1</p><p><code>{access_secret}</code> - 凭据2</p><p>例如以下配置:</p><div class="language-"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">WebhookHeaders: |</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> a:{access_id}</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> b:{access_secret}</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">WebhookRequestBody: '{"domain": "{domain}", "ip": "{ip}", "type": "{type}"}'</span></span></code></pre></div></div><h4 id="多配置" tabindex="-1">多配置 <a class="header-anchor" href="#多配置" aria-label="Permalink to "多配置""></a></h4><p>当使用多配置时,请将 <code>DDNS.Provider</code> 留空。如 <code>DDNS.Provider</code> 的值不为空,多配置设定将被无视。</p><div class="language-yaml"><button title="Copy Code" class="copy"></button><span class="lang">yaml</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#F07178;">DDNS</span><span style="color:#89DDFF;">:</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">Enable</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#FF9CAC;">true</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">MaxRetries</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#F78C6C;">3</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">Profiles</span><span style="color:#89DDFF;">:</span></span>
|
||||
@@ -36,9 +39,9 @@
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">WebhookMethod</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">""</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">WebhookURL</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">""</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">WebhookRequestBody</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">""</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">WebhookHeaders</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">""</span></span></code></pre></div><h5 id="enable-1" tabindex="-1">Enable <a class="header-anchor" href="#enable-1" aria-label="Permalink to "Enable""></a></h5><p>布尔值,选择是否开启 DDNS 功能。</p><h5 id="maxretries-1" tabindex="-1">MaxRetries <a class="header-anchor" href="#maxretries-1" aria-label="Permalink to "MaxRetries""></a></h5><p>当请求失败时,重试请求的次数。</p><h5 id="profiles-1" tabindex="-1">Profiles <a class="header-anchor" href="#profiles-1" aria-label="Permalink to "Profiles""></a></h5><p>多配置设定。</p><h5 id="provider-1" tabindex="-1">Provider <a class="header-anchor" href="#provider-1" aria-label="Permalink to "Provider""></a></h5><p>DDNS 供应商的名称。目前支持 <code>webhook</code>、<code>cloudflare</code> 以及 <code>tencentcloud</code>。</p><h5 id="example" tabindex="-1">example <a class="header-anchor" href="#example" aria-label="Permalink to "example""></a></h5><p>你的 DDNS 配置名,可填任意字符串。</p><h5 id="accessid-1" tabindex="-1">AccessID <a class="header-anchor" href="#accessid-1" aria-label="Permalink to "AccessID""></a></h5><p>DDNS 供应商的令牌 ID。 仅适用于供应商 <code>tencentcloud</code>。</p><h5 id="accesssecret-1" tabindex="-1">AccessSecret <a class="header-anchor" href="#accesssecret-1" aria-label="Permalink to "AccessSecret""></a></h5><p>DDNS 供应商的令牌 Secret。 仅适用于供应商 <code>cloudflare</code> 及 <code>tencentcloud</code>。</p><h5 id="webhookmethod-1" tabindex="-1">WebhookMethod <a class="header-anchor" href="#webhookmethod-1" aria-label="Permalink to "WebhookMethod""></a></h5><p>Webhook 的请求方法。 例如 <code>GET</code>、<code>POST</code>等。 仅适用于供应商 <code>webhook</code>。</p><h5 id="webhookurl-1" tabindex="-1">WebhookURL <a class="header-anchor" href="#webhookurl-1" aria-label="Permalink to "WebhookURL""></a></h5><p>Webhook 的请求地址。 仅适用于供应商 <code>webhook</code>。</p><h5 id="webhookrequestbody-1" tabindex="-1">WebhookRequestBody <a class="header-anchor" href="#webhookrequestbody-1" aria-label="Permalink to "WebhookRequestBody""></a></h5><p>Webhook 的请求体。 仅适用于供应商 <code>webhook</code>。</p><h5 id="webhookheaders-1" tabindex="-1">WebhookHeaders <a class="header-anchor" href="#webhookheaders-1" aria-label="Permalink to "WebhookHeaders""></a></h5><p>Webhook 的请求头。 仅适用于供应商 <code>webhook</code>。</p><h3 id="dashboard-配置" tabindex="-1">Dashboard 配置 <a class="header-anchor" href="#dashboard-配置" aria-label="Permalink to "Dashboard 配置""></a></h3><p>修改好配置文件后,还需要在 Dashboard 中修改服务器设置才能使 DDNS 生效。 DDNS 相关选项说明:</p><ul><li>启用DDNS 为此服务器启用 DDNS 功能。</li><li>启用DDNS IPv4 更新 DDNS 记录时,启用 IPv4 解析。</li><li>启用DDNS IPv6 更新 DDNS 记录时,启用 IPv6 解析。</li><li>DDNS域名 记录指向的域名。</li><li>DDNS配置 在多配置情况下,要使用的 DDNS 配置。</li></ul><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>在 Dashboard 设置中修改配置并保存时,会在 <code>config.yaml</code> 中填入默认配置选项,此时 DDNS 段中会同时存在单配置和多配置的选项。 如需使用单配置,请无视 <code>Profiles</code> 选项相关内容。 如需使用多配置,请将 <code>DDNS.Provider</code> 留空。如 <code>DDNS.Provider</code> 的值不为空,多配置设定将被无视。</p></div><h3 id="查看日志" tabindex="-1">查看日志 <a class="header-anchor" href="#查看日志" aria-label="Permalink to "查看日志""></a></h3><p>在 Dashboard 的日志中,可以看到 DDNS 功能的相关日志,配置正确时,更新 DNS 记录时会有相应的日志记录。</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">dashboard_1</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">2024/03/16</span><span style="color:#A6ACCD;"> </span><span style="color:#F78C6C;">23</span><span style="color:#C3E88D;">:16:25</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">NEZH</span><span style="color:#A6ACCD;">A</span><span style="color:#89DDFF;">>></span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">正在尝试更新域Line truncated
|
||||
<span class="line"><span style="color:#FFCB6B;">dashboard_1</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">2024/03/16</span><span style="color:#A6ACCD;"> </span><span style="color:#F78C6C;">23</span><span style="color:#C3E88D;">:16:28</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">NEZH</span><span style="color:#A6ACCD;">A</span><span style="color:#89DDFF;">>></span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">尝试更新域名</span><span style="color:#89DDFF;">(</span><span style="color:#FFCB6B;">ddns.example.com</span><span style="color:#89DDFF;">)</span><span style="color:#C3E88D;">DDNS成功</span></span></code></pre></div></div></div></main><footer class="VPDocFooter" data-v-c4b0d3cf data-v-face870a><!--[--><!--]--><div class="edit-info" data-v-face870a><div class="edit-link" data-v-face870a><a class="VPLink link edit-link-button" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/guide/servers.md" target="_blank" rel="noreferrer" data-v-face870a data-v-8f4dc553><!--[--><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="edit-link-icon" aria-label="edit icon" data-v-face870a><path d="M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"></path><path d="M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"></path></svg> 在GitHub中编辑<!--]--><!----></a></div><div class="last-updated" data-v-face870a><p class="VPLastUpdated" data-v-face870a data-v-7b3ebfe1>上次更新: <time datetime="2024-04-27T07:38:41.000Z" data-v-7b3ebfe1></time></p></div></div><div class="prev-next" data-v-face870a><div class="pager" data-v-face870a><a class="pager-link prev" href="/guide/agent.html" data-v-face870a><span class="desc" data-v-face870a>Previous page</span><span class="title" data-v-face870a>安装 Agent</span></a></div><div class="has-prev pager" data-v-face870a><a class="pager-link next" href="/guide/services.html" data-v-face870a><span class="desc" data-v-face870a>Next page</span><span class="title" data-v-face870a>服务</span></a></div></div></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-b2cf3e0b data-v-f7fc41f4><div class="container" data-v-f7fc41f4><p class="message" data-v-f7fc41f4>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License</p><p class="copyright" data-v-f7fc41f4>Copyright © 2022-present NezhaHQ</p></div></footer><!--[--><!--]--></div></div>
|
||||
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"3f12f3fd\",\"en_us_case_case1.md\":\"82609aec\",\"en_us_case_case4.md\":\"5c0d1735\",\"case_case4.md\":\"caa9b923\",\"en_us_case_index.md\":\"72f0692e\",\"en_us_guide_agentq.md\":\"863791eb\",\"en_us_case_case3.md\":\"2377e35f\",\"en_us_case_case5.md\":\"284c1cbb\",\"case_case5.md\":\"7edfab11\",\"developer_l10n.md\":\"23271408\",\"en_us_guide_q2.md\":\"2f0c36c9\",\"case_case3.md\":\"0473ce52\",\"en_us_guide_q3.md\":\"1d4c970a\",\"en_us_guide_q4.md\":\"dbc30349\",\"en_us_guide_api.md\":\"a08bd562\",\"case_index.md\":\"3267643e\",\"guide_q2.md\":\"327df321\",\"guide_q3.md\":\"52897eaa\",\"guide_q4.md\":\"adb27020\",\"guide_q5.md\":\"6bb0f0e2\",\"case_case2.md\":\"890e2f4f\",\"en_us_guide_q5.md\":\"d70dacf6\",\"developer_index.md\":\"6aea1e52\",\"en_us_guide_dashboard.md\":\"9c1ca7aa\",\"en_us_developer_index.md\":\"659e057f\",\"en_us_developer_theme.md\":\"bb1c5c43\",\"en_us_guide_agent.md\":\"527d5d6d\",\"en_us_developer_l10n.md\":\"abe203c4\",\"guide_settings.md\":\"2f254aa1\",\"en_us_guide_services.md\":\"91f1181d\",\"en_us_guide_servers.md\":\"075b3e69\",\"en_us_guide_settings.md\":\"e8e2af28\",\"en_us_guide_tasks.md\":\"3ec143d2\",\"en_us_index.md\":\"a0c83286\",\"guide_agent.md\":\"03811f57\",\"en_us_case_case2.md\":\"31ea5dc8\",\"guide_servers.md\":\"572907a5\",\"en_us_guide_notifications.md\":\"9fed901f\",\"index.md\":\"69224d85\",\"guide_agentq.md\":\"c424bf94\",\"guide_q7.md\":\"a7063e8a\",\"developer_theme.md\":\"c8ce94e5\",\"guide_api.md\":\"b730716c\",\"en_us_guide_q6.md\":\"e44ba234\",\"guide_dashboard.md\":\"24b506f5\",\"guide_services.md\":\"3cae478a\",\"guide_dashboardq.md\":\"cba912af\",\"en_us_guide_q7.md\":\"1f4dfc5b\",\"guide_loginq.md\":\"10ae6018\",\"guide_q1.md\":\"349c5e6c\",\"en_us_guide_dashboardq.md\":\"aeda0d7d\",\"guide_notifications.md\":\"0a310427\",\"en_us_guide_loginq.md\":\"fa670416\",\"guide_tasks.md\":\"629effa1\",\"guide_q6.md\":\"d9fd50e3\"}")
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">WebhookHeaders</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">""</span></span></code></pre></div><h5 id="profiles-1" tabindex="-1">Profiles <a class="header-anchor" href="#profiles-1" aria-label="Permalink to "Profiles""></a></h5><p>多配置设定。</p><h5 id="example" tabindex="-1">example <a class="header-anchor" href="#example" aria-label="Permalink to "example""></a></h5><p>你的 DDNS 配置名,可填任意字符串。</p><p>其它选项请参考<a href="#单配置">单配置</a>段。</p><h3 id="dashboard-配置" tabindex="-1">Dashboard 配置 <a class="header-anchor" href="#dashboard-配置" aria-label="Permalink to "Dashboard 配置""></a></h3><p>修改好配置文件后,还需要在 Dashboard 中修改服务器设置才能使 DDNS 生效。 DDNS 相关选项说明:</p><ul><li>启用DDNS 为此服务器启用 DDNS 功能。</li><li>启用DDNS IPv4 更新 DDNS 记录时,启用 IPv4 解析。</li><li>启用DDNS IPv6 更新 DDNS 记录时,启用 IPv6 解析。</li><li>DDNS域名 记录指向的域名。</li><li>DDNS配置 在多配置情况下,要使用的 DDNS 配置。</li></ul><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>在 Dashboard 设置中修改配置并保存时,会在 <code>config.yaml</code> 中填入默认配置选项,此时 DDNS 段中会同时存在单配置和多配置的选项。</p><p>如需使用单配置,请无视 <code>Profiles</code> 选项相关内容。</p><p>如需使用多配置,请将 <code>DDNS.Provider</code> 留空。如 <code>DDNS.Provider</code> 的值不为空,多配置设定将被无视。</p></div><h3 id="查看日志" tabindex="-1">查看日志 <a class="header-anchor" href="#查看日志" aria-label="Permalink to "查看日志""></a></h3><p>在 Dashboard 的日志中,可以看到 DDNS 功能的相关日志,配置正确时,更新 DNS 记录时会有相应的日志记录。</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">dashboard_1</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">2024/03/16</span><span style="color:#A6ACCD;"> </span><span style="color:#F78C6C;">23</span><span style="color:#C3E88D;">:16:25</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">NEZH</span><span style="color:#A6ACCD;">A</span><span style="color:#89DDFF;">>></span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">正在尝试更新域名</span><span style="color:#89DDFF;">(</span><span style="color:#FFCB6B;">ddns.example.com</span><span style="color:#89DDFF;">)</span><span style="color:#C3E88D;">DDNS</span><span style="color:#89DDFF;">(</span><span style="color:#FFCB6B;">1/3</span><span style="color:#89DDFF;">)</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">dashboard_1</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">2024/03/16</span><span style="color:#A6ACCD;"> </span><span style="color:#F78C6C;">23</span><span style="color:#C3E88D;">:16:28</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">NEZH</span><span style="color:#A6ACCD;">A</span><span style="color:#89DDFF;">>></span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">尝试更新域名</span><span style="color:#89DDFF;">(</span><span style="color:#FFCB6B;">ddns.example.com</span><span style="color:#89DDFF;">)</span><span style="color:#C3E88D;">DDNS成功</span></span></code></pre></div></div></div></main><footer class="VPDocFooter" data-v-c4b0d3cf data-v-face870a><!--[--><!--]--><div class="edit-info" data-v-face870a><div class="edit-link" data-v-face870a><a class="VPLink link edit-link-button" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/guide/servers.md" target="_blank" rel="noreferrer" data-v-face870a data-v-8f4dc553><!--[--><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="edit-link-icon" aria-label="edit icon" data-v-face870a><path d="M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"></path><path d="M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"></path></svg> 在GitHub中编辑<!--]--><!----></a></div><div class="last-updated" data-v-face870a><p class="VPLastUpdated" data-v-face870a data-v-7b3ebfe1>上次更新: <time datetime="2024-04-27T09:03:47.000Z" data-v-7b3ebfe1></time></p></div></div><div class="prev-next" data-v-face870a><div class="pager" data-v-face870a><a class="pager-link prev" href="/guide/agent.html" data-v-face870a><span class="desc" data-v-face870a>Previous page</span><span class="title" data-v-face870a>安装 Agent</span></a></div><div class="has-prev pager" data-v-face870a><a class="pager-link next" href="/guide/services.html" data-v-face870a><span class="desc" data-v-face870a>Next page</span><span class="title" data-v-face870a>服务</span></a></div></div></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-b2cf3e0b data-v-f7fc41f4><div class="container" data-v-f7fc41f4><p class="message" data-v-f7fc41f4>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License</p><p class="copyright" data-v-f7fc41f4>Copyright © 2022-present NezhaHQ</p></div></footer><!--[--><!--]--></div></div>
|
||||
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case4.md\":\"d3aa935e\",\"case_case3.md\":\"83b9ba11\",\"case_case2.md\":\"1547ebfd\",\"en_us_guide_dashboardq.md\":\"76328252\",\"en_us_guide_q3.md\":\"3cb80e0e\",\"developer_index.md\":\"7b965cef\",\"en_us_developer_index.md\":\"e7e831e7\",\"guide_dashboardq.md\":\"8d13eec8\",\"case_case5.md\":\"306b6486\",\"en_us_guide_services.md\":\"183ab646\",\"en_us_guide_tasks.md\":\"15e1004d\",\"en_us_index.md\":\"105907b6\",\"en_us_guide_settings.md\":\"cd1b261f\",\"guide_q4.md\":\"3b148b3c\",\"guide_q5.md\":\"c422dcc4\",\"guide_q3.md\":\"40194f09\",\"guide_dashboard.md\":\"b7c12286\",\"guide_agent.md\":\"1839f6e1\",\"guide_api.md\":\"51ea2199\",\"guide_q6.md\":\"6a4be735\",\"guide_q7.md\":\"bcb88303\",\"guide_servers.md\":\"eaef179a\",\"guide_tasks.md\":\"a7fd20d8\",\"guide_services.md\":\"588216a8\",\"guide_settings.md\":\"fffa0c5e\",\"guide_agentq.md\":\"4af3e8f0\",\"en_us_guide_q2.md\":\"c5f4f967\",\"en_us_guide_agentq.md\":\"523d1f21\",\"en_us_guide_api.md\":\"09b0100b\",\"en_us_guide_loginq.md\":\"afafb931\",\"guide_loginq.md\":\"3c7cfac0\",\"en_us_guide_q7.md\":\"fe1d1958\",\"en_us_guide_q5.md\":\"6f3aec01\",\"case_case1.md\":\"3de42691\",\"en_us_case_case3.md\":\"90b00fa2\",\"case_index.md\":\"94b294ae\",\"developer_l10n.md\":\"716f6f9d\",\"en_us_case_case1.md\":\"302ec6e4\",\"developer_theme.md\":\"eb738567\",\"en_us_case_case2.md\":\"fec92f87\",\"en_us_case_case4.md\":\"d648d966\",\"en_us_developer_theme.md\":\"1b908465\",\"en_us_developer_l10n.md\":\"537089e1\",\"en_us_case_index.md\":\"64b44845\",\"en_us_guide_agent.md\":\"5101a067\",\"guide_notifications.md\":\"3723c700\",\"en_us_case_case5.md\":\"1e2f59b8\",\"guide_q1.md\":\"87cb22d7\",\"guide_q2.md\":\"afca8848\",\"en_us_guide_notifications.md\":\"90dbe7e7\",\"en_us_guide_q4.md\":\"7fa17029\",\"en_us_guide_servers.md\":\"43a244d2\",\"index.md\":\"726370e6\",\"en_us_guide_q6.md\":\"965c9f54\",\"en_us_guide_dashboard.md\":\"157e9975\"}")
|
||||
__VP_SITE_DATA__ = JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"VitePress\",\"description\":\"A VitePress site\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nezhahq/nezhahq.github.io\"}],\"algolia\":{\"appId\":\"HP6QF6KMZD\",\"apiKey\":\"fb8bae9ed373d1057e0c07fcf32b3f1a\",\"indexName\":\"nezhahq\"},\"footer\":{\"message\":\"This work is licensed under a <a rel=\\\"license\\\" href=\\\"http://creativecommons.org/licenses/by-nc-sa/4.0/\\\">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License\",\"copyright\":\"Copyright © 2022-present NezhaHQ\"}},\"locales\":{\"root\":{\"lang\":\"zh-CN\",\"label\":\"简体中文\",\"title\":\"哪吒监控\",\"description\":\"哪吒监控是一个轻量化的运维工具\",\"link\":\"/\",\"themeConfig\":{\"lastUpdatedText\":\"上次更新\",\"editLink\":{\"pattern\":\"https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/:path\",\"text\":\"在GitHub中编辑\"},\"nav\":[{\"text\":\"使用指南\",\"link\":\"/\",\"activeMatch\":\"^/$|^/guide/\"},{\"text\":\"社区项目\",\"link\":\"/case/index.html\",\"activeMatch\":\"^/case/\"},{\"text\":\"开发手册\",\"link\":\"/developer/index.html\",\"activeMatch\":\"^/developer/\"}],\"sidebar\":{\"/\":[{\"text\":\"安装手册\",\"items\":[{\"text\":\"安装 Dashboard\",\"link\":\"/guide/dashboard.html\"},{\"text\":\"安装 Agent\",\"link\":\"/guide/agent.html\"}]},{\"text\":\"管理面板配置\",\"items\":[{\"text\":\"服务器\",\"link\":\"/guide/servers.html\"},{\"text\":\"服务\",\"link\":\"/guide/services.html\"},{\"text\":\"任务\",\"link\":\"/guide/tasks.html\"},{\"text\":\"告警\",\"link\":\"/guide/notifications.html\"},{\"text\":\"设置\",\"link\":\"/guide/settings.html\"},{\"text\":\"API\",\"link\":\"/guide/api.html\"}]},{\"text\":\"常见问题\",\"items\":[{\"text\":\"TG api 被墙\",\"link\":\"/guide/q1.html\"},{\"text\":\"Agent 无法启动/上线 查看日志并进行排错的步骤\",\"link\":\"/guide/q2.html\"},{\"text\":\"反向代理 gRPC 端口的步骤\",\"link\":\"/guide/q3.html\"},{\"text\":\"实时通道断开/在线终端连接失败\",\"link\":\"/guide/q4.html\"},{\"text\":\"进行数据迁移、备份和恢复的步骤\",\"link\":\"/guide/q5.html\"},{\"text\":\"设置每月重置流量统计的步骤\",\"link\":\"/guide/q6.html\"},{\"text\":\"自定义 Agent 监控项目的步骤\",\"link\":\"/guide/q7.html\"}]},{\"text\":\"排障指南\",\"items\":[{\"text\":\"Dashboard 相关\",\"link\":\"/guide/dashboardq.html\"},{\"text\":\"Agent 相关\",\"link\":\"/guide/agentq.html\"},{\"text\":\"登录相关\",\"link\":\"/guide/loginq.html\"}]}],\"/guide/\":[{\"text\":\"安装手册\",\"items\":[{\"text\":\"安装 Dashboard\",\"link\":\"/guide/dashboard.html\"},{\"text\":\"安装 Agent\",\"link\":\"/guide/agent.html\"}]},{\"text\":\"管理面板配置\",\"items\":[{\"text\":\"服务器\",\"link\":\"/guide/servers.html\"},{\"text\":\"服务\",\"link\":\"/guide/services.html\"},{\"text\":\"任务\",\"link\":\"/guide/tasks.html\"},{\"text\":\"告警\",\"link\":\"/guide/notifications.html\"},{\"text\":\"设置\",\"link\":\"/guide/settings.html\"},{\"text\":\"API\",\"link\":\"/guide/api.html\"}]},{\"text\":\"常见问题\",\"items\":[{\"text\":\"TG api 被墙\",\"link\":\"/guide/q1.html\"},{\"text\":\"Agent 无法启动/上线 查看日志并进行排错的步骤\",\"link\":\"/guide/q2.html\"},{\"text\":\"反向代理 gRPC 端口的步骤\",\"link\":\"/guide/q3.html\"},{\"text\":\"实时通道断开/在线终端连接失败\",\"link\":\"/guide/q4.html\"},{\"text\":\"进行数据迁移、备份和恢复的步骤\",\"link\":\"/guide/q5.html\"},{\"text\":\"设置每月重置流量统计的步骤\",\"link\":\"/guide/q6.html\"},{\"text\":\"自定义 Agent 监控项目的步骤\",\"link\":\"/guide/q7.html\"}]},{\"text\":\"排障指南\",\"items\":[{\"text\":\"Dashboard 相关\",\"link\":\"/guide/dashboardq.html\"},{\"text\":\"Agent 相关\",\"link\":\"/guide/agentq.html\"},{\"text\":\"登录相关\",\"link\":\"/guide/loginq.html\"}]}],\"/case/\":[{\"text\":\"社区项目\",\"items\":[{\"text\":\"1. 搭建哪吒 Telegram 机器人\",\"link\":\"/case/case1.html\"},{\"text\":\"2. 使用Siri语音运行快捷指令查询服务器状态\",\"link\":\"/case/case2.html\"},{\"text\":\"3. 自建多用户多语言 Telegram 服务器状态查询机器人\",\"link\":\"/case/case3.html\"},{\"text\":\"4. Fake-agent,监控数据作弊器\",\"link\":\"/case/case4.html\"},{\"text\":\"5. 使用 Argo 隧道的哪吒服务端\",\"link\":\"/case/case5.html\"}]}],\"/developer/\":[{\"text\":\"开发手册\",\"items\":[{\"text\":\"创建新主题\",\"link\":\"/developer/theme.html\"},{\"text\":\"l10n\",\"link\":\"/developer/l10n.html\"}]}]}}},\"en_US\":{\"lang\":\"en-US\",\"label\":\"English\",\"title\":\"Nezha Monitoring\",\"description\":\"Nezha Monitoring is a lightweight O&M tool\",\"link\"Line truncated
|
||||
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user