This commit is contained in:
naiba committed 2023-10-26 15:44:18 +00:00
1 parent 0df89bd9ca
commit 79d942e802
171 files changed
+277 -277

No files matched your search

+3 -3
View File
@@ -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/en_US_guide_dashboard.md.b1edb021.lean.js">
<link rel="modulepreload" href="/assets/en_US_guide_dashboard.md.3cc0021a.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>
@@ -35,8 +35,8 @@
<span class="line"><span style="color:#A6ACCD;">proxy /terminal/* http://ip:8008 {</span></span>
<span class="line"><span style="color:#A6ACCD;"> websocket</span></span>
<span class="line"><span style="color:#A6ACCD;"> header_upstream -Origin</span></span>
<span class="line"><span style="color:#A6ACCD;">}</span></span></code></pre></div></li></ul><br><br><h2 id="configuring-ssl-in-the-aapanel" tabindex="-1">Configuring SSL in the aaPanel <a class="header-anchor" href="#configuring-ssl-in-the-aapanel" aria-label="Permalink to &quot;Configuring SSL in the aaPanel&quot;">​</a></h2><p>First, temporarily disable the reverse proxy<br> As with other websites, you can choose to automatically apply for a Let´s Encrypt certificate or manually configure an existing certificate by going to &quot;SSL&quot; in the site settings<br> After you finish setting up SSL, you need to go back to <a href="https://github.com/settings/developers" target="_blank" rel="noreferrer">https://github.com/settings/developers</a> and edit the authentication application you created before, change all the domain names in the &quot;Homepage URL&quot; and &quot;Authorization callback URL&quot; you filled in before from <code>http</code> to <code>https</code>, such as: &quot;<a href="https://cdn.example.com" target="_blank" rel="noreferrer">https://cdn.example.com</a>&quot; and &quot;<a href="https://cdn.example.com/oauth2/callback" target="_blank" rel="noreferrer">https://cdn.example.com/oauth2/callback</a>&quot;, <strong>If you don&#39;t change these links, you may not be able to log into the admin panel</strong></p><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-label="Permalink to &quot;FAQ&quot;">​</a></h2><h3 id="what-should-i-do-if-terminal-or-ws-cannot-be-connected-after-https-is-enabled" tabindex="-1">What should I do if /terminal or /ws cannot be connected after HTTPS is enabled? <a class="header-anchor" href="#what-should-i-do-if-terminal-or-ws-cannot-be-connected-after-https-is-enabled" aria-label="Permalink to &quot;What should I do if /terminal or /ws cannot be connected after HTTPS is enabled?&quot;">​</a></h3><p>It is often caused by incomplete certificates. Please add -d to the agent running parameters. If there is x509: certificate signed by unknown authority in the log, replacing the complete certificate can solve the problem 100%.</p><h3 id="i-am-not-satisfied-with-the-data-modification-or-addition-function-provided-by-the-dashboard-what-if-i-want-to-modify-or-add-data-myself" tabindex="-1">I am not satisfied with the data modification or addition function provided by the Dashboard, what if I want to modify or add data myself? <a class="header-anchor" href="#i-am-not-satisfied-with-the-data-modification-or-addition-function-provided-by-the-dashboard-what-if-i-want-to-modify-or-add-data-myself" aria-label="Permalink to &quot;I am not satisfied with the data modification or addition function provided by the Dashboard, what if I want to modify or add data myself?&quot;">​</a></h3><p>Commonly used in requirements such as batch installation of Agents, where you can modify the database directly.<br> Please note that not everything can be modified in the database, wrong modification will lead to data confusion and failure to start Dashboard, <strong>please do not modify the database at will!</strong></p><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>Again, <strong>please do not modify the database at will!</strong></p></div><p>If you need to modify the data in the database, please <strong>stop</strong> the Dashboard container before modifying it.<br> The database type is sqlite3, located in <code>/opt/nezha/dashboard/data/sqlite.db</code>, please backup before modifying the data</p><h3 id="what-are-each-table-or-column-in-the-database" tabindex="-1">What are each table or column in the database? <a class="header-anchor" href="#what-are-each-table-or-column-in-the-database" aria-label="Permalink to &quot;What are each table or column in the database?&quot;">​</a></h3><p>The documentation does not provide an explanation of the database. If you have the ability to modify the database, you should be able to read it with a little thinking.</p><h3 id="does-dashboard-update-automatically" tabindex="-1">Does Dashboard update automatically? <a class="header-anchor" href="#does-dashboard-update-automatically" aria-label="Permalink to &quot;Does Dashboard update automatically?&quot;">​</a></h3><p>The Agent normally updates automatically, but the Dashboard does not and needs to be updated manually.</p><h3 id="how-do-i-update-the-dashboard" tabindex="-1">How do I update the Dashboard? <a class="header-anchor" href="#how-do-i-update-the-dashboard" aria-label="Permalink to &quot;How do I update the Dashboard?&quot;">​</a></h3><p>Run the script <code>. /nezha.sh</code> and select restart Dashboard and update</p></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/en_US/guide/dashboard.md" target="_blank" rel="nLine truncated
<script>__VP_HASH_MAP__ = JSON.parse("{\"en_us_case_case3.md\":\"63f1f83e\",\"en_us_case_case4.md\":\"0599b4cb\",\"en_us_case_case5.md\":\"75c022d0\",\"en_us_case_index.md\":\"e1cdf48e\",\"en_us_developer_index.md\":\"7cc3c922\",\"en_us_guide_agentq.md\":\"16d0b37a\",\"en_us_case_case1.md\":\"bd238d57\",\"case_case4.md\":\"b879d03c\",\"case_case1.md\":\"9636467d\",\"en_us_developer_l10n.md\":\"741f9b21\",\"developer_index.md\":\"6deb69e0\",\"developer_l10n.md\":\"a1c43339\",\"en_us_case_case2.md\":\"9f71e24b\",\"en_us_guide_api.md\":\"a594b6e2\",\"case_index.md\":\"349818a1\",\"en_us_developer_theme.md\":\"72c4fa5f\",\"en_us_guide_agent.md\":\"131ad39b\",\"case_case3.md\":\"ec96e142\",\"case_case2.md\":\"ddac47f2\",\"developer_theme.md\":\"7e9c4737\",\"en_us_guide_dashboardq.md\":\"f5a177c3\",\"case_case5.md\":\"7373a3b6\",\"en_us_guide_dashboard.md\":\"b1edb021\",\"en_us_guide_loginq.md\":\"8c9ac10b\",\"en_us_guide_q2.md\":\"62f0a52b\",\"en_us_guide_notifications.md\":\"1e3309fc\",\"guide_q3.md\":\"c6ded44e\",\"guide_q5.md\":\"b1f86ecd\",\"guide_q2.md\":\"eb3ae7c1\",\"guide_q1.md\":\"c8530d1c\",\"guide_q7.md\":\"07e67e61\",\"guide_q6.md\":\"573d3b14\",\"guide_settings.md\":\"207114a9\",\"guide_services.md\":\"72cc52c5\",\"guide_servers.md\":\"d1def130\",\"index.md\":\"df6b95bf\",\"guide_q4.md\":\"fede05c7\",\"en_us_guide_services.md\":\"a60b7cbd\",\"en_us_guide_settings.md\":\"0f8102b9\",\"en_us_guide_tasks.md\":\"67055555\",\"en_us_index.md\":\"0b5605cb\",\"guide_agentq.md\":\"1adcb3de\",\"guide_api.md\":\"e60064a2\",\"guide_dashboardq.md\":\"cc10e28e\",\"en_us_guide_q3.md\":\"0cfdd667\",\"guide_loginq.md\":\"bd9f6604\",\"guide_notifications.md\":\"81d5e210\",\"guide_dashboard.md\":\"53a64459\",\"en_us_guide_q6.md\":\"81b709fc\",\"guide_agent.md\":\"1039f270\",\"en_us_guide_q4.md\":\"eb1310a0\",\"guide_tasks.md\":\"c57aabf6\",\"en_us_guide_q5.md\":\"a7f4e653\",\"en_us_guide_q7.md\":\"5e98f929\",\"en_us_guide_servers.md\":\"abbee449\"}")
<span class="line"><span style="color:#A6ACCD;">}</span></span></code></pre></div></li></ul><br><br><h2 id="configuring-ssl-in-the-aapanel" tabindex="-1">Configuring SSL in the aaPanel <a class="header-anchor" href="#configuring-ssl-in-the-aapanel" aria-label="Permalink to &quot;Configuring SSL in the aaPanel&quot;">​</a></h2><p>First, temporarily disable the reverse proxy<br> As with other websites, you can choose to automatically apply for a Let´s Encrypt certificate or manually configure an existing certificate by going to &quot;SSL&quot; in the site settings<br> After you finish setting up SSL, you need to go back to <a href="https://github.com/settings/developers" target="_blank" rel="noreferrer">https://github.com/settings/developers</a> and edit the authentication application you created before, change all the domain names in the &quot;Homepage URL&quot; and &quot;Authorization callback URL&quot; you filled in before from <code>http</code> to <code>https</code>, such as: &quot;<a href="https://cdn.example.com" target="_blank" rel="noreferrer">https://cdn.example.com</a>&quot; and &quot;<a href="https://cdn.example.com/oauth2/callback" target="_blank" rel="noreferrer">https://cdn.example.com/oauth2/callback</a>&quot;, <strong>If you don&#39;t change these links, you may not be able to log into the admin panel</strong></p><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-label="Permalink to &quot;FAQ&quot;">​</a></h2><h3 id="what-should-i-do-if-terminal-or-ws-cannot-be-connected-after-https-is-enabled" tabindex="-1">What should I do if /terminal or /ws cannot be connected after HTTPS is enabled? <a class="header-anchor" href="#what-should-i-do-if-terminal-or-ws-cannot-be-connected-after-https-is-enabled" aria-label="Permalink to &quot;What should I do if /terminal or /ws cannot be connected after HTTPS is enabled?&quot;">​</a></h3><p>It is often caused by incomplete certificates. Please add -d to the agent running parameters. If there is x509: certificate signed by unknown authority in the log, replacing the complete certificate can solve the problem 100%.</p><h3 id="i-am-not-satisfied-with-the-data-modification-or-addition-function-provided-by-the-dashboard-what-if-i-want-to-modify-or-add-data-myself" tabindex="-1">I am not satisfied with the data modification or addition function provided by the Dashboard, what if I want to modify or add data myself? <a class="header-anchor" href="#i-am-not-satisfied-with-the-data-modification-or-addition-function-provided-by-the-dashboard-what-if-i-want-to-modify-or-add-data-myself" aria-label="Permalink to &quot;I am not satisfied with the data modification or addition function provided by the Dashboard, what if I want to modify or add data myself?&quot;">​</a></h3><p>Commonly used in requirements such as batch installation of Agents, where you can modify the database directly.<br> Please note that not everything can be modified in the database, wrong modification will lead to data confusion and failure to start Dashboard, <strong>please do not modify the database at will!</strong></p><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>Again, <strong>please do not modify the database at will!</strong></p></div><p>If you need to modify the data in the database, please <strong>stop</strong> the Dashboard container before modifying it.<br> The database type is sqlite3, located in <code>/opt/nezha/dashboard/data/sqlite.db</code>, please backup before modifying the data</p><h3 id="what-are-each-table-or-column-in-the-database" tabindex="-1">What are each table or column in the database? <a class="header-anchor" href="#what-are-each-table-or-column-in-the-database" aria-label="Permalink to &quot;What are each table or column in the database?&quot;">​</a></h3><p>The documentation does not provide an explanation of the database. If you have the ability to modify the database, you should be able to read it with a little thinking.</p><h3 id="does-dashboard-update-automatically" tabindex="-1">Does Dashboard update automatically? <a class="header-anchor" href="#does-dashboard-update-automatically" aria-label="Permalink to &quot;Does Dashboard update automatically?&quot;">​</a></h3><p>The Agent normally updates automatically, but the Dashboard does not and needs to be updated manually.</p><h3 id="how-do-i-update-the-dashboard" tabindex="-1">How do I update the Dashboard? <a class="header-anchor" href="#how-do-i-update-the-dashboard" aria-label="Permalink to &quot;How do I update the Dashboard?&quot;">​</a></h3><p>Run the script <code>. /nezha.sh</code> and select restart Dashboard and update</p></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/en_US/guide/dashboard.md" target="_blank" rel="nLine truncated
<script>__VP_HASH_MAP__ = JSON.parse("{\"developer_theme.md\":\"2c3f159f\",\"en_us_case_case1.md\":\"a91f540d\",\"en_us_case_case2.md\":\"f6dd26ff\",\"en_us_case_case3.md\":\"2d18f0db\",\"en_us_case_case4.md\":\"ccb15ad3\",\"en_us_case_index.md\":\"a39cc88b\",\"en_us_developer_index.md\":\"bf3e515a\",\"en_us_developer_l10n.md\":\"b9c02869\",\"en_us_developer_theme.md\":\"dee4e013\",\"en_us_guide_agentq.md\":\"30f39c02\",\"en_us_guide_api.md\":\"b16103f8\",\"en_us_guide_dashboard.md\":\"3cc0021a\",\"en_us_guide_dashboardq.md\":\"6d0e242b\",\"en_us_guide_loginq.md\":\"7cbc69ad\",\"en_us_guide_notifications.md\":\"545de155\",\"en_us_guide_q4.md\":\"67db2cbd\",\"en_us_guide_q5.md\":\"7f6e04d4\",\"en_us_guide_q6.md\":\"dba5267a\",\"en_us_guide_q7.md\":\"e61c0a23\",\"en_us_guide_services.md\":\"6fec2f3d\",\"en_us_guide_tasks.md\":\"1ea501e8\",\"en_us_index.md\":\"f9a5bc13\",\"guide_agent.md\":\"f52833ad\",\"guide_agentq.md\":\"9be55476\",\"guide_api.md\":\"7a222ed7\",\"guide_dashboard.md\":\"2972db90\",\"guide_dashboardq.md\":\"74dfbf6e\",\"guide_loginq.md\":\"2906d3ff\",\"guide_notifications.md\":\"0d1686ff\",\"guide_q1.md\":\"81ae0758\",\"guide_q2.md\":\"b588db9c\",\"guide_q3.md\":\"cefef2ad\",\"guide_q4.md\":\"ed911d3e\",\"guide_q5.md\":\"5f7c7008\",\"guide_q6.md\":\"1ec21718\",\"guide_q7.md\":\"647987c6\",\"guide_servers.md\":\"818b7785\",\"guide_settings.md\":\"8f33e9d2\",\"guide_tasks.md\":\"cba9d13a\",\"index.md\":\"3e7f3101\",\"en_us_case_case5.md\":\"1dd4e304\",\"en_us_guide_q2.md\":\"e1dab069\",\"en_us_guide_q3.md\":\"41a969d2\",\"case_case1.md\":\"86f6ebaa\",\"case_case3.md\":\"22f9493d\",\"case_case2.md\":\"26c353ad\",\"case_case5.md\":\"f67aa872\",\"developer_index.md\":\"aa052f9f\",\"case_index.md\":\"5872fb68\",\"case_case4.md\":\"88e5e1f3\",\"guide_services.md\":\"365436a1\",\"en_us_guide_servers.md\":\"c6bbe82d\",\"en_us_guide_settings.md\":\"215bc7fd\",\"en_us_guide_agent.md\":\"087eb20d\",\"developer_l10n.md\":\"f5974325\"}")
__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 OLine truncated
</body>