This commit is contained in:
cantoblanco committed 2024-07-19 14:01:46 +00:00
1 parent ed4fbac1ec
commit d7cbf851bf
192 files changed
+312 -311

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@
<link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="modulepreload" href="/assets/chunks/framework.BmdFiWrL.js">
<link rel="modulepreload" href="/assets/chunks/theme.D1TJKLdg.js">
<link rel="modulepreload" href="/assets/guide_dashboard.md.CbLY5d1C.lean.js">
<link rel="modulepreload" href="/assets/guide_dashboard.md.Dmb_JiQ_.lean.js">
<script src="https://cdn.wwads.cn/js/makemoney.js" async></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FDME8GJGTW"></script>
<script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("js",new Date),gtag("config","G-FDME8GJGTW");</script>
@@ -42,8 +42,8 @@
<span class="line"><span>proxy /terminal/* http://ip:8008 {</span></span>
<span class="line"><span> websocket</span></span>
<span class="line"><span> header_upstream -Origin</span></span>
<span class="line"><span>}</span></span></code></pre></div><h2 id="在宝塔面板中配置-ssl" tabindex="-1">在宝塔面板中配置 SSL <a class="header-anchor" href="#在宝塔面板中配置-ssl" aria-label="Permalink to &quot;在宝塔面板中配置 SSL&quot;">​</a></h2><p>首先,先暂时关闭反向代理。<br> 正如在其他网站中配置 SSL 证书一样,进入站点设置中的 “SSL”,你可以选择自动申请 Let´s Encrypt 证书或手动配置已有的证书。<br> 完成 SSL 的设置后,你需要回到 <a href="https://github.com/settings/developers" target="_blank" rel="noreferrer">https://github.com/settings/developers</a> ,编辑之前创建的验证应用程序,将之前我们填入的 &quot;Homepage URL&quot; 和 &quot;Authorization callback URL&quot; 中的域名全部从 <code>http</code> 改为 <code>https</code>,如:&quot;<a href="https://dashboard.example.com" target="_blank" rel="noreferrer">https://dashboard.example.com</a>&quot; 和 &quot;<a href="https://dashboard.example.com/oauth2/callback" target="_blank" rel="noreferrer">https://dashboard.example.com/oauth2/callback</a>&quot; ,<strong>不更改此项可能会导致你无法登录面板后台</strong>。</p><h2 id="更新-dashboard" tabindex="-1">更新 Dashboard <a class="header-anchor" href="#更新-dashboard" aria-label="Permalink to &quot;更新 Dashboard&quot;">​</a></h2><p>运行脚本 <code>./nezha.sh</code> ,选择重启面板并更新。</p></div></div></main><footer class="VPDocFooter" data-v-39a288b8 data-v-d4a0bba5><!--[--><!--]--><div class="edit-info" data-v-d4a0bba5><div class="edit-link" data-v-d4a0bba5><a class="VPLink link vp-external-link-icon no-icon edit-link-button" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/guide/dashboard.md" target="_blank" rel="noreferrer" data-v-d4a0bba5><!--[--><span class="vpi-square-pen edit-link-icon" data-v-d4a0bba5></span> 在GitHub中编辑<!--]--></a></div><div class="last-updated" data-v-d4a0bba5><p class="VPLastUpdated" data-v-d4a0bba5 data-v-7e05ebdb>上次更新: <time datetime="2024-07-19T13:36:10.000Z" data-v-7e05ebdb></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-d4a0bba5><span class="visually-hidden" id="doc-footer-aria-label" data-v-d4a0bba5>Pager</span><div class="pager" data-v-d4a0bba5><!----></div><div class="pager" data-v-d4a0bba5><a class="VPLink link pager-link next" href="/guide/agent.html" data-v-d4a0bba5><!--[--><span class="desc" data-v-d4a0bba5>Next page</span><span class="title" data-v-d4a0bba5>安装 Agent</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-5d98c3a5 data-v-e315a0ad><div class="container" data-v-e315a0ad><p class="message" data-v-e315a0ad>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-e315a0ad>Copyright © 2022-present NezhaHQ</p></div></footer><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"case_case4.md\":\"kUxM5JSb\",\"en_us_guide_loginq.md\":\"CN1TDffi\",\"case_case2.md\":\"CIkJCX5c\",\"developer_theme.md\":\"DWy7ePQP\",\"en_us_case_index.md\":\"CDgLSO15\",\"en_us_case_case1.md\":\"INKTJ_Nt\",\"en_us_case_case2.md\":\"BIPpnoj7\",\"en_us_case_case4.md\":\"Dq7qthD0\",\"en_us_guide_agentq.md\":\"Dw43Mh9d\",\"en_us_case_case3.md\":\"4HVyr9rk\",\"en_us_guide_q10.md\":\"BHHDVGi1\",\"en_us_guide_q2.md\":\"B_-k6EOX\",\"en_us_guide_api.md\":\"B_KhcqId\",\"case_case3.md\":\"ovVedrA6\",\"en_us_guide_q3.md\":\"7Z8uEzLt\",\"en_us_guide_services.md\":\"D8YoKD8m\",\"en_us_guide_tasks.md\":\"D33uhxRE\",\"en_us_guide_notifications.md\":\"BC2bFLoX\",\"guide_servers.md\":\"DrXgMY-4\",\"guide_q9.md\":\"B30K52LX\",\"guide_nat.md\":\"CbGupjDC\",\"en_us_guide_servers.md\":\"B5wHqueJ\",\"guide_tasks.md\":\"6KsIgL2z\",\"guide_q8.md\":\"BzgAD8HF\",\"guide_services.md\":\"DC9iM5JS\",\"guide_q7.md\":\"prnAO1cu\",\"en_us_index.md\":\"U02XrPHs\",\"en_us_guide_dashboardq.md\":\"C1V7sybL\",\"guide_agent.md\":\"BIbr64k2\",\"en_us_developer_index.md\":\"DEwW1Fkv\",\"en_us_guide_agent.md\":\"Co7cFR_R\",\"en_us_guide_q9.md\":\"yjPn_k5r\",\"en_us_guide_q4.md\":\"Cud7Yuo3\",\"en_us_guide_q5.md\":\"CAC12d82\",\"en_us_guide_q6.md\":\"BhLl4jk4\",\"en_us_guide_q8.md\":\"shpXG7_S\",\"en_us_guide_q7.md\":\"DwQOalBs\",\"guide_notifications.md\":\"CksbzMqd\",\"guide_q1.md\":\"Dvax4yf-\",\"guide_q4.md\":\"BCU1AFl2\",\"guide_agentq.md\":\"Bi8PAA-U\",\"guide_q3.md\":\"C3xF3IRO\",\"guide_q2.md\":\"BsWtG-RD\",\"en_us_developer_l10n.md\":\"DPCzookI\",\"en_us_developer_theme.md\":\"BjSoETsH\",\"case_index.md\":\"Cqn6P3M2\",\"developer_l10n.md\":\"BXzI44GI\",\"developer_index.md\":\"nTOrbIoh\",\"guide_dashboard.md\":\"CbLY5d1C\",\"guide_dashboardq.md\":\"B2A-KnFZ\",\"guide_loginq.md\":\"D7QXocnK\",\"guide_q5.md\":\"37LpFBE8\",\"guide_q6.md\":\"CnrDaTLH\",\"case_case5.md\":\"DQ2hAFj_\",\"guide_settings.md\":\"Dti_B_UI\",\"index.md\":\"CUlRUtmY\",\"guide_q10.md\":\"DIN7afH0\",\"en_us_guide_settings.md\":\"8sYFEHAu\",\"case_case1.md\":\"Bzx6Qx1T\",\"en_us_guide_nat.md\":\"Bd98YE5L\",\"en_us_guide_dashboard.md\":\"BZiOlgtb\",\"en_us_case_case5.md\":\"DmRZUvHS\",\"guide_api.md\":\"DvUH9wJ1\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"VitePress\",\"description\":\"A VitePress site\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"logo\":{\"src\":\"/logo.png\",\"width\":24,\"height\":24,\"alt\":\"NezhaLogo\"},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nezhahq/nezhahq.github.io\"},{\"icon\":{\"svg\":\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 496 512\\\"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d=\\\"M248 8C111 8 0 119 0 256S111 504 248 504 496 393 496 256 385 8 248 8zM363 176.7c-3.7 39.2-19.9 134.4-28.1 178.3-3.5 18.6-10.3 24.8-16.9 25.4-14.4 1.3-25.3-9.5-39.3-18.7-21.8-14.3-34.2-23.2-55.3-37.2-24.5-16.1-8.6-25 5.3-39.5 3.7-3.8 67.1-61.5 68.3-66.7 .2-.7 .3-3.1-1.2-4.4s-3.6-.8-5.1-.5q-3.3 .7-104.6 69.1-14.8 10.2-26.9 9.9c-8.9-.2-25.9-5-38.6-9.1-15.5-5-27.9-7.7-26.8-16.3q.8-6.7 18.5-13.7 108.4-47.2 144.6-62.3c68.9-28.6 83.2-33.6 92.5-33.8 2.1 0 6.6 .5 9.6 2.9a10.5 10.5 0 0 1 3.5 6.7A43.8 43.8 0 0 1 363 176.7z\\\"/></svg>\"},\"link\":\"https://t.me/nezhanews\"}],\"search\":{\"provider\":\"algolia\",\"options\":{\"appId\":\"HP6QF6KMZD\",\"apiKey\":\"fb8bae9ed373d1057e0c07fcf32b3f1a\",\"indexName\":\"nezhahq\",\"locales\":{\"root\":{\"placeholder\":\"搜索文档\",\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"searchBox\":{\"resetButtonTitle\":\"清除查询条件\",\"resetButtonAriaLabel\":\"清除查询条件\",\"cancelButtonText\":\"取消\",\"cancelButtonAriaLabel\":\"取消\"},\"startScreen\":{\"recentSearchesTitle\":\"搜索历史\",\"noRecentSearchesText\":\"没有搜索历史\",\"saveRecentSearchButtonTitle\":\"保存至搜索历史\",\"removeRecentSearchButtonTitle\":\"从搜索历史中移除\",\"favoriteSearchesTitle\":\"收藏\",\"removeFavoriteSearchButtonTitle\":\"从收藏中移除\"},\"errorScreen\":{\"titleText\":\"无法获取结果\",\"helpText\":\"你可能需要检查你的网络连接\"},\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"searchByText\":\"搜索提供者\"},\"noResultsScreen\":{\"noResultsText\":\"无法找到相关结果\",\"suggestedQueryText\":\"你可以尝试查询\",\"reportMissingResultsText\":\"你认为该查询应该有结果?\",\"reportMissingResultsLinkText\":\"点击反馈\"}}}}}}},\"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 Line truncated
<span class="line"><span>}</span></span></code></pre></div><h2 id="在宝塔面板中配置-ssl" tabindex="-1">在宝塔面板中配置 SSL <a class="header-anchor" href="#在宝塔面板中配置-ssl" aria-label="Permalink to &quot;在宝塔面板中配置 SSL&quot;">​</a></h2><p>首先,先暂时关闭反向代理。<br> 正如在其他网站中配置 SSL 证书一样,进入站点设置中的 “SSL”,你可以选择自动申请 Let´s Encrypt 证书或手动配置已有的证书。<br> 完成 SSL 的设置后,你需要回到 <a href="https://github.com/settings/developers" target="_blank" rel="noreferrer">https://github.com/settings/developers</a> ,编辑之前创建的验证应用程序,将之前我们填入的 &quot;Homepage URL&quot; 和 &quot;Authorization callback URL&quot; 中的域名全部从 <code>http</code> 改为 <code>https</code>,如:&quot;<a href="https://dashboard.example.com" target="_blank" rel="noreferrer">https://dashboard.example.com</a>&quot; 和 &quot;<a href="https://dashboard.example.com/oauth2/callback" target="_blank" rel="noreferrer">https://dashboard.example.com/oauth2/callback</a>&quot; ,<strong>不更改此项可能会导致你无法登录面板后台</strong>。</p><h2 id="更新-dashboard" tabindex="-1">更新 Dashboard <a class="header-anchor" href="#更新-dashboard" aria-label="Permalink to &quot;更新 Dashboard&quot;">​</a></h2><p>运行脚本 <code>./nezha.sh</code> ,选择重启面板并更新。</p></div></div></main><footer class="VPDocFooter" data-v-39a288b8 data-v-d4a0bba5><!--[--><!--]--><div class="edit-info" data-v-d4a0bba5><div class="edit-link" data-v-d4a0bba5><a class="VPLink link vp-external-link-icon no-icon edit-link-button" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/guide/dashboard.md" target="_blank" rel="noreferrer" data-v-d4a0bba5><!--[--><span class="vpi-square-pen edit-link-icon" data-v-d4a0bba5></span> 在GitHub中编辑<!--]--></a></div><div class="last-updated" data-v-d4a0bba5><p class="VPLastUpdated" data-v-d4a0bba5 data-v-7e05ebdb>上次更新: <time datetime="2024-07-19T14:01:04.000Z" data-v-7e05ebdb></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-d4a0bba5><span class="visually-hidden" id="doc-footer-aria-label" data-v-d4a0bba5>Pager</span><div class="pager" data-v-d4a0bba5><!----></div><div class="pager" data-v-d4a0bba5><a class="VPLink link pager-link next" href="/guide/agent.html" data-v-d4a0bba5><!--[--><span class="desc" data-v-d4a0bba5>Next page</span><span class="title" data-v-d4a0bba5>安装 Agent</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-5d98c3a5 data-v-e315a0ad><div class="container" data-v-e315a0ad><p class="message" data-v-e315a0ad>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-e315a0ad>Copyright © 2022-present NezhaHQ</p></div></footer><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"en_us_case_case1.md\":\"BdGNGapE\",\"en_us_case_case4.md\":\"g7y5wiEk\",\"en_us_guide_nat.md\":\"CzlF9VDA\",\"en_us_guide_api.md\":\"C8cQYDG_\",\"en_us_case_case3.md\":\"ezyOJJPk\",\"en_us_guide_agent.md\":\"D5bm8ZIg\",\"en_us_developer_theme.md\":\"G5E15m8e\",\"en_us_developer_index.md\":\"BjuWmQMo\",\"en_us_developer_l10n.md\":\"fMTenfUY\",\"case_case1.md\":\"BSVeBrq8\",\"case_case3.md\":\"qlsPOfFr\",\"en_us_guide_dashboardq.md\":\"B91kX22e\",\"case_case4.md\":\"CDE-Uum4\",\"en_us_index.md\":\"A2hmPX-g\",\"guide_servers.md\":\"CZX3IhGt\",\"guide_q7.md\":\"B1jXr034\",\"guide_q8.md\":\"8ANLW82M\",\"guide_q9.md\":\"BHMp-CDO\",\"guide_q1.md\":\"CEa9Nqot\",\"guide_dashboardq.md\":\"CBOoHQj7\",\"case_index.md\":\"9DJM2gBc\",\"guide_q10.md\":\"DpqPciUa\",\"en_us_case_case2.md\":\"DRfchJ43\",\"en_us_guide_q10.md\":\"BpDXe6TE\",\"en_us_guide_q2.md\":\"CDnKPb4f\",\"en_us_guide_q4.md\":\"BG0EUWfw\",\"en_us_guide_q3.md\":\"CLhVyLvf\",\"en_us_guide_q5.md\":\"DQUqnhrO\",\"developer_l10n.md\":\"Ciyo39r6\",\"en_us_guide_loginq.md\":\"89ARuCSS\",\"en_us_guide_dashboard.md\":\"DoiN6N0O\",\"en_us_case_case5.md\":\"DocKo7yj\",\"case_case2.md\":\"rRb4z8fI\",\"en_us_guide_agentq.md\":\"TpIUGbi4\",\"en_us_guide_notifications.md\":\"DwbnYfcO\",\"en_us_guide_q9.md\":\"DyUpU-np\",\"en_us_guide_q7.md\":\"kTB1Y6sm\",\"guide_services.md\":\"ZPScp2yz\",\"en_us_guide_servers.md\":\"BAcGNfli\",\"en_us_guide_services.md\":\"DIyCgSyh\",\"guide_agent.md\":\"BCiglRGK\",\"guide_settings.md\":\"DF_exE6i\",\"guide_api.md\":\"B8TuSuJG\",\"guide_q3.md\":\"MLiY3zlQ\",\"index.md\":\"DHI8eeNj\",\"guide_notifications.md\":\"DluYs3PM\",\"guide_tasks.md\":\"DHgGnNtv\",\"guide_q2.md\":\"DImxKrj9\",\"guide_loginq.md\":\"BVDkD79l\",\"en_us_case_index.md\":\"DY9ef7ol\",\"guide_q4.md\":\"CddjZtyC\",\"en_us_guide_q6.md\":\"TybYE4x2\",\"en_us_guide_q8.md\":\"DDOjjKKz\",\"guide_dashboard.md\":\"Dmb_JiQ_\",\"en_us_guide_tasks.md\":\"rL2tfsXQ\",\"guide_agentq.md\":\"DCCGrCZn\",\"guide_q5.md\":\"wUrGyX62\",\"case_case5.md\":\"34NV0Z3N\",\"en_us_guide_settings.md\":\"BRnjP3cb\",\"developer_index.md\":\"Dahhp9Pa\",\"guide_q6.md\":\"BDUR79Go\",\"guide_nat.md\":\"ChQQ39I1\",\"developer_theme.md\":\"QdygKZAI\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"VitePress\",\"description\":\"A VitePress site\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"logo\":{\"src\":\"/logo.png\",\"width\":24,\"height\":24,\"alt\":\"NezhaLogo\"},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nezhahq/nezhahq.github.io\"},{\"icon\":{\"svg\":\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 496 512\\\"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d=\\\"M248 8C111 8 0 119 0 256S111 504 248 504 496 393 496 256 385 8 248 8zM363 176.7c-3.7 39.2-19.9 134.4-28.1 178.3-3.5 18.6-10.3 24.8-16.9 25.4-14.4 1.3-25.3-9.5-39.3-18.7-21.8-14.3-34.2-23.2-55.3-37.2-24.5-16.1-8.6-25 5.3-39.5 3.7-3.8 67.1-61.5 68.3-66.7 .2-.7 .3-3.1-1.2-4.4s-3.6-.8-5.1-.5q-3.3 .7-104.6 69.1-14.8 10.2-26.9 9.9c-8.9-.2-25.9-5-38.6-9.1-15.5-5-27.9-7.7-26.8-16.3q.8-6.7 18.5-13.7 108.4-47.2 144.6-62.3c68.9-28.6 83.2-33.6 92.5-33.8 2.1 0 6.6 .5 9.6 2.9a10.5 10.5 0 0 1 3.5 6.7A43.8 43.8 0 0 1 363 176.7z\\\"/></svg>\"},\"link\":\"https://t.me/nezhanews\"}],\"search\":{\"provider\":\"algolia\",\"options\":{\"appId\":\"HP6QF6KMZD\",\"apiKey\":\"fb8bae9ed373d1057e0c07fcf32b3f1a\",\"indexName\":\"nezhahq\",\"locales\":{\"root\":{\"placeholder\":\"搜索文档\",\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"searchBox\":{\"resetButtonTitle\":\"清除查询条件\",\"resetButtonAriaLabel\":\"清除查询条件\",\"cancelButtonText\":\"取消\",\"cancelButtonAriaLabel\":\"取消\"},\"startScreen\":{\"recentSearchesTitle\":\"搜索历史\",\"noRecentSearchesText\":\"没有搜索历史\",\"saveRecentSearchButtonTitle\":\"保存至搜索历史\",\"removeRecentSearchButtonTitle\":\"从搜索历史中移除\",\"favoriteSearchesTitle\":\"收藏\",\"removeFavoriteSearchButtonTitle\":\"从收藏中移除\"},\"errorScreen\":{\"titleText\":\"无法获取结果\",\"helpText\":\"你可能需要检查你的网络连接\"},\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"searchByText\":\"搜索提供者\"},\"noResultsScreen\":{\"noResultsText\":\"无法找到相关结果\",\"suggestedQueryText\":\"你可以尝试查询\",\"reportMissingResultsText\":\"你认为该查询应该有结果?\",\"reportMissingResultsLinkText\":\"点击反馈\"}}}}}}},\"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 Line truncated
</body>
</html>