This commit is contained in:
hhhkkk520
2022-06-03 00:51:43 +00:00
parent c07e1f67fe
commit 46028cde43
46 changed files with 47 additions and 47 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ proxy /terminal/* http://ip:8008 {
header_upstream -Origin
}
</code></pre></div></li></ul><br><br><h2 id="在宝塔面板中配置ssl" tabindex="-1">在宝塔面板中配置SSL <a class="header-anchor" href="#在宝塔面板中配置ssl" aria-hidden="true">#</a></h2><p>首先,先暂时关闭反向代理<br> 正如在其他网站中配置SSL证书一样,进入站点设置中的“SSL”,你可以选择自动申请 Let´s Encrypt 证书或手动配置已有的证书<br> 完成SSL的设置后,你需要回到 <a href="https://github.com/settings/developers" target="_blank" rel="noopener 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://cdn.example.com" target="_blank" rel="noopener noreferrer">https://cdn.example.com</a>&quot;&quot;<a href="https://cdn.example.com/oauth2/callback" target="_blank" rel="noopener noreferrer">https://cdn.example.com/oauth2/callback</a>&quot; <strong>不更改此项可能会导致你无法登录面板后台</strong></p><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-hidden="true">#</a></h2><h3 id="我对面板提供的数据修改-增加功能不满意,我想要自己修改-增加数据怎么办?" tabindex="-1">我对面板提供的数据修改/增加功能不满意,我想要自己修改/增加数据怎么办? <a class="header-anchor" href="#我对面板提供的数据修改-增加功能不满意,我想要自己修改-增加数据怎么办?" aria-hidden="true">#</a></h3><p>常见于批量插入 Agent 等需求中,可以直接修改数据库。<br> 请注意,数据库中并非什么都可以修改,错误的修改会导致数据混乱无法启动Dashboard,<strong>请勿随意修改数据库!</strong></p><div class="danger custom-block"><p class="custom-block-title">WARNING</p><p>再重复一遍,<strong>请勿随意修改数据库!</strong></p></div><p>如需要在数据库中修改数据,请先<strong>停止</strong>面板容器再修改。<br> 数据库类型是 sqlite3,位于 <code>/opt/nezha/dashboard/data/sqlite.db</code>,修改前请备份</p><h3 id="数据库中各表-列是什么意思?" tabindex="-1">数据库中各表/列是什么意思? <a class="header-anchor" href="#数据库中各表-列是什么意思?" aria-hidden="true">#</a></h3><p>文档不提供数据库解释,有能力修改数据库的稍加分析应该就足以看懂。</p><h3 id="dashboard-会自动更新吗?" tabindex="-1">Dashboard 会自动更新吗? <a class="header-anchor" href="#dashboard-会自动更新吗?" aria-hidden="true">#</a></h3><p>Agent通常情况下会自动更新,但Dashboard并不会,需要手动更新。</p><h3 id="如何更新-dashboard" tabindex="-1">如何更新 Dashboard <a class="header-anchor" href="#如何更新-dashboard" aria-hidden="true">#</a></h3><p>运行脚本 <code>./nezha.sh</code> ,选择重启面板并更新</p></div></div><footer class="page-footer" data-v-7eddb2c4 data-v-07c132fc><div class="edit" data-v-07c132fc><div class="edit-link" data-v-07c132fc data-v-1ed99556><a class="link" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/guide/dashboard.md" target="_blank" rel="noopener noreferrer" data-v-1ed99556>在GitHub中编辑 <svg class="icon outbound icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-1ed99556><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="updated" data-v-07c132fc><!----></div></footer><div class="next-and-prev-link" data-v-7eddb2c4 data-v-38ede35f><div class="container" data-v-38ede35f><div class="prev" data-v-38ede35f><!----></div><div class="next" data-v-38ede35f><a class="link" href="/guide/agent" data-v-38ede35f><span class="text" data-v-38ede35f>安装 Agent</span><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="icon icon-next" data-v-38ede35f><path d="M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1,1s0.4,1,1,1h11.6l-5.3,5.3c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l7-7C19.8,12.6,19.9,12.5,19.9,12.4z"></path></svg></a></div></div></div><!--[--><!--]--></div></main></div><!----><!--]--></div>
<script>__VP_HASH_MAP__ = JSON.parse("{\"developer_index.md\":\"73745970\",\"developer_l10n.md\":\"84df007d\",\"developer_theme.md\":\"10393f71\",\"en_us_developer_index.md\":\"df68d0e0\",\"en_us_developer_l10n.md\":\"ccda64e7\",\"en_us_developer_theme.md\":\"269a5170\",\"en_us_guide_agent.md\":\"22a9626b\",\"en_us_guide_agentq.md\":\"094fcb6f\",\"en_us_guide_api.md\":\"fde8c0a6\",\"en_us_guide_dashboard.md\":\"0fdfad66\",\"en_us_guide_dashboardq.md\":\"ac04f4d0\",\"en_us_guide_loginq.md\":\"0379f96c\",\"en_us_guide_notifications.md\":\"f2f143b0\",\"en_us_guide_q2.md\":\"bbad7ab9\",\"en_us_guide_q3.md\":\"37e5f372\",\"en_us_guide_q4.md\":\"72447cee\",\"en_us_guide_q5.md\":\"4bd8b06a\",\"en_us_guide_servers.md\":\"f083b70a\",\"en_us_guide_services.md\":\"c8ca2548\",\"en_us_guide_settings.md\":\"25501edb\",\"en_us_guide_tasks.md\":\"5bd4651e\",\"en_us_index.md\":\"3aaf4a98\",\"guide_agent.md\":\"8f6f8013\",\"guide_agentq.md\":\"ebc08c07\",\"guide_api.md\":\"d9d6bcb1\",\"guide_dashboard.md\":\"973acf14\",\"guide_dashboardq.md\":\"484015d6\",\"guide_loginq.md\":\"4107977d\",\"guide_notifications.md\":\"b7a587bd\",\"guide_q1.md\":\"eae9ada6\",\"guide_q2.md\":\"8c395f8c\",\"guide_q3.md\":\"393bb3f1\",\"guide_q4.md\":\"f2a6e087\",\"guide_q5.md\":\"efdadad4\",\"guide_servers.md\":\"236b045e\",\"guide_services.md\":\"218f0dfd\",\"guide_settings.md\":\"3535b319\",\"guide_tasks.md\":\"c3d40967\",\"index.md\":\"b088365b\"}")</script>
<script>__VP_HASH_MAP__ = JSON.parse("{\"developer_index.md\":\"73745970\",\"developer_l10n.md\":\"84df007d\",\"developer_theme.md\":\"10393f71\",\"en_us_developer_index.md\":\"df68d0e0\",\"en_us_developer_l10n.md\":\"ccda64e7\",\"en_us_developer_theme.md\":\"269a5170\",\"en_us_guide_agent.md\":\"22a9626b\",\"en_us_guide_agentq.md\":\"094fcb6f\",\"en_us_guide_api.md\":\"fde8c0a6\",\"en_us_guide_dashboard.md\":\"0fdfad66\",\"en_us_guide_dashboardq.md\":\"ac04f4d0\",\"en_us_guide_loginq.md\":\"0379f96c\",\"en_us_guide_notifications.md\":\"1c51727c\",\"en_us_guide_q2.md\":\"bbad7ab9\",\"en_us_guide_q3.md\":\"37e5f372\",\"en_us_guide_q4.md\":\"72447cee\",\"en_us_guide_q5.md\":\"4bd8b06a\",\"en_us_guide_servers.md\":\"f083b70a\",\"en_us_guide_services.md\":\"c8ca2548\",\"en_us_guide_settings.md\":\"25501edb\",\"en_us_guide_tasks.md\":\"5bd4651e\",\"en_us_index.md\":\"3aaf4a98\",\"guide_agent.md\":\"8f6f8013\",\"guide_agentq.md\":\"ebc08c07\",\"guide_api.md\":\"d9d6bcb1\",\"guide_dashboard.md\":\"973acf14\",\"guide_dashboardq.md\":\"484015d6\",\"guide_loginq.md\":\"4107977d\",\"guide_notifications.md\":\"d42898bb\",\"guide_q1.md\":\"eae9ada6\",\"guide_q2.md\":\"8c395f8c\",\"guide_q3.md\":\"393bb3f1\",\"guide_q4.md\":\"f2a6e087\",\"guide_q5.md\":\"efdadad4\",\"guide_servers.md\":\"236b045e\",\"guide_services.md\":\"218f0dfd\",\"guide_settings.md\":\"3535b319\",\"guide_tasks.md\":\"c3d40967\",\"index.md\":\"b088365b\"}")</script>
<script type="module" async src="/assets/app.c59cf861.js"></script>
</body>