diff --git a/404.html b/404.html index 0d5b5b86..a9ea0e18 100644 --- a/404.html +++ b/404.html @@ -6,9 +6,9 @@ 404 | 哪吒监控 - + - + @@ -20,7 +20,7 @@
- + \ No newline at end of file diff --git a/assets/app.DueBKz8E.js b/assets/app.Bt7GXCP9.js similarity index 95% rename from assets/app.DueBKz8E.js rename to assets/app.Bt7GXCP9.js index 57523d87..62fa2d7d 100644 --- a/assets/app.DueBKz8E.js +++ b/assets/app.Bt7GXCP9.js @@ -1 +1 @@ -import{U as o,a5 as p,a6 as u,a7 as l,a8 as c,a9 as f,aa as d,ab as m,ac as h,ad as g,ae as A,d as P,u as v,y,x as w,af as C,ag as R,ah as b,a3 as E}from"./chunks/framework.BmdFiWrL.js";import{R as S}from"./chunks/theme.pKFrknK6.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(S),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return y(()=>{w(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&C(),R(),b(),s.setup&&s.setup(),()=>E(s.Layout)}});async function _(){globalThis.__VITEPRESS__=!0;const e=D(),a=x();a.provide(u,e);const t=l(e.route);return a.provide(c,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function x(){return h(T)}function D(){let e=o,a;return g(t=>{let n=A(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&_().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{_ as createApp}; +import{U as o,a5 as p,a6 as u,a7 as l,a8 as c,a9 as f,aa as d,ab as m,ac as h,ad as g,ae as A,d as P,u as v,y,x as w,af as C,ag as R,ah as b,a3 as E}from"./chunks/framework.BmdFiWrL.js";import{R as S}from"./chunks/theme.D1TJKLdg.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(S),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return y(()=>{w(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&C(),R(),b(),s.setup&&s.setup(),()=>E(s.Layout)}});async function _(){globalThis.__VITEPRESS__=!0;const e=D(),a=x();a.provide(u,e);const t=l(e.route);return a.provide(c,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function x(){return h(T)}function D(){let e=o,a;return g(t=>{let n=A(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&_().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{_ as createApp}; diff --git a/assets/case_case1.md.7flQRwLq.js b/assets/case_case1.md.ik9QZ-1U.js similarity index 95% rename from assets/case_case1.md.7flQRwLq.js rename to assets/case_case1.md.ik9QZ-1U.js index ae8b2960..5f2f0e21 100644 --- a/assets/case_case1.md.7flQRwLq.js +++ b/assets/case_case1.md.ik9QZ-1U.js @@ -1 +1 @@ -import{_ as e,c as t,o as a,a4 as r}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"自建一个TG机器人来查询服务器信息","description":"","frontmatter":{},"headers":[],"relativePath":"case/case1.md","filePath":"case/case1.md","lastUpdated":1720181562000}'),o={name:"case/case1.md"},_=r('

自建一个TG机器人来查询服务器信息

贡献者:

项目地址:nezha_api_tgbot

镜像备份(非实时更新):nezha_api_tgbot
机器人可以通过API向面板请求服务器状态信息,得到信息后发送给用户
你可以搭建此机器人来方便地查看指定服务器的当前状态且不需要打开面板

',5),s=[_];function i(n,c,p,h,l,d){return a(),t("div",null,s)}const g=e(o,[["render",i]]);export{b as __pageData,g as default}; +import{_ as e,c as t,o as a,a4 as r}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"自建一个TG机器人来查询服务器信息","description":"","frontmatter":{},"headers":[],"relativePath":"case/case1.md","filePath":"case/case1.md","lastUpdated":1720452113000}'),o={name:"case/case1.md"},_=r('

自建一个TG机器人来查询服务器信息

贡献者:

项目地址:nezha_api_tgbot

镜像备份(非实时更新):nezha_api_tgbot
机器人可以通过API向面板请求服务器状态信息,得到信息后发送给用户
你可以搭建此机器人来方便地查看指定服务器的当前状态且不需要打开面板

',5),s=[_];function i(n,c,p,h,l,d){return a(),t("div",null,s)}const g=e(o,[["render",i]]);export{b as __pageData,g as default}; diff --git a/assets/case_case1.md.7flQRwLq.lean.js b/assets/case_case1.md.ik9QZ-1U.lean.js similarity index 85% rename from assets/case_case1.md.7flQRwLq.lean.js rename to assets/case_case1.md.ik9QZ-1U.lean.js index 394b0003..84447764 100644 --- a/assets/case_case1.md.7flQRwLq.lean.js +++ b/assets/case_case1.md.ik9QZ-1U.lean.js @@ -1 +1 @@ -import{_ as e,c as t,o as a,a4 as r}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"自建一个TG机器人来查询服务器信息","description":"","frontmatter":{},"headers":[],"relativePath":"case/case1.md","filePath":"case/case1.md","lastUpdated":1720181562000}'),o={name:"case/case1.md"},_=r("",5),s=[_];function i(n,c,p,h,l,d){return a(),t("div",null,s)}const g=e(o,[["render",i]]);export{b as __pageData,g as default}; +import{_ as e,c as t,o as a,a4 as r}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"自建一个TG机器人来查询服务器信息","description":"","frontmatter":{},"headers":[],"relativePath":"case/case1.md","filePath":"case/case1.md","lastUpdated":1720452113000}'),o={name:"case/case1.md"},_=r("",5),s=[_];function i(n,c,p,h,l,d){return a(),t("div",null,s)}const g=e(o,[["render",i]]);export{b as __pageData,g as default}; diff --git a/assets/case_case2.md.DXaI1-3R.js b/assets/case_case2.md.4uyAHfsD.js similarity index 97% rename from assets/case_case2.md.DXaI1-3R.js rename to assets/case_case2.md.4uyAHfsD.js index 642c920b..abc415ff 100644 --- a/assets/case_case2.md.DXaI1-3R.js +++ b/assets/case_case2.md.4uyAHfsD.js @@ -1 +1 @@ -import{_ as a}from"./chunks/qrcode.CZOxHFH-.js";import{_ as e,c as r,o as i,a4 as t}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"在iOS/MacOS中使用Siri运行快捷指令查询服务器状态","description":"","frontmatter":{},"headers":[],"relativePath":"case/case2.md","filePath":"case/case2.md","lastUpdated":1720181562000}'),o={name:"case/case2.md"},c=t('

在iOS/MacOS中使用Siri运行快捷指令查询服务器状态

当前版本:V1.0
贡献者:

获取快捷指令

使用iPhone或iPad扫描以下二维码,获取快捷指令

coode

MacOS用户请访问这里,获取快捷指令

使用说明

WARNING

每个快捷指令只能监控一台服务器,如需要监控多个服务器,请多次复制此快捷指令并分别配置,然后分别修改快捷指令名称,如;一号服务器状态、二号服务器状态等

',8),s=[c];function l(d,n,h,_,p,m){return i(),r("div",null,s)}const S=e(o,[["render",l]]);export{b as __pageData,S as default}; +import{_ as a}from"./chunks/qrcode.CZOxHFH-.js";import{_ as e,c as r,o as i,a4 as t}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"在iOS/MacOS中使用Siri运行快捷指令查询服务器状态","description":"","frontmatter":{},"headers":[],"relativePath":"case/case2.md","filePath":"case/case2.md","lastUpdated":1720452113000}'),o={name:"case/case2.md"},c=t('

在iOS/MacOS中使用Siri运行快捷指令查询服务器状态

当前版本:V1.0
贡献者:

获取快捷指令

使用iPhone或iPad扫描以下二维码,获取快捷指令

coode

MacOS用户请访问这里,获取快捷指令

使用说明

WARNING

每个快捷指令只能监控一台服务器,如需要监控多个服务器,请多次复制此快捷指令并分别配置,然后分别修改快捷指令名称,如;一号服务器状态、二号服务器状态等

',8),s=[c];function l(d,n,h,_,p,m){return i(),r("div",null,s)}const S=e(o,[["render",l]]);export{b as __pageData,S as default}; diff --git a/assets/case_case2.md.DXaI1-3R.lean.js b/assets/case_case2.md.4uyAHfsD.lean.js similarity index 87% rename from assets/case_case2.md.DXaI1-3R.lean.js rename to assets/case_case2.md.4uyAHfsD.lean.js index 673b08c3..b5ea4a82 100644 --- a/assets/case_case2.md.DXaI1-3R.lean.js +++ b/assets/case_case2.md.4uyAHfsD.lean.js @@ -1 +1 @@ -import{_ as a}from"./chunks/qrcode.CZOxHFH-.js";import{_ as e,c as r,o as i,a4 as t}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"在iOS/MacOS中使用Siri运行快捷指令查询服务器状态","description":"","frontmatter":{},"headers":[],"relativePath":"case/case2.md","filePath":"case/case2.md","lastUpdated":1720181562000}'),o={name:"case/case2.md"},c=t("",8),s=[c];function l(d,n,h,_,p,m){return i(),r("div",null,s)}const S=e(o,[["render",l]]);export{b as __pageData,S as default}; +import{_ as a}from"./chunks/qrcode.CZOxHFH-.js";import{_ as e,c as r,o as i,a4 as t}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"在iOS/MacOS中使用Siri运行快捷指令查询服务器状态","description":"","frontmatter":{},"headers":[],"relativePath":"case/case2.md","filePath":"case/case2.md","lastUpdated":1720452113000}'),o={name:"case/case2.md"},c=t("",8),s=[c];function l(d,n,h,_,p,m){return i(),r("div",null,s)}const S=e(o,[["render",l]]);export{b as __pageData,S as default}; diff --git a/assets/case_case3.md.PCpb7OZi.js b/assets/case_case3.md.lZFAVPrS.js similarity index 98% rename from assets/case_case3.md.PCpb7OZi.js rename to assets/case_case3.md.lZFAVPrS.js index a8d5600c..67f9e9cf 100644 --- a/assets/case_case3.md.PCpb7OZi.js +++ b/assets/case_case3.md.lZFAVPrS.js @@ -1 +1 @@ -import{_ as t,c as e,o as a,a4 as r}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人","description":"","frontmatter":{},"headers":[],"relativePath":"case/case3.md","filePath":"case/case3.md","lastUpdated":1720181562000}'),d={name:"case/case3.md"},l=r('

自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人

贡献者:

项目地址:nezha_telegram_bot

镜像备份(非实时更新):nezha_telegram_bot

项目特色

开源Telegram机器人项目,可以基于API实时查询哪吒面板的服务器信息。

命令列表

命令功能仅私聊
start开始使用键盘主菜单✔️
help帮助列表
add添加面板链接和token✔️
url添加面板链接✔️
token添加面板token✔️
info获取保存的面板链接和token✔️
delete删除保存的面板链接和token✔️
id命令后面添加整数id,来进行单个服务器信息查询(私聊带刷新按钮,群聊不带)
all查询所有服务器的统计信息
search在服务器名字中搜索关键字(支持多个,用空格分开)

效果展示

imageimage

',12),i=[l];function o(h,n,c,s,_,m){return a(),e("div",null,i)}const f=t(d,[["render",o]]);export{b as __pageData,f as default}; +import{_ as t,c as e,o as a,a4 as r}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人","description":"","frontmatter":{},"headers":[],"relativePath":"case/case3.md","filePath":"case/case3.md","lastUpdated":1720452113000}'),d={name:"case/case3.md"},l=r('

自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人

贡献者:

项目地址:nezha_telegram_bot

镜像备份(非实时更新):nezha_telegram_bot

项目特色

开源Telegram机器人项目,可以基于API实时查询哪吒面板的服务器信息。

命令列表

命令功能仅私聊
start开始使用键盘主菜单✔️
help帮助列表
add添加面板链接和token✔️
url添加面板链接✔️
token添加面板token✔️
info获取保存的面板链接和token✔️
delete删除保存的面板链接和token✔️
id命令后面添加整数id,来进行单个服务器信息查询(私聊带刷新按钮,群聊不带)
all查询所有服务器的统计信息
search在服务器名字中搜索关键字(支持多个,用空格分开)

效果展示

imageimage

',12),i=[l];function o(h,n,c,s,_,m){return a(),e("div",null,i)}const f=t(d,[["render",o]]);export{b as __pageData,f as default}; diff --git a/assets/case_case3.md.PCpb7OZi.lean.js b/assets/case_case3.md.lZFAVPrS.lean.js similarity index 86% rename from assets/case_case3.md.PCpb7OZi.lean.js rename to assets/case_case3.md.lZFAVPrS.lean.js index d3299b41..5cdcb5f7 100644 --- a/assets/case_case3.md.PCpb7OZi.lean.js +++ b/assets/case_case3.md.lZFAVPrS.lean.js @@ -1 +1 @@ -import{_ as t,c as e,o as a,a4 as r}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人","description":"","frontmatter":{},"headers":[],"relativePath":"case/case3.md","filePath":"case/case3.md","lastUpdated":1720181562000}'),d={name:"case/case3.md"},l=r("",12),i=[l];function o(h,n,c,s,_,m){return a(),e("div",null,i)}const f=t(d,[["render",o]]);export{b as __pageData,f as default}; +import{_ as t,c as e,o as a,a4 as r}from"./chunks/framework.BmdFiWrL.js";const b=JSON.parse('{"title":"自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人","description":"","frontmatter":{},"headers":[],"relativePath":"case/case3.md","filePath":"case/case3.md","lastUpdated":1720452113000}'),d={name:"case/case3.md"},l=r("",12),i=[l];function o(h,n,c,s,_,m){return a(),e("div",null,i)}const f=t(d,[["render",o]]);export{b as __pageData,f as default}; diff --git a/assets/case_case4.md.BFMPRm8X.js b/assets/case_case4.md.CLv80UVh.js similarity index 97% rename from assets/case_case4.md.BFMPRm8X.js rename to assets/case_case4.md.CLv80UVh.js index 8a3e4c96..7b2ae16e 100644 --- a/assets/case_case4.md.BFMPRm8X.js +++ b/assets/case_case4.md.CLv80UVh.js @@ -1 +1 @@ -import{_ as s,c as t,o as e,a4 as a}from"./chunks/framework.BmdFiWrL.js";const r="/assets/2.r5IbCoDU.png",n="/assets/5.DI5HceD6.png",o="/assets/6.B0QVmape.png",p="/assets/4.DAp6JO4C.jpg",c="/assets/1.VA-CzEkF.jpeg",u=JSON.parse('{"title":"重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑","description":"","frontmatter":{},"headers":[],"relativePath":"case/case4.md","filePath":"case/case4.md","lastUpdated":1720181562000}'),_={name:"case/case4.md"},i=a('

重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑



2

还在因为自己的小鸡配置太差被朋友嘲笑吗?
还在想参加以针会友活动却因为小鸡不够排面而觉得羞耻吗?
还在因为在哪吒TG群里机器人排名太低而觉得自己低人一等吗?


今天开始!找回自信!

来自南京的名老中医 dysf888 独家秘方!让你找回男人本色,激情畅享!
安装 Fake Agent,可随意修改服务器监测数据的倍数上传到 Dashboard,让你的小鸡 脱!胎!换!骨! 让你在 MJJ 面前起来!

镜像备份(非实时更新):Fake Agent

哪吒监控创始人奶爸也在用:
5


男人用了都说好:
6
4



1

',12),l=[i];function g(b,f,h,m,d,k){return e(),t("div",null,l)}const y=s(_,[["render",g]]);export{u as __pageData,y as default}; +import{_ as s,c as t,o as e,a4 as a}from"./chunks/framework.BmdFiWrL.js";const r="/assets/2.r5IbCoDU.png",n="/assets/5.DI5HceD6.png",o="/assets/6.B0QVmape.png",p="/assets/4.DAp6JO4C.jpg",c="/assets/1.VA-CzEkF.jpeg",u=JSON.parse('{"title":"重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑","description":"","frontmatter":{},"headers":[],"relativePath":"case/case4.md","filePath":"case/case4.md","lastUpdated":1720452113000}'),_={name:"case/case4.md"},i=a('

重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑



2

还在因为自己的小鸡配置太差被朋友嘲笑吗?
还在想参加以针会友活动却因为小鸡不够排面而觉得羞耻吗?
还在因为在哪吒TG群里机器人排名太低而觉得自己低人一等吗?


今天开始!找回自信!

来自南京的名老中医 dysf888 独家秘方!让你找回男人本色,激情畅享!
安装 Fake Agent,可随意修改服务器监测数据的倍数上传到 Dashboard,让你的小鸡 脱!胎!换!骨! 让你在 MJJ 面前起来!

镜像备份(非实时更新):Fake Agent

哪吒监控创始人奶爸也在用:
5


男人用了都说好:
6
4



1

',12),l=[i];function g(b,f,h,m,d,k){return e(),t("div",null,l)}const y=s(_,[["render",g]]);export{u as __pageData,y as default}; diff --git a/assets/case_case4.md.BFMPRm8X.lean.js b/assets/case_case4.md.CLv80UVh.lean.js similarity index 89% rename from assets/case_case4.md.BFMPRm8X.lean.js rename to assets/case_case4.md.CLv80UVh.lean.js index 94a9822a..5e8eb2f1 100644 --- a/assets/case_case4.md.BFMPRm8X.lean.js +++ b/assets/case_case4.md.CLv80UVh.lean.js @@ -1 +1 @@ -import{_ as s,c as t,o as e,a4 as a}from"./chunks/framework.BmdFiWrL.js";const r="/assets/2.r5IbCoDU.png",n="/assets/5.DI5HceD6.png",o="/assets/6.B0QVmape.png",p="/assets/4.DAp6JO4C.jpg",c="/assets/1.VA-CzEkF.jpeg",u=JSON.parse('{"title":"重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑","description":"","frontmatter":{},"headers":[],"relativePath":"case/case4.md","filePath":"case/case4.md","lastUpdated":1720181562000}'),_={name:"case/case4.md"},i=a("",12),l=[i];function g(b,f,h,m,d,k){return e(),t("div",null,l)}const y=s(_,[["render",g]]);export{u as __pageData,y as default}; +import{_ as s,c as t,o as e,a4 as a}from"./chunks/framework.BmdFiWrL.js";const r="/assets/2.r5IbCoDU.png",n="/assets/5.DI5HceD6.png",o="/assets/6.B0QVmape.png",p="/assets/4.DAp6JO4C.jpg",c="/assets/1.VA-CzEkF.jpeg",u=JSON.parse('{"title":"重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑","description":"","frontmatter":{},"headers":[],"relativePath":"case/case4.md","filePath":"case/case4.md","lastUpdated":1720452113000}'),_={name:"case/case4.md"},i=a("",12),l=[i];function g(b,f,h,m,d,k){return e(),t("div",null,l)}const y=s(_,[["render",g]]);export{u as __pageData,y as default}; diff --git a/assets/case_case5.md.D6eVPDG0.js b/assets/case_case5.md.CSW6RNTM.js similarity index 99% rename from assets/case_case5.md.D6eVPDG0.js rename to assets/case_case5.md.CSW6RNTM.js index 15ce0f5e..40a6e606 100644 --- a/assets/case_case5.md.D6eVPDG0.js +++ b/assets/case_case5.md.CSW6RNTM.js @@ -1,4 +1,4 @@ -import{_ as a,c as e,o as s,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"使用 Argo 隧道的哪吒服务端","description":"","frontmatter":{},"headers":[],"relativePath":"case/case5.md","filePath":"case/case5.md","lastUpdated":1720181562000}'),n={name:"case/case5.md"},r=t(`

使用 Argo 隧道的哪吒服务端

贡献者:

项目地址:Argo-Nezha-Service-Container

镜像备份(非实时更新):Argo-Nezha-Service-Container


目录


项目特点:

image

准备需要用的变量

image

面板域名加上 https:// 开头,回调地址再加上 /oauth2/callback 结尾

imageimageimageimageimage

Argo 认证的获取方式: json 或 token

Argo 隧道认证方式有 json 和 token,使用两个方式其中之一。推荐前者,理由脚本会处理好所有的 Argo 隧道参数和路径,后者需要到 Cloudflare 官网手动设置,容易出错。

(方式 1 - Json):

通过 Cloudflare Json 生成网轻松获取 Argo 隧道 json 信息: https://fscarmen.cloudflare.now.cc

image

(方式 2 - Token): 通过 Cloudflare 官网,手动生成 Argo 隧道 token 信息

到 cf 官网:https://dash.cloudflare.com/

imageimageimageimageimageimageimage

PaaS 部署实例

镜像 fscarmen/argo-nezha:latest , 支持 amd64 和 arm64 架构

用到的变量

变量名是否必须备注
GH_USERgithub 的用户名,用于面板管理授权
GH_CLIENTID在 github 上申请
GH_CLIENTSECRET在 github 上申请
GH_BACKUP_USER在 github 上备份哪吒服务端数据库的 github 用户名,不填则与面板管理授权的账户 GH_USER 一致
GH_REPO在 github 上备份哪吒服务端数据库文件的 github 库
GH_EMAILgithub 的邮箱,用于备份的 git 推送到远程库
GH_PATgithub 的 PAT
ARGO_AUTHJson: 从 https://fscarmen.cloudflare.now.cc 获取的 Argo Json
Token: 从 Cloudflare 官网获取
ARGO_DOMAINArgo 域名

Koyeb

Deploy to Koyeb

imageimageimageimageimage

VPS 部署方式 1 --- docker

docker 部署

docker run -dit \\
+import{_ as a,c as e,o as s,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"使用 Argo 隧道的哪吒服务端","description":"","frontmatter":{},"headers":[],"relativePath":"case/case5.md","filePath":"case/case5.md","lastUpdated":1720452113000}'),n={name:"case/case5.md"},r=t(`

使用 Argo 隧道的哪吒服务端

贡献者:

项目地址:Argo-Nezha-Service-Container

镜像备份(非实时更新):Argo-Nezha-Service-Container


目录


项目特点:

  • 适用范围更广 --- 只要能连通网络,就能安装哪吒服务端,如 LXC, OpenVZ VPS,Nas 虚拟机 , Container PaaS 等
  • Argo 隧道突破需要公网入口的限制 --- 传统的哪吒需要有两个公网端口,一个用于面板的访问,另一个用于客户端上报数据,本项目借用 Cloudflare Argo 隧道,使用内网穿透的办法
  • IPv4 / v6 具备更高的灵活性 --- 传统哪吒需要处理服务端和客户端的 IPv4/v6 兼容性问题,还需要通过 warp 等工具来解决不对应的情况。然而,本项目可以完全不需要考虑这些问题,可以任意对接,更加方便和简便
  • 一条 Argo 隧道分流多个域名和协议 --- 建立一条内网穿透的 Argo 隧道,即可分流三个域名(hostname)和协议(protocal),分别用于面板的访问(http),客户端上报数据(tcp)和 ssh(可选)
  • GrpcWebProxy 反向代理的 gRPC 数据端口 --- 配上证书做 tls 终结,然后 Argo 的隧道配置用 https 服务指向这个反向代理,启用http2回源,grpc(nezha)->GrpcWebProxy->h2(argo)->cf cdn edge->agent
  • 每天自动备份 --- 北京时间每天 4 时 0 分自动备份整个哪吒面板文件夹到指定的 github 私库,包括面板主题,面板设置,探针数据和隧道信息,备份保留近 5 天数据;鉴于内容十分重要,必须要放在私库
  • 每天自动更新面板 -- 北京时间每天 4 时 0 分自动检测最新的官方面板版本,有升级时自动更新
  • 手/自一体还原备份 --- 每分钟检测一次在线还原文件的内容,遇到有更新立刻还原
  • 默认内置本机探针 --- 能很方便的监控自身服务器信息
  • 数据更安全 --- Argo 隧道使用TLS加密通信,可以将应用程序流量安全地传输到 Cloudflare 网络,提高了应用程序的安全性和可靠性。此外,Argo Tunnel也可以防止IP泄露和DDoS攻击等网络威胁
image

准备需要用的变量

  • 到 Cloudflare 官网,选择使用的域名,打开 网络 选项将 gRPC 开关打开
image

面板域名加上 https:// 开头,回调地址再加上 /oauth2/callback 结尾

imageimageimageimageimage

Argo 认证的获取方式: json 或 token

Argo 隧道认证方式有 json 和 token,使用两个方式其中之一。推荐前者,理由脚本会处理好所有的 Argo 隧道参数和路径,后者需要到 Cloudflare 官网手动设置,容易出错。

(方式 1 - Json):

通过 Cloudflare Json 生成网轻松获取 Argo 隧道 json 信息: https://fscarmen.cloudflare.now.cc

image

(方式 2 - Token): 通过 Cloudflare 官网,手动生成 Argo 隧道 token 信息

到 cf 官网:https://dash.cloudflare.com/

  • 进入 zero trust 里生成 token 隧道和信息。
  • 其中数据路径 443/https 为 proto.NezhaService
  • ssh 路径 22/ssh 为 < client id >
imageimageimageimageimageimageimage

PaaS 部署实例

镜像 fscarmen/argo-nezha:latest , 支持 amd64 和 arm64 架构

用到的变量

变量名是否必须备注
GH_USERgithub 的用户名,用于面板管理授权
GH_CLIENTID在 github 上申请
GH_CLIENTSECRET在 github 上申请
GH_BACKUP_USER在 github 上备份哪吒服务端数据库的 github 用户名,不填则与面板管理授权的账户 GH_USER 一致
GH_REPO在 github 上备份哪吒服务端数据库文件的 github 库
GH_EMAILgithub 的邮箱,用于备份的 git 推送到远程库
GH_PATgithub 的 PAT
ARGO_AUTHJson: 从 https://fscarmen.cloudflare.now.cc 获取的 Argo Json
Token: 从 Cloudflare 官网获取
ARGO_DOMAINArgo 域名

Koyeb

Deploy to Koyeb

imageimageimageimageimage

VPS 部署方式 1 --- docker

  • 注意: ARGO_DOMAIN= 后面需要有单引号,不能去掉
  • 如果 VPS 是 IPv6 only 的,请先安装 WARP IPv4 或者双栈: https://gitlab.com/fscarmen/warp
  • 备份目录为当前路径的 dashboard 文件夹

docker 部署

docker run -dit \\
            --name nezha_dashboard \\
            --pull always \\
            --restart always \\
diff --git a/assets/case_case5.md.D6eVPDG0.lean.js b/assets/case_case5.md.CSW6RNTM.lean.js
similarity index 85%
rename from assets/case_case5.md.D6eVPDG0.lean.js
rename to assets/case_case5.md.CSW6RNTM.lean.js
index 9044d225..88c62741 100644
--- a/assets/case_case5.md.D6eVPDG0.lean.js
+++ b/assets/case_case5.md.CSW6RNTM.lean.js
@@ -1 +1 @@
-import{_ as a,c as e,o as s,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"使用 Argo 隧道的哪吒服务端","description":"","frontmatter":{},"headers":[],"relativePath":"case/case5.md","filePath":"case/case5.md","lastUpdated":1720181562000}'),n={name:"case/case5.md"},r=t("",89),l=[r];function i(o,c,h,p,d,g){return s(),e("div",null,l)}const m=a(n,[["render",i]]);export{u as __pageData,m as default};
+import{_ as a,c as e,o as s,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"使用 Argo 隧道的哪吒服务端","description":"","frontmatter":{},"headers":[],"relativePath":"case/case5.md","filePath":"case/case5.md","lastUpdated":1720452113000}'),n={name:"case/case5.md"},r=t("",89),l=[r];function i(o,c,h,p,d,g){return s(),e("div",null,l)}const m=a(n,[["render",i]]);export{u as __pageData,m as default};
diff --git a/assets/case_index.md.DZlYHXzy.js b/assets/case_index.md.BII5D-PJ.js
similarity index 88%
rename from assets/case_index.md.DZlYHXzy.js
rename to assets/case_index.md.BII5D-PJ.js
index ba40a650..5e49091d 100644
--- a/assets/case_index.md.DZlYHXzy.js
+++ b/assets/case_index.md.BII5D-PJ.js
@@ -1 +1 @@
-import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"社区项目","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"社区项目","hero":{"name":"哪吒监控社区项目","text":"社区贡献的相关项目","tagline":"为哪吒监控提供了更多扩展","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"查看项目 →","link":"/case/case1"}]},"features":[{"title":"提交项目","details":"我们欢迎您提交自己的项目,请加入TG群联系管理员了解相关事宜"},{"title":"注意事项","details":"所有项目均由社区成员贡献,请您知悉哪吒监控团队无法为社区项目承担包括且不限于:保修、可用性、安全性等责任"}]},"headers":[],"relativePath":"case/index.md","filePath":"case/index.md","lastUpdated":1720181562000}'),s={name:"case/index.md"};function n(i,r,c,o,d,l){return a(),t("div")}const _=e(s,[["render",n]]);export{p as __pageData,_ as default};
+import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"社区项目","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"社区项目","hero":{"name":"哪吒监控社区项目","text":"社区贡献的相关项目","tagline":"为哪吒监控提供了更多扩展","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"查看项目 →","link":"/case/case1"}]},"features":[{"title":"提交项目","details":"我们欢迎您提交自己的项目,请加入TG群联系管理员了解相关事宜"},{"title":"注意事项","details":"所有项目均由社区成员贡献,请您知悉哪吒监控团队无法为社区项目承担包括且不限于:保修、可用性、安全性等责任"}]},"headers":[],"relativePath":"case/index.md","filePath":"case/index.md","lastUpdated":1720452113000}'),s={name:"case/index.md"};function n(i,r,c,o,d,l){return a(),t("div")}const _=e(s,[["render",n]]);export{p as __pageData,_ as default};
diff --git a/assets/case_index.md.DZlYHXzy.lean.js b/assets/case_index.md.BII5D-PJ.lean.js
similarity index 88%
rename from assets/case_index.md.DZlYHXzy.lean.js
rename to assets/case_index.md.BII5D-PJ.lean.js
index ba40a650..5e49091d 100644
--- a/assets/case_index.md.DZlYHXzy.lean.js
+++ b/assets/case_index.md.BII5D-PJ.lean.js
@@ -1 +1 @@
-import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"社区项目","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"社区项目","hero":{"name":"哪吒监控社区项目","text":"社区贡献的相关项目","tagline":"为哪吒监控提供了更多扩展","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"查看项目 →","link":"/case/case1"}]},"features":[{"title":"提交项目","details":"我们欢迎您提交自己的项目,请加入TG群联系管理员了解相关事宜"},{"title":"注意事项","details":"所有项目均由社区成员贡献,请您知悉哪吒监控团队无法为社区项目承担包括且不限于:保修、可用性、安全性等责任"}]},"headers":[],"relativePath":"case/index.md","filePath":"case/index.md","lastUpdated":1720181562000}'),s={name:"case/index.md"};function n(i,r,c,o,d,l){return a(),t("div")}const _=e(s,[["render",n]]);export{p as __pageData,_ as default};
+import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"社区项目","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"社区项目","hero":{"name":"哪吒监控社区项目","text":"社区贡献的相关项目","tagline":"为哪吒监控提供了更多扩展","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"查看项目 →","link":"/case/case1"}]},"features":[{"title":"提交项目","details":"我们欢迎您提交自己的项目,请加入TG群联系管理员了解相关事宜"},{"title":"注意事项","details":"所有项目均由社区成员贡献,请您知悉哪吒监控团队无法为社区项目承担包括且不限于:保修、可用性、安全性等责任"}]},"headers":[],"relativePath":"case/index.md","filePath":"case/index.md","lastUpdated":1720452113000}'),s={name:"case/index.md"};function n(i,r,c,o,d,l){return a(),t("div")}const _=e(s,[["render",n]]);export{p as __pageData,_ as default};
diff --git a/assets/chunks/VPAlgoliaSearchBox.Fj2CHPkL.js b/assets/chunks/VPAlgoliaSearchBox.CntkNbWN.js
similarity index 99%
rename from assets/chunks/VPAlgoliaSearchBox.Fj2CHPkL.js
rename to assets/chunks/VPAlgoliaSearchBox.CntkNbWN.js
index 20cfb13f..ec701d31 100644
--- a/assets/chunks/VPAlgoliaSearchBox.Fj2CHPkL.js
+++ b/assets/chunks/VPAlgoliaSearchBox.CntkNbWN.js
@@ -1,4 +1,4 @@
-import{d as mo,ai as po,L as vo,y as ho,v as yo,R as go,o as bo,c as _o}from"./framework.BmdFiWrL.js";import{u as Oo}from"./theme.pKFrknK6.js";/*! @docsearch/js 3.6.0 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */function lr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function I(t){for(var e=1;e=0||(l[u]=a[u]);return l}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function se(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var i,a,c=[],u=!0,s=!1;try{for(o=o.call(r);!(u=(i=o.next()).done)&&(c.push(i.value),!n||c.length!==n);u=!0);}catch(l){s=!0,a=l}finally{try{u||o.return==null||o.return()}finally{if(s)throw a}}return c}}(t,e)||_n(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
+import{d as mo,ai as po,L as vo,y as ho,v as yo,R as go,o as bo,c as _o}from"./framework.BmdFiWrL.js";import{u as Oo}from"./theme.D1TJKLdg.js";/*! @docsearch/js 3.6.0 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */function lr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function I(t){for(var e=1;e=0||(l[u]=a[u]);return l}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function se(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var i,a,c=[],u=!0,s=!1;try{for(o=o.call(r);!(u=(i=o.next()).done)&&(c.push(i.value),!n||c.length!==n);u=!0);}catch(l){s=!0,a=l}finally{try{u||o.return==null||o.return()}finally{if(s)throw a}}return c}}(t,e)||_n(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
 In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ft(t){return function(e){if(Array.isArray(e))return qt(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||_n(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
 In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _n(t,e){if(t){if(typeof t=="string")return qt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qt(t,e):void 0}}function qt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r3)for(r=[r],i=3;i0?Ie(v.type,v.props,v.key,null,v.__v):v)!=null){if(v.__=r,v.__b=r.__b+1,(p=b[l])===null||p&&v.key==p.key&&v.type===p.type)b[l]=void 0;else for(m=0;m<_;m++){if((p=b[m])&&v.key==p.key&&v.type===p.type){b[m]=void 0;break}p=null}Yt(t,v,p=p||mt,o,i,a,c,u,s),d=v.__e,(m=v.ref)&&p.ref!=m&&(y||(y=[]),p.ref&&y.push(p.ref,null,v),y.push(m,v.__c||d,v)),d!=null?(h==null&&(h=d),typeof v.type=="function"&&v.__k!=null&&v.__k===p.__k?v.__d=u=Pn(v,u,t):u=In(t,v,p,b,d,u),s||r.type!=="option"?typeof r.type=="function"&&(r.__d=u):t.value=""):u&&p.__e==u&&u.parentNode!=t&&(u=Ke(p))}for(r.__e=h,l=_;l--;)b[l]!=null&&(typeof r.type=="function"&&b[l].__e!=null&&b[l].__e==r.__d&&(r.__d=Ke(n,l+1)),An(b[l],b[l]));if(y)for(l=0;l3)for(r=[r],i=3;i=r.__.length&&r.__.push({}),r.__[t]}function Gt(t){return pe=1,xn(Nn,t)}function xn(t,e,r){var n=Je(de++,2);return n.t=t,n.__c||(n.__=[r?r(e):Nn(void 0,e),function(o){var i=n.t(n.__[0],o);n.__[0]!==i&&(n.__=[i,n.__[1]],n.__c.setState({}))}],n.__c=L),n.__}function Xt(t,e){var r=Je(de++,3);!w.__s&&er(r.__H,e)&&(r.__=t,r.__H=e,L.__H.__h.push(r))}function _r(t,e){var r=Je(de++,4);!w.__s&&er(r.__H,e)&&(r.__=t,r.__H=e,L.__h.push(r))}function Pt(t,e){var r=Je(de++,7);return er(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function ko(){Ht.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(ut),t.__H.__h.forEach(Ut),t.__H.__h=[]}catch(e){t.__H.__h=[],w.__e(e,t.__v)}}),Ht=[]}w.__b=function(t){L=null,dr&&dr(t)},w.__r=function(t){hr&&hr(t),de=0;var e=(L=t.__c).__H;e&&(e.__h.forEach(ut),e.__h.forEach(Ut),e.__h=[])},w.diffed=function(t){yr&&yr(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(Ht.push(e)!==1&&vr===w.requestAnimationFrame||((vr=w.requestAnimationFrame)||function(r){var n,o=function(){clearTimeout(i),Or&&cancelAnimationFrame(n),setTimeout(r)},i=setTimeout(o,100);Or&&(n=requestAnimationFrame(o))})(ko)),L=void 0},w.__c=function(t,e){e.some(function(r){try{r.__h.forEach(ut),r.__h=r.__h.filter(function(n){return!n.__||Ut(n)})}catch(n){e.some(function(o){o.__h&&(o.__h=[])}),e=[],w.__e(n,r.__v)}}),gr&&gr(t,e)},w.unmount=function(t){br&&br(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(ut)}catch(r){w.__e(r,e.__v)}};var Or=typeof requestAnimationFrame=="function";function ut(t){var e=L;typeof t.__c=="function"&&t.__c(),L=e}function Ut(t){var e=L;t.__c=t.__(),L=e}function er(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function Nn(t,e){return typeof e=="function"?e(t):e}function Tn(t,e){for(var r in e)t[r]=e[r];return t}function Ft(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function Bt(t){this.props=t}(Bt.prototype=new W).isPureReactComponent=!0,Bt.prototype.shouldComponentUpdate=function(t,e){return Ft(this.props,t)||Ft(this.state,e)};var Sr=w.__b;w.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Sr&&Sr(t)};var Do=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,wr=function(t,e){return t==null?null:$($(t).map(e))},Ao={map:wr,forEach:wr,count:function(t){return t?$(t).length:0},only:function(t){var e=$(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:$},Co=w.__e;function ct(){this.__u=0,this.t=null,this.__b=null}function Rn(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function je(){this.u=null,this.o=null}w.__e=function(t,e,r){if(t.then){for(var n,o=e;o=o.__;)if((n=o.__c)&&n.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),n.__c(t,e)}Co(t,e,r)},(ct.prototype=new W).__c=function(t,e){var r=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=Rn(n.__v),i=!1,a=function(){i||(i=!0,r.componentWillUnmount=r.__c,o?o(c):c())};r.__c=r.componentWillUnmount,r.componentWillUnmount=function(){a(),r.__c&&r.__c()};var c=function(){if(!--n.__u){if(n.state.__e){var s=n.state.__e;n.__v.__k[0]=function m(p,v,d){return p&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(h){return m(h,v,d)}),p.__c&&p.__c.__P===v&&(p.__e&&d.insertBefore(p.__e,p.__d),p.__c.__e=!0,p.__c.__P=d)),p}(s,s.__c.__P,s.__c.__O)}var l;for(n.setState({__e:n.__b=null});l=n.t.pop();)l.forceUpdate()}},u=e.__h===!0;n.__u++||u||n.setState({__e:n.__b=n.__v.__k[0]}),t.then(a,a)},ct.prototype.componentWillUnmount=function(){this.t=[]},ct.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function i(a,c,u){return a&&(a.__c&&a.__c.__H&&(a.__c.__H.__.forEach(function(s){typeof s.__c=="function"&&s.__c()}),a.__c.__H=null),(a=Tn({},a)).__c!=null&&(a.__c.__P===u&&(a.__c.__P=c),a.__c=null),a.__k=a.__k&&a.__k.map(function(s){return i(s,c,u)})),a}(this.__b,r,n.__O=n.__P)}this.__b=null}var o=e.__e&&K(X,null,t.fallback);return o&&(o.__h=null),[K(X,null,e.__e?null:t.children),o]};var jr=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]>>1,1),e.i.removeChild(n)}}),We(K(xo,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Ln(t,e){return K(No,{__v:t,i:e})}(je.prototype=new W).__e=function(t){var e=this,r=Rn(e.__v),n=e.o.get(t);return n[0]++,function(o){var i=function(){e.props.revealOrder?(n.push(o),jr(e,t,n)):o()};r?r(i):i()}},je.prototype.render=function(t){this.u=null,this.o=new Map;var e=$(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},je.prototype.componentDidUpdate=je.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,r){jr(t,r,e)})};var qn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,To=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ro=function(t){return(typeof Symbol<"u"&&Ve(Symbol())=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};function Mn(t,e,r){return e.__k==null&&(e.textContent=""),We(t,e),typeof r=="function"&&r(),t?t.__c:null}W.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(W.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Er=w.event;function Lo(){}function qo(){return this.cancelBubble}function Mo(){return this.defaultPrevented}w.event=function(t){return Er&&(t=Er(t)),t.persist=Lo,t.isPropagationStopped=qo,t.isDefaultPrevented=Mo,t.nativeEvent=t};var Hn,Pr={configurable:!0,get:function(){return this.class}},Ir=w.vnode;w.vnode=function(t){var e=t.type,r=t.props,n=r;if(typeof e=="string"){for(var o in n={},r){var i=r[o];o==="value"&&"defaultValue"in r&&i==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+e)&&!Ro(r.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():To.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():i===null&&(i=void 0),n[o]=i)}e=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=$(r.children).forEach(function(a){a.props.selected=n.value.indexOf(a.props.value)!=-1})),e=="select"&&n.defaultValue!=null&&(n.value=$(r.children).forEach(function(a){a.props.selected=n.multiple?n.defaultValue.indexOf(a.props.value)!=-1:n.defaultValue==a.props.value})),t.props=n}e&&r.class!=r.className&&(Pr.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",Pr)),t.$$typeof=qn,Ir&&Ir(t)};var kr=w.__r;w.__r=function(t){kr&&kr(t),Hn=t.__c};var Ho={ReactCurrentDispatcher:{current:{readContext:function(t){return Hn.__n[t.__c].props.value}}}};(typeof performance>"u"?"undefined":Ve(performance))=="object"&&typeof performance.now=="function"&&performance.now.bind(performance);function Dr(t){return!!t&&t.$$typeof===qn}var f={useState:Gt,useReducer:xn,useEffect:Xt,useLayoutEffect:_r,useRef:function(t){return pe=5,Pt(function(){return{current:t}},[])},useImperativeHandle:function(t,e,r){pe=6,_r(function(){typeof t=="function"?t(e()):t&&(t.current=e())},r==null?r:r.concat(t))},useMemo:Pt,useCallback:function(t,e){return pe=8,Pt(function(){return t},e)},useContext:function(t){var e=L.context[t.__c],r=Je(de++,9);return r.__c=t,e?(r.__==null&&(r.__=!0,e.sub(L)),e.props.value):t.__},useDebugValue:function(t,e){w.useDebugValue&&w.useDebugValue(e?e(t):t)},version:"16.8.0",Children:Ao,render:Mn,hydrate:function(t,e,r){return Cn(t,e),typeof r=="function"&&r(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&(We(null,t),!0)},createPortal:Ln,createElement:K,createContext:function(t,e){var r={__c:e="__cC"+Sn++,__:t,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(Mt)},this.sub=function(a){o.push(a);var c=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),c&&c.call(a)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r},createFactory:function(t){return K.bind(null,t)},cloneElement:function(t){return Dr(t)?Io.apply(null,arguments):t},createRef:function(){return{current:null}},Fragment:X,isValidElement:Dr,findDOMNode:function(t){return t&&(t.base||t.nodeType===1&&t)||null},Component:W,PureComponent:Bt,memo:function(t,e){function r(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!a:Ft(this.props,o)}function n(o){return this.shouldComponentUpdate=r,K(t,o)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n},forwardRef:function(t){function e(r,n){var o=Tn({},r);return delete o.ref,t(o,(n=r.ref||n)&&(Ve(n)!="object"||"current"in n)?n:null)}return e.$$typeof=Do,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e},unstable_batchedUpdates:function(t,e){return t(e)},StrictMode:X,Suspense:ct,SuspenseList:je,lazy:function(t){var e,r,n;function o(i){if(e||(e=t()).then(function(a){r=a.default||a},function(a){n=a}),n)throw n;if(!r)throw e;return K(r,i)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ho};function Uo(){return f.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},f.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}function Un(){return f.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20","aria-hidden":"true"},f.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}var Fo=["translations"];function Vt(){return Vt=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0||(l[u]=a[u]);return l}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Vo=f.forwardRef(function(t,e){var r=t.translations,n=r===void 0?{}:r,o=Bo(t,Fo),i=n.buttonText,a=i===void 0?"Search":i,c=n.buttonAriaLabel,u=c===void 0?"Search":c,s=Fn(Gt(null),2),l=s[0],m=s[1];return Xt(function(){typeof navigator<"u"&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?m("⌘"):m("Ctrl"))},[]),f.createElement("button",Vt({type:"button",className:"DocSearch DocSearch-Button","aria-label":u},o,{ref:e}),f.createElement("span",{className:"DocSearch-Button-Container"},f.createElement(Un,null),f.createElement("span",{className:"DocSearch-Button-Placeholder"},a)),f.createElement("span",{className:"DocSearch-Button-Keys"},l!==null&&f.createElement(f.Fragment,null,f.createElement(Cr,{reactsToKey:l==="Ctrl"?"Ctrl":"Meta"},l==="Ctrl"?f.createElement(Uo,null):l),f.createElement(Cr,{reactsToKey:"k"},"K"))))});function Cr(t){var e=t.reactsToKey,r=t.children,n=Fn(Gt(!1),2),o=n[0],i=n[1];return Xt(function(){if(e)return window.addEventListener("keydown",a),window.addEventListener("keyup",c),function(){window.removeEventListener("keydown",a),window.removeEventListener("keyup",c)};function a(u){u.key===e&&i(!0)}function c(u){u.key!==e&&u.key!=="Meta"||i(!1)}},[e]),f.createElement("kbd",{className:o?"DocSearch-Button-Key DocSearch-Button-Key--pressed":"DocSearch-Button-Key"},r)}function Bn(t,e){var r=void 0;return function(){for(var n=arguments.length,o=new Array(n),i=0;ii.map(i=>__vite__fileDeps[i]);
+import{d as _,o as a,c as l,r as c,n as M,a as F,t as I,b as k,w as v,e as f,T as pe,_ as b,u as Pe,i as je,f as Ge,g as he,h as g,j as d,k as i,p as B,l as H,m as G,q as ce,s as N,v as j,x,y as R,z as ee,A as Ve,B as Re,C as qe,D as q,F as C,E,G as Le,H as te,I as m,J as W,K as Se,L as ne,M as X,N as oe,O as Ke,P as we,Q as We,R as Je,S as Ie,U as se,V as Ye,W as Xe,X as Qe,Y as Te,Z as Ne,$ as Ze,a0 as xe,a1 as et,a2 as tt,a3 as Y}from"./framework.BmdFiWrL.js";const nt=_({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(n){return(e,t)=>(a(),l("span",{class:M(["VPBadge",e.type])},[c(e.$slots,"default",{},()=>[F(I(e.text),1)])],2))}}),ot={key:0,class:"VPBackdrop"},st=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(n){return(e,t)=>(a(),k(pe,{name:"fade"},{default:v(()=>[e.show?(a(),l("div",ot)):f("",!0)]),_:1}))}}),at=b(st,[["__scopeId","data-v-c79a1216"]]),S=Pe;function rt(n,e){let t,s=!1;return()=>{t&&clearTimeout(t),s?t=setTimeout(n,e):(n(),(s=!0)&&setTimeout(()=>s=!1,e))}}function ue(n){return/^\//.test(n)?n:`/${n}`}function fe(n){const{pathname:e,search:t,hash:s,protocol:o}=new URL(n,"http://a.com");if(je(n)||n.startsWith("#")||!o.startsWith("http")||!Ge(e))return n;const{site:r}=S(),u=e.endsWith("/")||e.endsWith(".html")?n:n.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${s}`);return he(u)}function J({correspondingLink:n=!1}={}){const{site:e,localeIndex:t,page:s,theme:o,hash:r}=S(),u=g(()=>{var p,$;return{label:(p=e.value.locales[t.value])==null?void 0:p.label,link:(($=e.value.locales[t.value])==null?void 0:$.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:g(()=>Object.entries(e.value.locales).flatMap(([p,$])=>u.value.label===$.label?[]:{text:$.label,link:it($.link||(p==="root"?"/":`/${p}/`),o.value.i18nRouting!==!1&&n,s.value.relativePath.slice(u.value.link.length-1),!e.value.cleanUrls)+r.value})),currentLang:u}}function it(n,e,t,s){return e?n.replace(/\/$/,"")+ue(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):n}const lt=n=>(B("data-v-d6be1790"),n=n(),H(),n),ct={class:"NotFound"},ut={class:"code"},dt={class:"title"},vt=lt(()=>d("div",{class:"divider"},null,-1)),pt={class:"quote"},ht={class:"action"},ft=["href","aria-label"],_t=_({__name:"NotFound",setup(n){const{theme:e}=S(),{currentLang:t}=J();return(s,o)=>{var r,u,h,p,$;return a(),l("div",ct,[d("p",ut,I(((r=i(e).notFound)==null?void 0:r.code)??"404"),1),d("h1",dt,I(((u=i(e).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),vt,d("blockquote",pt,I(((h=i(e).notFound)==null?void 0:h.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),d("div",ht,[d("a",{class:"link",href:i(he)(i(t).link),"aria-label":((p=i(e).notFound)==null?void 0:p.linkLabel)??"go to home"},I((($=i(e).notFound)==null?void 0:$.linkText)??"Take me home"),9,ft)])])}}}),mt=b(_t,[["__scopeId","data-v-d6be1790"]]);function Me(n,e){if(Array.isArray(n))return Q(n);if(n==null)return[];e=ue(e);const t=Object.keys(n).sort((o,r)=>r.split("/").length-o.split("/").length).find(o=>e.startsWith(ue(o))),s=t?n[t]:[];return Array.isArray(s)?Q(s):Q(s.items,s.base)}function bt(n){const e=[];let t=0;for(const s in n){const o=n[s];if(o.items){t=e.push(o);continue}e[t]||e.push({items:[]}),e[t].items.push(o)}return e}function kt(n){const e=[];function t(s){for(const o of s)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(n),e}function de(n,e){return Array.isArray(e)?e.some(t=>de(n,t)):G(n,e.link)?!0:e.items?de(n,e.items):!1}function Q(n,e){return[...n].map(t=>{const s={...t},o=s.base||e;return o&&s.link&&(s.link=o+s.link),s.items&&(s.items=Q(s.items,o)),s})}function O(){const{frontmatter:n,page:e,theme:t}=S(),s=ce("(min-width: 960px)"),o=N(!1),r=g(()=>{const A=t.value.sidebar,T=e.value.relativePath;return A?Me(A,T):[]}),u=N(r.value);j(r,(A,T)=>{JSON.stringify(A)!==JSON.stringify(T)&&(u.value=r.value)});const h=g(()=>n.value.sidebar!==!1&&u.value.length>0&&n.value.layout!=="home"),p=g(()=>$?n.value.aside==null?t.value.aside==="left":n.value.aside==="left":!1),$=g(()=>n.value.layout==="home"?!1:n.value.aside!=null?!!n.value.aside:t.value.aside!==!1),L=g(()=>h.value&&s.value),y=g(()=>h.value?bt(u.value):[]);function P(){o.value=!0}function w(){o.value=!1}function V(){o.value?w():P()}return{isOpen:o,sidebar:u,sidebarGroups:y,hasSidebar:h,hasAside:$,leftAside:p,isSidebarEnabled:L,open:P,close:w,toggle:V}}function gt(n,e){let t;x(()=>{t=n.value?document.activeElement:void 0}),R(()=>{window.addEventListener("keyup",s)}),ee(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&n.value&&(e(),t==null||t.focus())}}function $t(n){const{page:e,hash:t}=S(),s=N(!1),o=g(()=>n.value.collapsed!=null),r=g(()=>!!n.value.link),u=N(!1),h=()=>{u.value=G(e.value.relativePath,n.value.link)};j([e,n,t],h),R(h);const p=g(()=>u.value?!0:n.value.items?de(e.value.relativePath,n.value.items):!1),$=g(()=>!!(n.value.items&&n.value.items.length));x(()=>{s.value=!!(o.value&&n.value.collapsed)}),Ve(()=>{(u.value||p.value)&&(s.value=!1)});function L(){o.value&&(s.value=!s.value)}return{collapsed:s,collapsible:o,isLink:r,isActiveLink:u,hasActiveLink:p,hasChildren:$,toggle:L}}function yt(){const{hasSidebar:n}=O(),e=ce("(min-width: 960px)"),t=ce("(min-width: 1280px)");return{isAsideEnabled:g(()=>!t.value&&!e.value?!1:n.value?t.value:e.value)}}const ve=[];function Ae(n){return typeof n.outline=="object"&&!Array.isArray(n.outline)&&n.outline.label||n.outlineTitle||"On this page"}function _e(n){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const s=Number(t.tagName[1]);return{element:t,title:Pt(t),link:"#"+t.id,level:s}});return Vt(e,n)}function Pt(n){let e="";for(const t of n.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function Vt(n,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[s,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;n=n.filter(u=>u.level>=s&&u.level<=o),ve.length=0;for(const{element:u,link:h}of n)ve.push({element:u,link:h});const r=[];e:for(let u=0;u=0;p--){const $=n[p];if($.level{requestAnimationFrame(r),window.addEventListener("scroll",s)}),Re(()=>{u(location.hash)}),ee(()=>{window.removeEventListener("scroll",s)});function r(){if(!t.value)return;const h=window.scrollY,p=window.innerHeight,$=document.body.offsetHeight,L=Math.abs(h+p-$)<1,y=ve.map(({element:w,link:V})=>({link:V,top:St(w)})).filter(({top:w})=>!Number.isNaN(w)).sort((w,V)=>w.top-V.top);if(!y.length){u(null);return}if(h<1){u(null);return}if(L){u(y[y.length-1].link);return}let P=null;for(const{link:w,top:V}of y){if(V>h+qe()+4)break;P=w}u(P)}function u(h){o&&o.classList.remove("active"),h==null?o=null:o=n.value.querySelector(`a[href="${decodeURIComponent(h)}"]`);const p=o;p?(p.classList.add("active"),e.value.style.top=p.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function St(n){let e=0;for(;n!==document.body;){if(n===null)return NaN;e+=n.offsetTop,n=n.offsetParent}return e}const wt=["href","title"],It=_({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(n){function e({target:t}){const s=t.href.split("#")[1],o=document.getElementById(decodeURIComponent(s));o==null||o.focus({preventScroll:!0})}return(t,s)=>{const o=q("VPDocOutlineItem",!0);return a(),l("ul",{class:M(["VPDocOutlineItem",t.root?"root":"nested"])},[(a(!0),l(C,null,E(t.headers,({children:r,link:u,title:h})=>(a(),l("li",null,[d("a",{class:"outline-link",href:u,onClick:e,title:h},I(h),9,wt),r!=null&&r.length?(a(),k(o,{key:0,headers:r},null,8,["headers"])):f("",!0)]))),256))],2)}}}),Ce=b(It,[["__scopeId","data-v-b933a997"]]),Tt={class:"content"},Nt={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Mt=_({__name:"VPDocAsideOutline",setup(n){const{frontmatter:e,theme:t}=S(),s=Le([]);te(()=>{s.value=_e(e.value.outline??t.value.outline)});const o=N(),r=N();return Lt(o,r),(u,h)=>(a(),l("nav",{"aria-labelledby":"doc-outline-aria-label",class:M(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:o},[d("div",Tt,[d("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),d("div",Nt,I(i(Ae)(i(t))),1),m(Ce,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),At=b(Mt,[["__scopeId","data-v-a5bbad30"]]),Ct={class:"VPDocAsideCarbonAds"},Bt=_({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(n){const e=()=>null;return(t,s)=>(a(),l("div",Ct,[m(i(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Ht=n=>(B("data-v-3f215769"),n=n(),H(),n),Et={class:"VPDocAside"},Dt=Ht(()=>d("div",{class:"spacer"},null,-1)),Ft=_({__name:"VPDocAside",setup(n){const{theme:e}=S();return(t,s)=>(a(),l("div",Et,[c(t.$slots,"aside-top",{},void 0,!0),c(t.$slots,"aside-outline-before",{},void 0,!0),m(At),c(t.$slots,"aside-outline-after",{},void 0,!0),Dt,c(t.$slots,"aside-ads-before",{},void 0,!0),i(e).carbonAds?(a(),k(Bt,{key:0,"carbon-ads":i(e).carbonAds},null,8,["carbon-ads"])):f("",!0),c(t.$slots,"aside-ads-after",{},void 0,!0),c(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Ot=b(Ft,[["__scopeId","data-v-3f215769"]]);function Ut(){const{theme:n,page:e}=S();return g(()=>{const{text:t="Edit this page",pattern:s=""}=n.value.editLink||{};let o;return typeof s=="function"?o=s(e.value):o=s.replace(/:path/g,e.value.filePath),{url:o,text:t}})}function zt(){const{page:n,theme:e,frontmatter:t}=S();return g(()=>{var $,L,y,P,w,V,A,T;const s=Me(e.value.sidebar,n.value.relativePath),o=kt(s),r=jt(o,U=>U.link.replace(/[?#].*$/,"")),u=r.findIndex(U=>G(n.value.relativePath,U.link)),h=(($=e.value.docFooter)==null?void 0:$.prev)===!1&&!t.value.prev||t.value.prev===!1,p=((L=e.value.docFooter)==null?void 0:L.next)===!1&&!t.value.next||t.value.next===!1;return{prev:h?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((y=r[u-1])==null?void 0:y.docFooterText)??((P=r[u-1])==null?void 0:P.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((w=r[u-1])==null?void 0:w.link)},next:p?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((V=r[u+1])==null?void 0:V.docFooterText)??((A=r[u+1])==null?void 0:A.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((T=r[u+1])==null?void 0:T.link)}}})}function jt(n,e){const t=new Set;return n.filter(s=>{const o=e(s);return t.has(o)?!1:t.add(o)})}const D=_({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(n){const e=n,t=g(()=>e.tag??(e.href?"a":"span")),s=g(()=>e.href&&Se.test(e.href)||e.target==="_blank");return(o,r)=>(a(),k(W(t.value),{class:M(["VPLink",{link:o.href,"vp-external-link-icon":s.value,"no-icon":o.noIcon}]),href:o.href?i(fe)(o.href):void 0,target:o.target??(s.value?"_blank":void 0),rel:o.rel??(s.value?"noreferrer":void 0)},{default:v(()=>[c(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Gt={class:"VPLastUpdated"},Rt=["datetime"],qt=_({__name:"VPDocFooterLastUpdated",setup(n){const{theme:e,page:t,frontmatter:s,lang:o}=S(),r=g(()=>new Date(s.value.lastUpdated??t.value.lastUpdated)),u=g(()=>r.value.toISOString()),h=N("");return R(()=>{x(()=>{var p,$,L;h.value=new Intl.DateTimeFormat(($=(p=e.value.lastUpdated)==null?void 0:p.formatOptions)!=null&&$.forceLocale?o.value:void 0,((L=e.value.lastUpdated)==null?void 0:L.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(r.value)})}),(p,$)=>{var L;return a(),l("p",Gt,[F(I(((L=i(e).lastUpdated)==null?void 0:L.text)||i(e).lastUpdatedText||"Last updated")+": ",1),d("time",{datetime:u.value},I(h.value),9,Rt)])}}}),Kt=b(qt,[["__scopeId","data-v-7e05ebdb"]]),Be=n=>(B("data-v-d4a0bba5"),n=n(),H(),n),Wt={key:0,class:"VPDocFooter"},Jt={key:0,class:"edit-info"},Yt={key:0,class:"edit-link"},Xt=Be(()=>d("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),Qt={key:1,class:"last-updated"},Zt={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},xt=Be(()=>d("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),en={class:"pager"},tn=["innerHTML"],nn=["innerHTML"],on={class:"pager"},sn=["innerHTML"],an=["innerHTML"],rn=_({__name:"VPDocFooter",setup(n){const{theme:e,page:t,frontmatter:s}=S(),o=Ut(),r=zt(),u=g(()=>e.value.editLink&&s.value.editLink!==!1),h=g(()=>t.value.lastUpdated&&s.value.lastUpdated!==!1),p=g(()=>u.value||h.value||r.value.prev||r.value.next);return($,L)=>{var y,P,w,V;return p.value?(a(),l("footer",Wt,[c($.$slots,"doc-footer-before",{},void 0,!0),u.value||h.value?(a(),l("div",Jt,[u.value?(a(),l("div",Yt,[m(D,{class:"edit-link-button",href:i(o).url,"no-icon":!0},{default:v(()=>[Xt,F(" "+I(i(o).text),1)]),_:1},8,["href"])])):f("",!0),h.value?(a(),l("div",Qt,[m(Kt)])):f("",!0)])):f("",!0),(y=i(r).prev)!=null&&y.link||(P=i(r).next)!=null&&P.link?(a(),l("nav",Zt,[xt,d("div",en,[(w=i(r).prev)!=null&&w.link?(a(),k(D,{key:0,class:"pager-link prev",href:i(r).prev.link},{default:v(()=>{var A;return[d("span",{class:"desc",innerHTML:((A=i(e).docFooter)==null?void 0:A.prev)||"Previous page"},null,8,tn),d("span",{class:"title",innerHTML:i(r).prev.text},null,8,nn)]}),_:1},8,["href"])):f("",!0)]),d("div",on,[(V=i(r).next)!=null&&V.link?(a(),k(D,{key:0,class:"pager-link next",href:i(r).next.link},{default:v(()=>{var A;return[d("span",{class:"desc",innerHTML:((A=i(e).docFooter)==null?void 0:A.next)||"Next page"},null,8,sn),d("span",{class:"title",innerHTML:i(r).next.text},null,8,an)]}),_:1},8,["href"])):f("",!0)])])):f("",!0)])):f("",!0)}}}),ln=b(rn,[["__scopeId","data-v-d4a0bba5"]]),cn=n=>(B("data-v-39a288b8"),n=n(),H(),n),un={class:"container"},dn=cn(()=>d("div",{class:"aside-curtain"},null,-1)),vn={class:"aside-container"},pn={class:"aside-content"},hn={class:"content"},fn={class:"content-container"},_n={class:"main"},mn=_({__name:"VPDoc",setup(n){const{theme:e}=S(),t=ne(),{hasSidebar:s,hasAside:o,leftAside:r}=O(),u=g(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(h,p)=>{const $=q("Content");return a(),l("div",{class:M(["VPDoc",{"has-sidebar":i(s),"has-aside":i(o)}])},[c(h.$slots,"doc-top",{},void 0,!0),d("div",un,[i(o)?(a(),l("div",{key:0,class:M(["aside",{"left-aside":i(r)}])},[dn,d("div",vn,[d("div",pn,[m(Ot,null,{"aside-top":v(()=>[c(h.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[c(h.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[c(h.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[c(h.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[c(h.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[c(h.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):f("",!0),d("div",hn,[d("div",fn,[c(h.$slots,"doc-before",{},void 0,!0),d("main",_n,[m($,{class:M(["vp-doc",[u.value,i(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),m(ln,null,{"doc-footer-before":v(()=>[c(h.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),c(h.$slots,"doc-after",{},void 0,!0)])])]),c(h.$slots,"doc-bottom",{},void 0,!0)],2)}}}),bn=b(mn,[["__scopeId","data-v-39a288b8"]]),kn=_({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(n){const e=n,t=g(()=>e.href&&Se.test(e.href)),s=g(()=>e.tag||e.href?"a":"button");return(o,r)=>(a(),k(W(s.value),{class:M(["VPButton",[o.size,o.theme]]),href:o.href?i(fe)(o.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:v(()=>[F(I(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),gn=b(kn,[["__scopeId","data-v-cad61b99"]]),$n=["src","alt"],yn=_({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(n){return(e,t)=>{const s=q("VPImage",!0);return e.image?(a(),l(C,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),l("img",X({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:i(he)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,$n)):(a(),l(C,{key:1},[m(s,X({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),m(s,X({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):f("",!0)}}}),Z=b(yn,[["__scopeId","data-v-8426fc1a"]]),Pn=n=>(B("data-v-303bb580"),n=n(),H(),n),Vn={class:"container"},Ln={class:"main"},Sn={key:0,class:"name"},wn=["innerHTML"],In=["innerHTML"],Tn=["innerHTML"],Nn={key:0,class:"actions"},Mn={key:0,class:"image"},An={class:"image-container"},Cn=Pn(()=>d("div",{class:"image-bg"},null,-1)),Bn=_({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(n){const e=oe("hero-image-slot-exists");return(t,s)=>(a(),l("div",{class:M(["VPHero",{"has-image":t.image||i(e)}])},[d("div",Vn,[d("div",Ln,[c(t.$slots,"home-hero-info-before",{},void 0,!0),c(t.$slots,"home-hero-info",{},()=>[t.name?(a(),l("h1",Sn,[d("span",{innerHTML:t.name,class:"clip"},null,8,wn)])):f("",!0),t.text?(a(),l("p",{key:1,innerHTML:t.text,class:"text"},null,8,In)):f("",!0),t.tagline?(a(),l("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,Tn)):f("",!0)],!0),c(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(a(),l("div",Nn,[(a(!0),l(C,null,E(t.actions,o=>(a(),l("div",{key:o.link,class:"action"},[m(gn,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):f("",!0),c(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||i(e)?(a(),l("div",Mn,[d("div",An,[Cn,c(t.$slots,"home-hero-image",{},()=>[t.image?(a(),k(Z,{key:0,class:"image-src",image:t.image},null,8,["image"])):f("",!0)],!0)])])):f("",!0)])],2))}}),Hn=b(Bn,[["__scopeId","data-v-303bb580"]]),En=_({__name:"VPHomeHero",setup(n){const{frontmatter:e}=S();return(t,s)=>i(e).hero?(a(),k(Hn,{key:0,class:"VPHomeHero",name:i(e).hero.name,text:i(e).hero.text,tagline:i(e).hero.tagline,image:i(e).hero.image,actions:i(e).hero.actions},{"home-hero-info-before":v(()=>[c(t.$slots,"home-hero-info-before")]),"home-hero-info":v(()=>[c(t.$slots,"home-hero-info")]),"home-hero-info-after":v(()=>[c(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":v(()=>[c(t.$slots,"home-hero-actions-after")]),"home-hero-image":v(()=>[c(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):f("",!0)}}),Dn=n=>(B("data-v-a3976bdc"),n=n(),H(),n),Fn={class:"box"},On={key:0,class:"icon"},Un=["innerHTML"],zn=["innerHTML"],jn=["innerHTML"],Gn={key:4,class:"link-text"},Rn={class:"link-text-value"},qn=Dn(()=>d("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Kn=_({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(n){return(e,t)=>(a(),k(D,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[d("article",Fn,[typeof e.icon=="object"&&e.icon.wrap?(a(),l("div",On,[m(Z,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(a(),k(Z,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(a(),l("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Un)):f("",!0),d("h2",{class:"title",innerHTML:e.title},null,8,zn),e.details?(a(),l("p",{key:3,class:"details",innerHTML:e.details},null,8,jn)):f("",!0),e.linkText?(a(),l("div",Gn,[d("p",Rn,[F(I(e.linkText)+" ",1),qn])])):f("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Wn=b(Kn,[["__scopeId","data-v-a3976bdc"]]),Jn={key:0,class:"VPFeatures"},Yn={class:"container"},Xn={class:"items"},Qn=_({__name:"VPFeatures",props:{features:{}},setup(n){const e=n,t=g(()=>{const s=e.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,o)=>s.features?(a(),l("div",Jn,[d("div",Yn,[d("div",Xn,[(a(!0),l(C,null,E(s.features,r=>(a(),l("div",{key:r.title,class:M(["item",[t.value]])},[m(Wn,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):f("",!0)}}),Zn=b(Qn,[["__scopeId","data-v-a6181336"]]),xn=_({__name:"VPHomeFeatures",setup(n){const{frontmatter:e}=S();return(t,s)=>i(e).features?(a(),k(Zn,{key:0,class:"VPHomeFeatures",features:i(e).features},null,8,["features"])):f("",!0)}}),eo=_({__name:"VPHomeContent",setup(n){const{width:e}=Ke({initialWidth:0,includeScrollbar:!1});return(t,s)=>(a(),l("div",{class:"vp-doc container",style:we(i(e)?{"--vp-offset":`calc(50% - ${i(e)/2}px)`}:{})},[c(t.$slots,"default",{},void 0,!0)],4))}}),to=b(eo,[["__scopeId","data-v-8e2d4988"]]),no={class:"VPHome"},oo=_({__name:"VPHome",setup(n){const{frontmatter:e}=S();return(t,s)=>{const o=q("Content");return a(),l("div",no,[c(t.$slots,"home-hero-before",{},void 0,!0),m(En,null,{"home-hero-info-before":v(()=>[c(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[c(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[c(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[c(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[c(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),c(t.$slots,"home-hero-after",{},void 0,!0),c(t.$slots,"home-features-before",{},void 0,!0),m(xn),c(t.$slots,"home-features-after",{},void 0,!0),i(e).markdownStyles!==!1?(a(),k(to,{key:0},{default:v(()=>[m(o)]),_:1})):(a(),k(o,{key:1}))])}}}),so=b(oo,[["__scopeId","data-v-686f80a6"]]),ao={},ro={class:"VPPage"};function io(n,e){const t=q("Content");return a(),l("div",ro,[c(n.$slots,"page-top"),m(t),c(n.$slots,"page-bottom")])}const lo=b(ao,[["render",io]]),co=_({__name:"VPContent",setup(n){const{page:e,frontmatter:t}=S(),{hasSidebar:s}=O();return(o,r)=>(a(),l("div",{class:M(["VPContent",{"has-sidebar":i(s),"is-home":i(t).layout==="home"}]),id:"VPContent"},[i(e).isNotFound?c(o.$slots,"not-found",{key:0},()=>[m(mt)],!0):i(t).layout==="page"?(a(),k(lo,{key:1},{"page-top":v(()=>[c(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[c(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):i(t).layout==="home"?(a(),k(so,{key:2},{"home-hero-before":v(()=>[c(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[c(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[c(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[c(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[c(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[c(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[c(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[c(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[c(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):i(t).layout&&i(t).layout!=="doc"?(a(),k(W(i(t).layout),{key:3})):(a(),k(bn,{key:4},{"doc-top":v(()=>[c(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[c(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[c(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[c(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[c(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[c(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[c(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[c(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[c(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[c(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[c(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),uo=b(co,[["__scopeId","data-v-1428d186"]]),vo={class:"container"},po=["innerHTML"],ho=["innerHTML"],fo=_({__name:"VPFooter",setup(n){const{theme:e,frontmatter:t}=S(),{hasSidebar:s}=O();return(o,r)=>i(e).footer&&i(t).footer!==!1?(a(),l("footer",{key:0,class:M(["VPFooter",{"has-sidebar":i(s)}])},[d("div",vo,[i(e).footer.message?(a(),l("p",{key:0,class:"message",innerHTML:i(e).footer.message},null,8,po)):f("",!0),i(e).footer.copyright?(a(),l("p",{key:1,class:"copyright",innerHTML:i(e).footer.copyright},null,8,ho)):f("",!0)])],2)):f("",!0)}}),_o=b(fo,[["__scopeId","data-v-e315a0ad"]]);function mo(){const{theme:n,frontmatter:e}=S(),t=Le([]),s=g(()=>t.value.length>0);return te(()=>{t.value=_e(e.value.outline??n.value.outline)}),{headers:t,hasLocalNav:s}}const bo=n=>(B("data-v-17a5e62e"),n=n(),H(),n),ko={class:"menu-text"},go=bo(()=>d("span",{class:"vpi-chevron-right icon"},null,-1)),$o={class:"header"},yo={class:"outline"},Po=_({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(n){const e=n,{theme:t}=S(),s=N(!1),o=N(0),r=N(),u=N();function h(y){var P;(P=r.value)!=null&&P.contains(y.target)||(s.value=!1)}j(s,y=>{if(y){document.addEventListener("click",h);return}document.removeEventListener("click",h)}),We("Escape",()=>{s.value=!1}),te(()=>{s.value=!1});function p(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function $(y){y.target.classList.contains("outline-link")&&(u.value&&(u.value.style.transition="none"),Je(()=>{s.value=!1}))}function L(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(y,P)=>(a(),l("div",{class:"VPLocalNavOutlineDropdown",style:we({"--vp-vh":o.value+"px"}),ref_key:"main",ref:r},[y.headers.length>0?(a(),l("button",{key:0,onClick:p,class:M({open:s.value})},[d("span",ko,I(i(Ae)(i(t))),1),go],2)):(a(),l("button",{key:1,onClick:L},I(i(t).returnToTopLabel||"Return to top"),1)),m(pe,{name:"flyout"},{default:v(()=>[s.value?(a(),l("div",{key:0,ref_key:"items",ref:u,class:"items",onClick:$},[d("div",$o,[d("a",{class:"top-link",href:"#",onClick:L},I(i(t).returnToTopLabel||"Return to top"),1)]),d("div",yo,[m(Ce,{headers:y.headers},null,8,["headers"])])],512)):f("",!0)]),_:1})],4))}}),Vo=b(Po,[["__scopeId","data-v-17a5e62e"]]),Lo=n=>(B("data-v-a6f0e41e"),n=n(),H(),n),So={class:"container"},wo=["aria-expanded"],Io=Lo(()=>d("span",{class:"vpi-align-left menu-icon"},null,-1)),To={class:"menu-text"},No=_({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(n){const{theme:e,frontmatter:t}=S(),{hasSidebar:s}=O(),{headers:o}=mo(),{y:r}=Ie(),u=N(0);R(()=>{u.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),te(()=>{o.value=_e(t.value.outline??e.value.outline)});const h=g(()=>o.value.length===0),p=g(()=>h.value&&!s.value),$=g(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:h.value,fixed:p.value}));return(L,y)=>i(t).layout!=="home"&&(!p.value||i(r)>=u.value)?(a(),l("div",{key:0,class:M($.value)},[d("div",So,[i(s)?(a(),l("button",{key:0,class:"menu","aria-expanded":L.open,"aria-controls":"VPSidebarNav",onClick:y[0]||(y[0]=P=>L.$emit("open-menu"))},[Io,d("span",To,I(i(e).sidebarMenuLabel||"Menu"),1)],8,wo)):f("",!0),m(Vo,{headers:i(o),navHeight:u.value},null,8,["headers","navHeight"])])],2)):f("",!0)}}),Mo=b(No,[["__scopeId","data-v-a6f0e41e"]]);function Ao(){const n=N(!1);function e(){n.value=!0,window.addEventListener("resize",o)}function t(){n.value=!1,window.removeEventListener("resize",o)}function s(){n.value?t():e()}function o(){window.outerWidth>=768&&t()}const r=ne();return j(()=>r.path,t),{isScreenOpen:n,openScreen:e,closeScreen:t,toggleScreen:s}}const Co={},Bo={class:"VPSwitch",type:"button",role:"switch"},Ho={class:"check"},Eo={key:0,class:"icon"};function Do(n,e){return a(),l("button",Bo,[d("span",Ho,[n.$slots.default?(a(),l("span",Eo,[c(n.$slots,"default",{},void 0,!0)])):f("",!0)])])}const Fo=b(Co,[["render",Do],["__scopeId","data-v-1d5665e3"]]),He=n=>(B("data-v-d1f28634"),n=n(),H(),n),Oo=He(()=>d("span",{class:"vpi-sun sun"},null,-1)),Uo=He(()=>d("span",{class:"vpi-moon moon"},null,-1)),zo=_({__name:"VPSwitchAppearance",setup(n){const{isDark:e,theme:t}=S(),s=oe("toggle-appearance",()=>{e.value=!e.value}),o=g(()=>e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme");return(r,u)=>(a(),k(Fo,{title:o.value,class:"VPSwitchAppearance","aria-checked":i(e),onClick:i(s)},{default:v(()=>[Oo,Uo]),_:1},8,["title","aria-checked","onClick"]))}}),me=b(zo,[["__scopeId","data-v-d1f28634"]]),jo={key:0,class:"VPNavBarAppearance"},Go=_({__name:"VPNavBarAppearance",setup(n){const{site:e}=S();return(t,s)=>i(e).appearance&&i(e).appearance!=="force-dark"?(a(),l("div",jo,[m(me)])):f("",!0)}}),Ro=b(Go,[["__scopeId","data-v-e6aabb21"]]),be=N();let Ee=!1,le=0;function qo(n){const e=N(!1);if(se){!Ee&&Ko(),le++;const t=j(be,s=>{var o,r,u;s===n.el.value||(o=n.el.value)!=null&&o.contains(s)?(e.value=!0,(r=n.onFocus)==null||r.call(n)):(e.value=!1,(u=n.onBlur)==null||u.call(n))});ee(()=>{t(),le--,le||Wo()})}return Ye(e)}function Ko(){document.addEventListener("focusin",De),Ee=!0,be.value=document.activeElement}function Wo(){document.removeEventListener("focusin",De)}function De(){be.value=document.activeElement}const Jo={class:"VPMenuLink"},Yo=_({__name:"VPMenuLink",props:{item:{}},setup(n){const{page:e}=S();return(t,s)=>(a(),l("div",Jo,[m(D,{class:M({active:i(G)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:v(()=>[F(I(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),ae=b(Yo,[["__scopeId","data-v-43f1e123"]]),Xo={class:"VPMenuGroup"},Qo={key:0,class:"title"},Zo=_({__name:"VPMenuGroup",props:{text:{},items:{}},setup(n){return(e,t)=>(a(),l("div",Xo,[e.text?(a(),l("p",Qo,I(e.text),1)):f("",!0),(a(!0),l(C,null,E(e.items,s=>(a(),l(C,null,["link"in s?(a(),k(ae,{key:0,item:s},null,8,["item"])):f("",!0)],64))),256))]))}}),xo=b(Zo,[["__scopeId","data-v-69e747b5"]]),es={class:"VPMenu"},ts={key:0,class:"items"},ns=_({__name:"VPMenu",props:{items:{}},setup(n){return(e,t)=>(a(),l("div",es,[e.items?(a(),l("div",ts,[(a(!0),l(C,null,E(e.items,s=>(a(),l(C,{key:s.text},["link"in s?(a(),k(ae,{key:0,item:s},null,8,["item"])):(a(),k(xo,{key:1,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):f("",!0),c(e.$slots,"default",{},void 0,!0)]))}}),os=b(ns,[["__scopeId","data-v-e7ea1737"]]),ss=n=>(B("data-v-b6c34ac9"),n=n(),H(),n),as=["aria-expanded","aria-label"],rs={key:0,class:"text"},is=["innerHTML"],ls=ss(()=>d("span",{class:"vpi-chevron-down text-icon"},null,-1)),cs={key:1,class:"vpi-more-horizontal icon"},us={class:"menu"},ds=_({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(n){const e=N(!1),t=N();qo({el:t,onBlur:s});function s(){e.value=!1}return(o,r)=>(a(),l("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=u=>e.value=!0),onMouseleave:r[2]||(r[2]=u=>e.value=!1)},[d("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:r[0]||(r[0]=u=>e.value=!e.value)},[o.button||o.icon?(a(),l("span",rs,[o.icon?(a(),l("span",{key:0,class:M([o.icon,"option-icon"])},null,2)):f("",!0),o.button?(a(),l("span",{key:1,innerHTML:o.button},null,8,is)):f("",!0),ls])):(a(),l("span",cs))],8,as),d("div",us,[m(os,{items:o.items},{default:v(()=>[c(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),ke=b(ds,[["__scopeId","data-v-b6c34ac9"]]),vs=["href","aria-label","innerHTML"],ps=_({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(n){const e=n,t=g(()=>typeof e.icon=="object"?e.icon.svg:``);return(s,o)=>(a(),l("a",{class:"VPSocialLink no-icon",href:s.link,"aria-label":s.ariaLabel??(typeof s.icon=="string"?s.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,vs))}}),hs=b(ps,[["__scopeId","data-v-eee4e7cb"]]),fs={class:"VPSocialLinks"},_s=_({__name:"VPSocialLinks",props:{links:{}},setup(n){return(e,t)=>(a(),l("div",fs,[(a(!0),l(C,null,E(e.links,({link:s,icon:o,ariaLabel:r})=>(a(),k(hs,{key:s,icon:o,link:s,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}}),ge=b(_s,[["__scopeId","data-v-7bc22406"]]),ms={key:0,class:"group translations"},bs={class:"trans-title"},ks={key:1,class:"group"},gs={class:"item appearance"},$s={class:"label"},ys={class:"appearance-action"},Ps={key:2,class:"group"},Vs={class:"item social-links"},Ls=_({__name:"VPNavBarExtra",setup(n){const{site:e,theme:t}=S(),{localeLinks:s,currentLang:o}=J({correspondingLink:!0}),r=g(()=>s.value.length&&o.value.label||e.value.appearance||t.value.socialLinks);return(u,h)=>r.value?(a(),k(ke,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[i(s).length&&i(o).label?(a(),l("div",ms,[d("p",bs,I(i(o).label),1),(a(!0),l(C,null,E(i(s),p=>(a(),k(ae,{key:p.link,item:p},null,8,["item"]))),128))])):f("",!0),i(e).appearance&&i(e).appearance!=="force-dark"?(a(),l("div",ks,[d("div",gs,[d("p",$s,I(i(t).darkModeSwitchLabel||"Appearance"),1),d("div",ys,[m(me)])])])):f("",!0),i(t).socialLinks?(a(),l("div",Ps,[d("div",Vs,[m(ge,{class:"social-links-list",links:i(t).socialLinks},null,8,["links"])])])):f("",!0)]),_:1})):f("",!0)}}),Ss=b(Ls,[["__scopeId","data-v-d0bd9dde"]]),ws=n=>(B("data-v-e5dd9c1c"),n=n(),H(),n),Is=["aria-expanded"],Ts=ws(()=>d("span",{class:"container"},[d("span",{class:"top"}),d("span",{class:"middle"}),d("span",{class:"bottom"})],-1)),Ns=[Ts],Ms=_({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(n){return(e,t)=>(a(),l("button",{type:"button",class:M(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=s=>e.$emit("click"))},Ns,10,Is))}}),As=b(Ms,[["__scopeId","data-v-e5dd9c1c"]]),Cs=["innerHTML"],Bs=_({__name:"VPNavBarMenuLink",props:{item:{}},setup(n){const{page:e}=S();return(t,s)=>(a(),k(D,{class:M({VPNavBarMenuLink:!0,active:i(G)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,noIcon:t.item.noIcon,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:v(()=>[d("span",{innerHTML:t.item.text},null,8,Cs)]),_:1},8,["class","href","noIcon","target","rel"]))}}),Hs=b(Bs,[["__scopeId","data-v-9c663999"]]),Es=_({__name:"VPNavBarMenuGroup",props:{item:{}},setup(n){const e=n,{page:t}=S(),s=r=>"link"in r?G(t.value.relativePath,r.link,!!e.item.activeMatch):r.items.some(s),o=g(()=>s(e.item));return(r,u)=>(a(),k(ke,{class:M({VPNavBarMenuGroup:!0,active:i(G)(i(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||o.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),Ds=n=>(B("data-v-7f418b0f"),n=n(),H(),n),Fs={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Os=Ds(()=>d("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Us=_({__name:"VPNavBarMenu",setup(n){const{theme:e}=S();return(t,s)=>i(e).nav?(a(),l("nav",Fs,[Os,(a(!0),l(C,null,E(i(e).nav,o=>(a(),l(C,{key:o.text},["link"in o?(a(),k(Hs,{key:0,item:o},null,8,["item"])):(a(),k(Es,{key:1,item:o},null,8,["item"]))],64))),128))])):f("",!0)}}),zs=b(Us,[["__scopeId","data-v-7f418b0f"]]);function js(n){const{localeIndex:e,theme:t}=S();function s(o){var V,A,T;const r=o.split("."),u=(V=t.value.search)==null?void 0:V.options,h=u&&typeof u=="object",p=h&&((T=(A=u.locales)==null?void 0:A[e.value])==null?void 0:T.translations)||null,$=h&&u.translations||null;let L=p,y=$,P=n;const w=r.pop();for(const U of r){let z=null;const K=P==null?void 0:P[U];K&&(z=P=K);const re=y==null?void 0:y[U];re&&(z=y=re);const ie=L==null?void 0:L[U];ie&&(z=L=ie),K||(P=z),re||(y=z),ie||(L=z)}return(L==null?void 0:L[w])??(y==null?void 0:y[w])??(P==null?void 0:P[w])??""}return s}const Gs=["aria-label"],Rs={class:"DocSearch-Button-Container"},qs=d("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Ks={class:"DocSearch-Button-Placeholder"},Ws=d("span",{class:"DocSearch-Button-Keys"},[d("kbd",{class:"DocSearch-Button-Key"}),d("kbd",{class:"DocSearch-Button-Key"},"K")],-1),$e=_({__name:"VPNavBarSearchButton",setup(n){const t=js({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,o)=>(a(),l("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":i(t)("button.buttonAriaLabel")},[d("span",Rs,[qs,d("span",Ks,I(i(t)("button.buttonText")),1)]),Ws],8,Gs))}}),Js={class:"VPNavBarSearch"},Ys={id:"local-search"},Xs={key:1,id:"docsearch"},Qs=_({__name:"VPNavBarSearch",setup(n){const e=()=>null,t=Xe(()=>Qe(()=>import("./VPAlgoliaSearchBox.CntkNbWN.js"),__vite__mapDeps([0,1]))),{theme:s}=S(),o=N(!1),r=N(!1),u=()=>{const P="VPAlgoliaPreconnect";(window.requestIdleCallback||setTimeout)(()=>{var A;const V=document.createElement("link");V.id=P,V.rel="preconnect",V.href=`https://${(((A=s.value.search)==null?void 0:A.options)??s.value.algolia).appId}-dsn.algolia.net`,V.crossOrigin="",document.head.appendChild(V)})};R(()=>{u();const P=V=>{(V.key.toLowerCase()==="k"&&(V.metaKey||V.ctrlKey)||!$(V)&&V.key==="/")&&(V.preventDefault(),h(),w())},w=()=>{window.removeEventListener("keydown",P)};window.addEventListener("keydown",P),ee(w)});function h(){o.value||(o.value=!0,setTimeout(p,16))}function p(){const P=new Event("keydown");P.key="k",P.metaKey=!0,window.dispatchEvent(P),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||p()},16)}function $(P){const w=P.target,V=w.tagName;return w.isContentEditable||V==="INPUT"||V==="SELECT"||V==="TEXTAREA"}const L=N(!1),y="algolia";return(P,w)=>{var V;return a(),l("div",Js,[i(y)==="local"?(a(),l(C,{key:0},[L.value?(a(),k(i(e),{key:0,onClose:w[0]||(w[0]=A=>L.value=!1)})):f("",!0),d("div",Ys,[m($e,{onClick:w[1]||(w[1]=A=>L.value=!0)})])],64)):i(y)==="algolia"?(a(),l(C,{key:1},[o.value?(a(),k(i(t),{key:0,algolia:((V=i(s).search)==null?void 0:V.options)??i(s).algolia,onVnodeBeforeMount:w[2]||(w[2]=A=>r.value=!0)},null,8,["algolia"])):f("",!0),r.value?f("",!0):(a(),l("div",Xs,[m($e,{onClick:h})]))],64)):f("",!0)])}}}),Zs=_({__name:"VPNavBarSocialLinks",setup(n){const{theme:e}=S();return(t,s)=>i(e).socialLinks?(a(),k(ge,{key:0,class:"VPNavBarSocialLinks",links:i(e).socialLinks},null,8,["links"])):f("",!0)}}),xs=b(Zs,[["__scopeId","data-v-0394ad82"]]),ea=["href","rel","target"],ta={key:1},na={key:2},oa=_({__name:"VPNavBarTitle",setup(n){const{site:e,theme:t}=S(),{hasSidebar:s}=O(),{currentLang:o}=J(),r=g(()=>{var p;return typeof t.value.logoLink=="string"?t.value.logoLink:(p=t.value.logoLink)==null?void 0:p.link}),u=g(()=>{var p;return typeof t.value.logoLink=="string"||(p=t.value.logoLink)==null?void 0:p.rel}),h=g(()=>{var p;return typeof t.value.logoLink=="string"||(p=t.value.logoLink)==null?void 0:p.target});return(p,$)=>(a(),l("div",{class:M(["VPNavBarTitle",{"has-sidebar":i(s)}])},[d("a",{class:"title",href:r.value??i(fe)(i(o).link),rel:u.value,target:h.value},[c(p.$slots,"nav-bar-title-before",{},void 0,!0),i(t).logo?(a(),k(Z,{key:0,class:"logo",image:i(t).logo},null,8,["image"])):f("",!0),i(t).siteTitle?(a(),l("span",ta,I(i(t).siteTitle),1)):i(t).siteTitle===void 0?(a(),l("span",na,I(i(e).title),1)):f("",!0),c(p.$slots,"nav-bar-title-after",{},void 0,!0)],8,ea)],2))}}),sa=b(oa,[["__scopeId","data-v-ab179fa1"]]),aa={class:"items"},ra={class:"title"},ia=_({__name:"VPNavBarTranslations",setup(n){const{theme:e}=S(),{localeLinks:t,currentLang:s}=J({correspondingLink:!0});return(o,r)=>i(t).length&&i(s).label?(a(),k(ke,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:i(e).langMenuLabel||"Change language"},{default:v(()=>[d("div",aa,[d("p",ra,I(i(s).label),1),(a(!0),l(C,null,E(i(t),u=>(a(),k(ae,{key:u.link,item:u},null,8,["item"]))),128))])]),_:1},8,["label"])):f("",!0)}}),la=b(ia,[["__scopeId","data-v-88af2de4"]]),ca=n=>(B("data-v-ccf7ddec"),n=n(),H(),n),ua={class:"wrapper"},da={class:"container"},va={class:"title"},pa={class:"content"},ha={class:"content-body"},fa=ca(()=>d("div",{class:"divider"},[d("div",{class:"divider-line"})],-1)),_a=_({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(n){const{y:e}=Ie(),{hasSidebar:t}=O(),{frontmatter:s}=S(),o=N({});return Ve(()=>{o.value={"has-sidebar":t.value,home:s.value.layout==="home",top:e.value===0}}),(r,u)=>(a(),l("div",{class:M(["VPNavBar",o.value])},[d("div",ua,[d("div",da,[d("div",va,[m(sa,null,{"nav-bar-title-before":v(()=>[c(r.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[c(r.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),d("div",pa,[d("div",ha,[c(r.$slots,"nav-bar-content-before",{},void 0,!0),m(Qs,{class:"search"}),m(zs,{class:"menu"}),m(la,{class:"translations"}),m(Ro,{class:"appearance"}),m(xs,{class:"social-links"}),m(Ss,{class:"extra"}),c(r.$slots,"nav-bar-content-after",{},void 0,!0),m(As,{class:"hamburger",active:r.isScreenOpen,onClick:u[0]||(u[0]=h=>r.$emit("toggle-screen"))},null,8,["active"])])])])]),fa],2))}}),ma=b(_a,[["__scopeId","data-v-ccf7ddec"]]),ba={key:0,class:"VPNavScreenAppearance"},ka={class:"text"},ga=_({__name:"VPNavScreenAppearance",setup(n){const{site:e,theme:t}=S();return(s,o)=>i(e).appearance&&i(e).appearance!=="force-dark"?(a(),l("div",ba,[d("p",ka,I(i(t).darkModeSwitchLabel||"Appearance"),1),m(me)])):f("",!0)}}),$a=b(ga,[["__scopeId","data-v-2d7af913"]]),ya=_({__name:"VPNavScreenMenuLink",props:{item:{}},setup(n){const e=oe("close-screen");return(t,s)=>(a(),k(D,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:i(e),innerHTML:t.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),Pa=b(ya,[["__scopeId","data-v-7f31e1f6"]]),Va=_({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(n){const e=oe("close-screen");return(t,s)=>(a(),k(D,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:i(e)},{default:v(()=>[F(I(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Fe=b(Va,[["__scopeId","data-v-19976ae1"]]),La={class:"VPNavScreenMenuGroupSection"},Sa={key:0,class:"title"},wa=_({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(n){return(e,t)=>(a(),l("div",La,[e.text?(a(),l("p",Sa,I(e.text),1)):f("",!0),(a(!0),l(C,null,E(e.items,s=>(a(),k(Fe,{key:s.text,item:s},null,8,["item"]))),128))]))}}),Ia=b(wa,[["__scopeId","data-v-8133b170"]]),Ta=n=>(B("data-v-ff6087d4"),n=n(),H(),n),Na=["aria-controls","aria-expanded"],Ma=["innerHTML"],Aa=Ta(()=>d("span",{class:"vpi-plus button-icon"},null,-1)),Ca=["id"],Ba={key:1,class:"group"},Ha=_({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(n){const e=n,t=N(!1),s=g(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(r,u)=>(a(),l("div",{class:M(["VPNavScreenMenuGroup",{open:t.value}])},[d("button",{class:"button","aria-controls":s.value,"aria-expanded":t.value,onClick:o},[d("span",{class:"button-text",innerHTML:r.text},null,8,Ma),Aa],8,Na),d("div",{id:s.value,class:"items"},[(a(!0),l(C,null,E(r.items,h=>(a(),l(C,{key:h.text},["link"in h?(a(),l("div",{key:h.text,class:"item"},[m(Fe,{item:h},null,8,["item"])])):(a(),l("div",Ba,[m(Ia,{text:h.text,items:h.items},null,8,["text","items"])]))],64))),128))],8,Ca)],2))}}),Ea=b(Ha,[["__scopeId","data-v-ff6087d4"]]),Da={key:0,class:"VPNavScreenMenu"},Fa=_({__name:"VPNavScreenMenu",setup(n){const{theme:e}=S();return(t,s)=>i(e).nav?(a(),l("nav",Da,[(a(!0),l(C,null,E(i(e).nav,o=>(a(),l(C,{key:o.text},["link"in o?(a(),k(Pa,{key:0,item:o},null,8,["item"])):(a(),k(Ea,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):f("",!0)}}),Oa=_({__name:"VPNavScreenSocialLinks",setup(n){const{theme:e}=S();return(t,s)=>i(e).socialLinks?(a(),k(ge,{key:0,class:"VPNavScreenSocialLinks",links:i(e).socialLinks},null,8,["links"])):f("",!0)}}),Oe=n=>(B("data-v-858fe1a4"),n=n(),H(),n),Ua=Oe(()=>d("span",{class:"vpi-languages icon lang"},null,-1)),za=Oe(()=>d("span",{class:"vpi-chevron-down icon chevron"},null,-1)),ja={class:"list"},Ga=_({__name:"VPNavScreenTranslations",setup(n){const{localeLinks:e,currentLang:t}=J({correspondingLink:!0}),s=N(!1);function o(){s.value=!s.value}return(r,u)=>i(e).length&&i(t).label?(a(),l("div",{key:0,class:M(["VPNavScreenTranslations",{open:s.value}])},[d("button",{class:"title",onClick:o},[Ua,F(" "+I(i(t).label)+" ",1),za]),d("ul",ja,[(a(!0),l(C,null,E(i(e),h=>(a(),l("li",{key:h.link,class:"item"},[m(D,{class:"link",href:h.link},{default:v(()=>[F(I(h.text),1)]),_:2},1032,["href"])]))),128))])],2)):f("",!0)}}),Ra=b(Ga,[["__scopeId","data-v-858fe1a4"]]),qa={class:"container"},Ka=_({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(n){const e=N(null),t=Te(se?document.body:null);return(s,o)=>(a(),k(pe,{name:"fade",onEnter:o[0]||(o[0]=r=>t.value=!0),onAfterLeave:o[1]||(o[1]=r=>t.value=!1)},{default:v(()=>[s.open?(a(),l("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[d("div",qa,[c(s.$slots,"nav-screen-content-before",{},void 0,!0),m(Fa,{class:"menu"}),m(Ra,{class:"translations"}),m($a,{class:"appearance"}),m(Oa,{class:"social-links"}),c(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):f("",!0)]),_:3}))}}),Wa=b(Ka,[["__scopeId","data-v-cc5739dd"]]),Ja={key:0,class:"VPNav"},Ya=_({__name:"VPNav",setup(n){const{isScreenOpen:e,closeScreen:t,toggleScreen:s}=Ao(),{frontmatter:o}=S(),r=g(()=>o.value.navbar!==!1);return Ne("close-screen",t),x(()=>{se&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(u,h)=>r.value?(a(),l("header",Ja,[m(ma,{"is-screen-open":i(e),onToggleScreen:i(s)},{"nav-bar-title-before":v(()=>[c(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[c(u.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[c(u.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[c(u.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),m(Wa,{open:i(e)},{"nav-screen-content-before":v(()=>[c(u.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[c(u.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):f("",!0)}}),Xa=b(Ya,[["__scopeId","data-v-ae24b3ad"]]),Ue=n=>(B("data-v-b8d55f3b"),n=n(),H(),n),Qa=["role","tabindex"],Za=Ue(()=>d("div",{class:"indicator"},null,-1)),xa=Ue(()=>d("span",{class:"vpi-chevron-right caret-icon"},null,-1)),er=[xa],tr={key:1,class:"items"},nr=_({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(n){const e=n,{collapsed:t,collapsible:s,isLink:o,isActiveLink:r,hasActiveLink:u,hasChildren:h,toggle:p}=$t(g(()=>e.item)),$=g(()=>h.value?"section":"div"),L=g(()=>o.value?"a":"div"),y=g(()=>h.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),P=g(()=>o.value?void 0:"button"),w=g(()=>[[`level-${e.depth}`],{collapsible:s.value},{collapsed:t.value},{"is-link":o.value},{"is-active":r.value},{"has-active":u.value}]);function V(T){"key"in T&&T.key!=="Enter"||!e.item.link&&p()}function A(){e.item.link&&p()}return(T,U)=>{const z=q("VPSidebarItem",!0);return a(),k(W($.value),{class:M(["VPSidebarItem",w.value])},{default:v(()=>[T.item.text?(a(),l("div",X({key:0,class:"item",role:P.value},xe(T.item.items?{click:V,keydown:V}:{},!0),{tabindex:T.item.items&&0}),[Za,T.item.link?(a(),k(D,{key:0,tag:L.value,class:"link",href:T.item.link,rel:T.item.rel,target:T.item.target},{default:v(()=>[(a(),k(W(y.value),{class:"text",innerHTML:T.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),k(W(y.value),{key:1,class:"text",innerHTML:T.item.text},null,8,["innerHTML"])),T.item.collapsed!=null&&T.item.items&&T.item.items.length?(a(),l("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:A,onKeydown:Ze(A,["enter"]),tabindex:"0"},er,32)):f("",!0)],16,Qa)):f("",!0),T.item.items&&T.item.items.length?(a(),l("div",tr,[T.depth<5?(a(!0),l(C,{key:0},E(T.item.items,K=>(a(),k(z,{key:K.text,item:K,depth:T.depth+1},null,8,["item","depth"]))),128)):f("",!0)])):f("",!0)]),_:1},8,["class"])}}}),or=b(nr,[["__scopeId","data-v-b8d55f3b"]]),ze=n=>(B("data-v-575e6a36"),n=n(),H(),n),sr=ze(()=>d("div",{class:"curtain"},null,-1)),ar={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},rr=ze(()=>d("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),ir=_({__name:"VPSidebar",props:{open:{type:Boolean}},setup(n){const{sidebarGroups:e,hasSidebar:t}=O(),s=n,o=N(null),r=Te(se?document.body:null);return j([s,o],()=>{var u;s.open?(r.value=!0,(u=o.value)==null||u.focus()):r.value=!1},{immediate:!0,flush:"post"}),(u,h)=>i(t)?(a(),l("aside",{key:0,class:M(["VPSidebar",{open:u.open}]),ref_key:"navEl",ref:o,onClick:h[0]||(h[0]=et(()=>{},["stop"]))},[sr,d("nav",ar,[rr,c(u.$slots,"sidebar-nav-before",{},void 0,!0),(a(!0),l(C,null,E(i(e),p=>(a(),l("div",{key:p.text,class:"group"},[m(or,{item:p,depth:0},null,8,["item"])]))),128)),c(u.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):f("",!0)}}),lr=b(ir,[["__scopeId","data-v-575e6a36"]]),cr=_({__name:"VPSkipLink",setup(n){const e=ne(),t=N();j(()=>e.path,()=>t.value.focus());function s({target:o}){const r=document.getElementById(decodeURIComponent(o.hash).slice(1));if(r){const u=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",u)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",u),r.focus(),window.scrollTo(0,0)}}return(o,r)=>(a(),l(C,null,[d("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),d("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}}),ur=b(cr,[["__scopeId","data-v-0f60ec36"]]),dr=_({__name:"Layout",setup(n){const{isOpen:e,open:t,close:s}=O(),o=ne();j(()=>o.path,s),gt(e,s);const{frontmatter:r}=S(),u=tt(),h=g(()=>!!u["home-hero-image"]);return Ne("hero-image-slot-exists",h),(p,$)=>{const L=q("Content");return i(r).layout!==!1?(a(),l("div",{key:0,class:M(["Layout",i(r).pageClass])},[c(p.$slots,"layout-top",{},void 0,!0),m(ur),m(at,{class:"backdrop",show:i(e),onClick:i(s)},null,8,["show","onClick"]),m(Xa,null,{"nav-bar-title-before":v(()=>[c(p.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[c(p.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[c(p.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[c(p.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[c(p.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[c(p.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),m(Mo,{open:i(e),onOpenMenu:i(t)},null,8,["open","onOpenMenu"]),m(lr,{open:i(e)},{"sidebar-nav-before":v(()=>[c(p.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[c(p.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),m(uo,null,{"page-top":v(()=>[c(p.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[c(p.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[c(p.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[c(p.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[c(p.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[c(p.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[c(p.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[c(p.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[c(p.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[c(p.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[c(p.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[c(p.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[c(p.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[c(p.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[c(p.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[c(p.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[c(p.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[c(p.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[c(p.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[c(p.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[c(p.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[c(p.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[c(p.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),m(_o),c(p.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),k(L,{key:1}))}}}),vr=b(dr,[["__scopeId","data-v-5d98c3a5"]]),ye={Layout:vr,enhanceApp:({app:n})=>{n.component("Badge",nt)}},pr={data(){return{show:!1}},mounted(){this.show=navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)&&navigator.language.indexOf("zh")>-1}},hr={key:0,class:"wwads-cn wwads-horizontal","data-id":"296"};function fr(n,e,t,s,o,r){return o.show?(a(),l("div",hr)):f("",!0)}const _r=b(pr,[["render",fr]]),mr={data(){return{show:!1}},mounted(){this.show=navigator.language.indexOf("zh")>-1}},br={key:0,class:"wwads-cn wwads-vertical","data-id":"296",style:{"margin-bottom":"20px"}};function kr(n,e,t,s,o,r){return o.show?(a(),l("div",br)):f("",!0)}const gr=b(mr,[["render",kr]]),$r=_({name:"BannerComponent",setup(){const{site:n}=Pe(),e=N({link:"https://t.me/nezhanews",icon:"https://nezha.wiki/logo.png",dashboardVersionApi:"https://api.github.com/repos/naiba/nezha/releases/latest",agentVersionApi:"https://api.github.com/repos/nezhahq/agent/releases/latest",dashboardVersion:"",agentVersion:""});R(async()=>{await t()});const t=async()=>{try{const r=await(await fetch(e.value.dashboardVersionApi)).json();e.value.dashboardVersion=r.tag_name}catch(o){console.error("Error fetching dashboard latest version:",o),e.value.dashboardVersion="Error fetching"}try{const r=await(await fetch(e.value.agentVersionApi)).json();e.value.agentVersion=r.tag_name}catch(o){console.error("Error fetching agent latest version:",o),e.value.agentVersion="Error fetching"}};return{banner:e,translations:{name:{"en-US":"Announcement","zh-CN":"公告栏"},version:{"en-US":"Latest Version","zh-CN":"最新版本"},change:{"en-US":"View changelog","zh-CN":"查看变更日志"}},site:n,fetchLatestVersions:t}}}),yr=["href"],Pr=["src"],Vr={class:"info"},Lr={key:0,class:"version"},Sr={key:1,class:"version"},wr={class:"change"};function Ir(n,e,t,s,o,r){return a(),l("div",null,[d("a",{href:n.banner.link,class:"banner",target:"_blank"},[n.banner.icon?(a(),l("img",{key:0,src:n.banner.icon,width:"22",height:"22"},null,8,Pr)):f("",!0),d("div",Vr,[n.banner.dashboardVersion!==""?(a(),l("p",Lr,"Dashboard "+I(n.banner.dashboardVersion),1)):f("",!0),n.banner.agentVersion!==""?(a(),l("p",Sr,"Agent "+I(n.banner.agentVersion),1)):f("",!0),d("p",wr,I(n.translations.change[n.site.lang]),1)])],8,yr)])}const Tr=b($r,[["render",Ir],["__scopeId","data-v-9a4b6acc"]]),Mr={...ye,Layout(){return Y(ye.Layout,null,{"doc-top":()=>Y(_r),"aside-top":()=>Y(gr),"aside-ads-before":()=>Y(Tr)})}};export{Mr as R,S as u};
diff --git a/assets/chunks/theme.pKFrknK6.js b/assets/chunks/theme.pKFrknK6.js
deleted file mode 100644
index 904d58e5..00000000
--- a/assets/chunks/theme.pKFrknK6.js
+++ /dev/null
@@ -1,2 +0,0 @@
-const __vite__fileDeps=["assets/chunks/VPAlgoliaSearchBox.Fj2CHPkL.js","assets/chunks/framework.BmdFiWrL.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
-import{d as _,o as a,c,r as l,n as M,a as D,t as T,b,w as d,e as f,T as pe,_ as k,u as Ge,i as je,f as ze,g as he,h as $,j as v,k as r,p as B,l as H,m as z,q as ce,s as N,v as j,x as Z,y as W,z as x,A as Pe,B as Ke,C as qe,D as K,F as C,E,G as Le,H as ee,I as m,J as R,K as Ve,L as te,M as Y,N as oe,O as Re,P as Se,Q as We,R as Je,S as we,U as se,V as Ye,W as Xe,X as Qe,Y as Ie,Z as Te,$ as Ze,a0 as xe,a1 as et,a2 as tt,a3 as ie}from"./framework.BmdFiWrL.js";const ot=_({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(a(),c("span",{class:M(["VPBadge",e.type])},[l(e.$slots,"default",{},()=>[D(T(e.text),1)])],2))}}),st={key:0,class:"VPBackdrop"},nt=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(a(),b(pe,{name:"fade"},{default:d(()=>[e.show?(a(),c("div",st)):f("",!0)]),_:1}))}}),at=k(nt,[["__scopeId","data-v-c79a1216"]]),S=Ge;function rt(o,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(o,e):(o(),(n=!0)&&setTimeout(()=>n=!1,e))}}function ue(o){return/^\//.test(o)?o:`/${o}`}function fe(o){const{pathname:e,search:t,hash:n,protocol:s}=new URL(o,"http://a.com");if(je(o)||o.startsWith("#")||!s.startsWith("http")||!ze(e))return o;const{site:i}=S(),u=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${n}`);return he(u)}function J({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:n,theme:s,hash:i}=S(),u=$(()=>{var p,g;return{label:(p=e.value.locales[t.value])==null?void 0:p.label,link:((g=e.value.locales[t.value])==null?void 0:g.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:$(()=>Object.entries(e.value.locales).flatMap(([p,g])=>u.value.label===g.label?[]:{text:g.label,link:it(g.link||(p==="root"?"/":`/${p}/`),s.value.i18nRouting!==!1&&o,n.value.relativePath.slice(u.value.link.length-1),!e.value.cleanUrls)+i.value})),currentLang:u}}function it(o,e,t,n){return e?o.replace(/\/$/,"")+ue(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):o}const lt=o=>(B("data-v-d6be1790"),o=o(),H(),o),ct={class:"NotFound"},ut={class:"code"},dt={class:"title"},vt=lt(()=>v("div",{class:"divider"},null,-1)),pt={class:"quote"},ht={class:"action"},ft=["href","aria-label"],_t=_({__name:"NotFound",setup(o){const{theme:e}=S(),{currentLang:t}=J();return(n,s)=>{var i,u,h,p,g;return a(),c("div",ct,[v("p",ut,T(((i=r(e).notFound)==null?void 0:i.code)??"404"),1),v("h1",dt,T(((u=r(e).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),vt,v("blockquote",pt,T(((h=r(e).notFound)==null?void 0:h.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),v("div",ht,[v("a",{class:"link",href:r(he)(r(t).link),"aria-label":((p=r(e).notFound)==null?void 0:p.linkLabel)??"go to home"},T(((g=r(e).notFound)==null?void 0:g.linkText)??"Take me home"),9,ft)])])}}}),mt=k(_t,[["__scopeId","data-v-d6be1790"]]);function Ne(o,e){if(Array.isArray(o))return X(o);if(o==null)return[];e=ue(e);const t=Object.keys(o).sort((s,i)=>i.split("/").length-s.split("/").length).find(s=>e.startsWith(ue(s))),n=t?o[t]:[];return Array.isArray(n)?X(n):X(n.items,n.base)}function kt(o){const e=[];let t=0;for(const n in o){const s=o[n];if(s.items){t=e.push(s);continue}e[t]||e.push({items:[]}),e[t].items.push(s)}return e}function bt(o){const e=[];function t(n){for(const s of n)s.text&&s.link&&e.push({text:s.text,link:s.link,docFooterText:s.docFooterText}),s.items&&t(s.items)}return t(o),e}function de(o,e){return Array.isArray(e)?e.some(t=>de(o,t)):z(o,e.link)?!0:e.items?de(o,e.items):!1}function X(o,e){return[...o].map(t=>{const n={...t},s=n.base||e;return s&&n.link&&(n.link=s+n.link),n.items&&(n.items=X(n.items,s)),n})}function O(){const{frontmatter:o,page:e,theme:t}=S(),n=ce("(min-width: 960px)"),s=N(!1),i=$(()=>{const A=t.value.sidebar,I=e.value.relativePath;return A?Ne(A,I):[]}),u=N(i.value);j(i,(A,I)=>{JSON.stringify(A)!==JSON.stringify(I)&&(u.value=i.value)});const h=$(()=>o.value.sidebar!==!1&&u.value.length>0&&o.value.layout!=="home"),p=$(()=>g?o.value.aside==null?t.value.aside==="left":o.value.aside==="left":!1),g=$(()=>o.value.layout==="home"?!1:o.value.aside!=null?!!o.value.aside:t.value.aside!==!1),V=$(()=>h.value&&n.value),y=$(()=>h.value?kt(u.value):[]);function P(){s.value=!0}function w(){s.value=!1}function L(){s.value?w():P()}return{isOpen:s,sidebar:u,sidebarGroups:y,hasSidebar:h,hasAside:g,leftAside:p,isSidebarEnabled:V,open:P,close:w,toggle:L}}function $t(o,e){let t;Z(()=>{t=o.value?document.activeElement:void 0}),W(()=>{window.addEventListener("keyup",n)}),x(()=>{window.removeEventListener("keyup",n)});function n(s){s.key==="Escape"&&o.value&&(e(),t==null||t.focus())}}function gt(o){const{page:e,hash:t}=S(),n=N(!1),s=$(()=>o.value.collapsed!=null),i=$(()=>!!o.value.link),u=N(!1),h=()=>{u.value=z(e.value.relativePath,o.value.link)};j([e,o,t],h),W(h);const p=$(()=>u.value?!0:o.value.items?de(e.value.relativePath,o.value.items):!1),g=$(()=>!!(o.value.items&&o.value.items.length));Z(()=>{n.value=!!(s.value&&o.value.collapsed)}),Pe(()=>{(u.value||p.value)&&(n.value=!1)});function V(){s.value&&(n.value=!n.value)}return{collapsed:n,collapsible:s,isLink:i,isActiveLink:u,hasActiveLink:p,hasChildren:g,toggle:V}}function yt(){const{hasSidebar:o}=O(),e=ce("(min-width: 960px)"),t=ce("(min-width: 1280px)");return{isAsideEnabled:$(()=>!t.value&&!e.value?!1:o.value?t.value:e.value)}}const ve=[];function Me(o){return typeof o.outline=="object"&&!Array.isArray(o.outline)&&o.outline.label||o.outlineTitle||"On this page"}function _e(o){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{element:t,title:Pt(t),link:"#"+t.id,level:n}});return Lt(e,o)}function Pt(o){let e="";for(const t of o.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function Lt(o,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[n,s]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;o=o.filter(u=>u.level>=n&&u.level<=s),ve.length=0;for(const{element:u,link:h}of o)ve.push({element:u,link:h});const i=[];e:for(let u=0;u=0;p--){const g=o[p];if(g.level{requestAnimationFrame(i),window.addEventListener("scroll",n)}),Ke(()=>{u(location.hash)}),x(()=>{window.removeEventListener("scroll",n)});function i(){if(!t.value)return;const h=window.scrollY,p=window.innerHeight,g=document.body.offsetHeight,V=Math.abs(h+p-g)<1,y=ve.map(({element:w,link:L})=>({link:L,top:St(w)})).filter(({top:w})=>!Number.isNaN(w)).sort((w,L)=>w.top-L.top);if(!y.length){u(null);return}if(h<1){u(null);return}if(V){u(y[y.length-1].link);return}let P=null;for(const{link:w,top:L}of y){if(L>h+qe()+4)break;P=w}u(P)}function u(h){s&&s.classList.remove("active"),h==null?s=null:s=o.value.querySelector(`a[href="${decodeURIComponent(h)}"]`);const p=s;p?(p.classList.add("active"),e.value.style.top=p.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function St(o){let e=0;for(;o!==document.body;){if(o===null)return NaN;e+=o.offsetTop,o=o.offsetParent}return e}const wt=["href","title"],It=_({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(o){function e({target:t}){const n=t.href.split("#")[1],s=document.getElementById(decodeURIComponent(n));s==null||s.focus({preventScroll:!0})}return(t,n)=>{const s=K("VPDocOutlineItem",!0);return a(),c("ul",{class:M(["VPDocOutlineItem",t.root?"root":"nested"])},[(a(!0),c(C,null,E(t.headers,({children:i,link:u,title:h})=>(a(),c("li",null,[v("a",{class:"outline-link",href:u,onClick:e,title:h},T(h),9,wt),i!=null&&i.length?(a(),b(s,{key:0,headers:i},null,8,["headers"])):f("",!0)]))),256))],2)}}}),Ae=k(It,[["__scopeId","data-v-b933a997"]]),Tt={class:"content"},Nt={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Mt=_({__name:"VPDocAsideOutline",setup(o){const{frontmatter:e,theme:t}=S(),n=Le([]);ee(()=>{n.value=_e(e.value.outline??t.value.outline)});const s=N(),i=N();return Vt(s,i),(u,h)=>(a(),c("nav",{"aria-labelledby":"doc-outline-aria-label",class:M(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:s},[v("div",Tt,[v("div",{class:"outline-marker",ref_key:"marker",ref:i},null,512),v("div",Nt,T(r(Me)(r(t))),1),m(Ae,{headers:n.value,root:!0},null,8,["headers"])])],2))}}),At=k(Mt,[["__scopeId","data-v-a5bbad30"]]),Ct={class:"VPDocAsideCarbonAds"},Bt=_({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(o){const e=()=>null;return(t,n)=>(a(),c("div",Ct,[m(r(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Ht=o=>(B("data-v-3f215769"),o=o(),H(),o),Et={class:"VPDocAside"},Ft=Ht(()=>v("div",{class:"spacer"},null,-1)),Dt=_({__name:"VPDocAside",setup(o){const{theme:e}=S();return(t,n)=>(a(),c("div",Et,[l(t.$slots,"aside-top",{},void 0,!0),l(t.$slots,"aside-outline-before",{},void 0,!0),m(At),l(t.$slots,"aside-outline-after",{},void 0,!0),Ft,l(t.$slots,"aside-ads-before",{},void 0,!0),r(e).carbonAds?(a(),b(Bt,{key:0,"carbon-ads":r(e).carbonAds},null,8,["carbon-ads"])):f("",!0),l(t.$slots,"aside-ads-after",{},void 0,!0),l(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Ot=k(Dt,[["__scopeId","data-v-3f215769"]]);function Ut(){const{theme:o,page:e}=S();return $(()=>{const{text:t="Edit this page",pattern:n=""}=o.value.editLink||{};let s;return typeof n=="function"?s=n(e.value):s=n.replace(/:path/g,e.value.filePath),{url:s,text:t}})}function Gt(){const{page:o,theme:e,frontmatter:t}=S();return $(()=>{var g,V,y,P,w,L,A,I;const n=Ne(e.value.sidebar,o.value.relativePath),s=bt(n),i=jt(s,U=>U.link.replace(/[?#].*$/,"")),u=i.findIndex(U=>z(o.value.relativePath,U.link)),h=((g=e.value.docFooter)==null?void 0:g.prev)===!1&&!t.value.prev||t.value.prev===!1,p=((V=e.value.docFooter)==null?void 0:V.next)===!1&&!t.value.next||t.value.next===!1;return{prev:h?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((y=i[u-1])==null?void 0:y.docFooterText)??((P=i[u-1])==null?void 0:P.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((w=i[u-1])==null?void 0:w.link)},next:p?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((L=i[u+1])==null?void 0:L.docFooterText)??((A=i[u+1])==null?void 0:A.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((I=i[u+1])==null?void 0:I.link)}}})}function jt(o,e){const t=new Set;return o.filter(n=>{const s=e(n);return t.has(s)?!1:t.add(s)})}const F=_({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(o){const e=o,t=$(()=>e.tag??(e.href?"a":"span")),n=$(()=>e.href&&Ve.test(e.href)||e.target==="_blank");return(s,i)=>(a(),b(R(t.value),{class:M(["VPLink",{link:s.href,"vp-external-link-icon":n.value,"no-icon":s.noIcon}]),href:s.href?r(fe)(s.href):void 0,target:s.target??(n.value?"_blank":void 0),rel:s.rel??(n.value?"noreferrer":void 0)},{default:d(()=>[l(s.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),zt={class:"VPLastUpdated"},Kt=["datetime"],qt=_({__name:"VPDocFooterLastUpdated",setup(o){const{theme:e,page:t,frontmatter:n,lang:s}=S(),i=$(()=>new Date(n.value.lastUpdated??t.value.lastUpdated)),u=$(()=>i.value.toISOString()),h=N("");return W(()=>{Z(()=>{var p,g,V;h.value=new Intl.DateTimeFormat((g=(p=e.value.lastUpdated)==null?void 0:p.formatOptions)!=null&&g.forceLocale?s.value:void 0,((V=e.value.lastUpdated)==null?void 0:V.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(i.value)})}),(p,g)=>{var V;return a(),c("p",zt,[D(T(((V=r(e).lastUpdated)==null?void 0:V.text)||r(e).lastUpdatedText||"Last updated")+": ",1),v("time",{datetime:u.value},T(h.value),9,Kt)])}}}),Rt=k(qt,[["__scopeId","data-v-7e05ebdb"]]),Ce=o=>(B("data-v-d4a0bba5"),o=o(),H(),o),Wt={key:0,class:"VPDocFooter"},Jt={key:0,class:"edit-info"},Yt={key:0,class:"edit-link"},Xt=Ce(()=>v("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),Qt={key:1,class:"last-updated"},Zt={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},xt=Ce(()=>v("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),eo={class:"pager"},to=["innerHTML"],oo=["innerHTML"],so={class:"pager"},no=["innerHTML"],ao=["innerHTML"],ro=_({__name:"VPDocFooter",setup(o){const{theme:e,page:t,frontmatter:n}=S(),s=Ut(),i=Gt(),u=$(()=>e.value.editLink&&n.value.editLink!==!1),h=$(()=>t.value.lastUpdated&&n.value.lastUpdated!==!1),p=$(()=>u.value||h.value||i.value.prev||i.value.next);return(g,V)=>{var y,P,w,L;return p.value?(a(),c("footer",Wt,[l(g.$slots,"doc-footer-before",{},void 0,!0),u.value||h.value?(a(),c("div",Jt,[u.value?(a(),c("div",Yt,[m(F,{class:"edit-link-button",href:r(s).url,"no-icon":!0},{default:d(()=>[Xt,D(" "+T(r(s).text),1)]),_:1},8,["href"])])):f("",!0),h.value?(a(),c("div",Qt,[m(Rt)])):f("",!0)])):f("",!0),(y=r(i).prev)!=null&&y.link||(P=r(i).next)!=null&&P.link?(a(),c("nav",Zt,[xt,v("div",eo,[(w=r(i).prev)!=null&&w.link?(a(),b(F,{key:0,class:"pager-link prev",href:r(i).prev.link},{default:d(()=>{var A;return[v("span",{class:"desc",innerHTML:((A=r(e).docFooter)==null?void 0:A.prev)||"Previous page"},null,8,to),v("span",{class:"title",innerHTML:r(i).prev.text},null,8,oo)]}),_:1},8,["href"])):f("",!0)]),v("div",so,[(L=r(i).next)!=null&&L.link?(a(),b(F,{key:0,class:"pager-link next",href:r(i).next.link},{default:d(()=>{var A;return[v("span",{class:"desc",innerHTML:((A=r(e).docFooter)==null?void 0:A.next)||"Next page"},null,8,no),v("span",{class:"title",innerHTML:r(i).next.text},null,8,ao)]}),_:1},8,["href"])):f("",!0)])])):f("",!0)])):f("",!0)}}}),io=k(ro,[["__scopeId","data-v-d4a0bba5"]]),lo=o=>(B("data-v-39a288b8"),o=o(),H(),o),co={class:"container"},uo=lo(()=>v("div",{class:"aside-curtain"},null,-1)),vo={class:"aside-container"},po={class:"aside-content"},ho={class:"content"},fo={class:"content-container"},_o={class:"main"},mo=_({__name:"VPDoc",setup(o){const{theme:e}=S(),t=te(),{hasSidebar:n,hasAside:s,leftAside:i}=O(),u=$(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(h,p)=>{const g=K("Content");return a(),c("div",{class:M(["VPDoc",{"has-sidebar":r(n),"has-aside":r(s)}])},[l(h.$slots,"doc-top",{},void 0,!0),v("div",co,[r(s)?(a(),c("div",{key:0,class:M(["aside",{"left-aside":r(i)}])},[uo,v("div",vo,[v("div",po,[m(Ot,null,{"aside-top":d(()=>[l(h.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":d(()=>[l(h.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":d(()=>[l(h.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":d(()=>[l(h.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":d(()=>[l(h.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":d(()=>[l(h.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):f("",!0),v("div",ho,[v("div",fo,[l(h.$slots,"doc-before",{},void 0,!0),v("main",_o,[m(g,{class:M(["vp-doc",[u.value,r(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),m(io,null,{"doc-footer-before":d(()=>[l(h.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),l(h.$slots,"doc-after",{},void 0,!0)])])]),l(h.$slots,"doc-bottom",{},void 0,!0)],2)}}}),ko=k(mo,[["__scopeId","data-v-39a288b8"]]),bo=_({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(o){const e=o,t=$(()=>e.href&&Ve.test(e.href)),n=$(()=>e.tag||e.href?"a":"button");return(s,i)=>(a(),b(R(n.value),{class:M(["VPButton",[s.size,s.theme]]),href:s.href?r(fe)(s.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:d(()=>[D(T(s.text),1)]),_:1},8,["class","href","target","rel"]))}}),$o=k(bo,[["__scopeId","data-v-cad61b99"]]),go=["src","alt"],yo=_({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(o){return(e,t)=>{const n=K("VPImage",!0);return e.image?(a(),c(C,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),c("img",Y({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:r(he)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,go)):(a(),c(C,{key:1},[m(n,Y({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),m(n,Y({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):f("",!0)}}}),Q=k(yo,[["__scopeId","data-v-8426fc1a"]]),Po=o=>(B("data-v-303bb580"),o=o(),H(),o),Lo={class:"container"},Vo={class:"main"},So={key:0,class:"name"},wo=["innerHTML"],Io=["innerHTML"],To=["innerHTML"],No={key:0,class:"actions"},Mo={key:0,class:"image"},Ao={class:"image-container"},Co=Po(()=>v("div",{class:"image-bg"},null,-1)),Bo=_({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(o){const e=oe("hero-image-slot-exists");return(t,n)=>(a(),c("div",{class:M(["VPHero",{"has-image":t.image||r(e)}])},[v("div",Lo,[v("div",Vo,[l(t.$slots,"home-hero-info-before",{},void 0,!0),l(t.$slots,"home-hero-info",{},()=>[t.name?(a(),c("h1",So,[v("span",{innerHTML:t.name,class:"clip"},null,8,wo)])):f("",!0),t.text?(a(),c("p",{key:1,innerHTML:t.text,class:"text"},null,8,Io)):f("",!0),t.tagline?(a(),c("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,To)):f("",!0)],!0),l(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(a(),c("div",No,[(a(!0),c(C,null,E(t.actions,s=>(a(),c("div",{key:s.link,class:"action"},[m($o,{tag:"a",size:"medium",theme:s.theme,text:s.text,href:s.link,target:s.target,rel:s.rel},null,8,["theme","text","href","target","rel"])]))),128))])):f("",!0),l(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||r(e)?(a(),c("div",Mo,[v("div",Ao,[Co,l(t.$slots,"home-hero-image",{},()=>[t.image?(a(),b(Q,{key:0,class:"image-src",image:t.image},null,8,["image"])):f("",!0)],!0)])])):f("",!0)])],2))}}),Ho=k(Bo,[["__scopeId","data-v-303bb580"]]),Eo=_({__name:"VPHomeHero",setup(o){const{frontmatter:e}=S();return(t,n)=>r(e).hero?(a(),b(Ho,{key:0,class:"VPHomeHero",name:r(e).hero.name,text:r(e).hero.text,tagline:r(e).hero.tagline,image:r(e).hero.image,actions:r(e).hero.actions},{"home-hero-info-before":d(()=>[l(t.$slots,"home-hero-info-before")]),"home-hero-info":d(()=>[l(t.$slots,"home-hero-info")]),"home-hero-info-after":d(()=>[l(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":d(()=>[l(t.$slots,"home-hero-actions-after")]),"home-hero-image":d(()=>[l(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):f("",!0)}}),Fo=o=>(B("data-v-a3976bdc"),o=o(),H(),o),Do={class:"box"},Oo={key:0,class:"icon"},Uo=["innerHTML"],Go=["innerHTML"],jo=["innerHTML"],zo={key:4,class:"link-text"},Ko={class:"link-text-value"},qo=Fo(()=>v("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Ro=_({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(o){return(e,t)=>(a(),b(F,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:d(()=>[v("article",Do,[typeof e.icon=="object"&&e.icon.wrap?(a(),c("div",Oo,[m(Q,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(a(),b(Q,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(a(),c("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Uo)):f("",!0),v("h2",{class:"title",innerHTML:e.title},null,8,Go),e.details?(a(),c("p",{key:3,class:"details",innerHTML:e.details},null,8,jo)):f("",!0),e.linkText?(a(),c("div",zo,[v("p",Ko,[D(T(e.linkText)+" ",1),qo])])):f("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Wo=k(Ro,[["__scopeId","data-v-a3976bdc"]]),Jo={key:0,class:"VPFeatures"},Yo={class:"container"},Xo={class:"items"},Qo=_({__name:"VPFeatures",props:{features:{}},setup(o){const e=o,t=$(()=>{const n=e.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,s)=>n.features?(a(),c("div",Jo,[v("div",Yo,[v("div",Xo,[(a(!0),c(C,null,E(n.features,i=>(a(),c("div",{key:i.title,class:M(["item",[t.value]])},[m(Wo,{icon:i.icon,title:i.title,details:i.details,link:i.link,"link-text":i.linkText,rel:i.rel,target:i.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):f("",!0)}}),Zo=k(Qo,[["__scopeId","data-v-a6181336"]]),xo=_({__name:"VPHomeFeatures",setup(o){const{frontmatter:e}=S();return(t,n)=>r(e).features?(a(),b(Zo,{key:0,class:"VPHomeFeatures",features:r(e).features},null,8,["features"])):f("",!0)}}),es=_({__name:"VPHomeContent",setup(o){const{width:e}=Re({initialWidth:0,includeScrollbar:!1});return(t,n)=>(a(),c("div",{class:"vp-doc container",style:Se(r(e)?{"--vp-offset":`calc(50% - ${r(e)/2}px)`}:{})},[l(t.$slots,"default",{},void 0,!0)],4))}}),ts=k(es,[["__scopeId","data-v-8e2d4988"]]),os={class:"VPHome"},ss=_({__name:"VPHome",setup(o){const{frontmatter:e}=S();return(t,n)=>{const s=K("Content");return a(),c("div",os,[l(t.$slots,"home-hero-before",{},void 0,!0),m(Eo,null,{"home-hero-info-before":d(()=>[l(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":d(()=>[l(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":d(()=>[l(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":d(()=>[l(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":d(()=>[l(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),l(t.$slots,"home-hero-after",{},void 0,!0),l(t.$slots,"home-features-before",{},void 0,!0),m(xo),l(t.$slots,"home-features-after",{},void 0,!0),r(e).markdownStyles!==!1?(a(),b(ts,{key:0},{default:d(()=>[m(s)]),_:1})):(a(),b(s,{key:1}))])}}}),ns=k(ss,[["__scopeId","data-v-686f80a6"]]),as={},rs={class:"VPPage"};function is(o,e){const t=K("Content");return a(),c("div",rs,[l(o.$slots,"page-top"),m(t),l(o.$slots,"page-bottom")])}const ls=k(as,[["render",is]]),cs=_({__name:"VPContent",setup(o){const{page:e,frontmatter:t}=S(),{hasSidebar:n}=O();return(s,i)=>(a(),c("div",{class:M(["VPContent",{"has-sidebar":r(n),"is-home":r(t).layout==="home"}]),id:"VPContent"},[r(e).isNotFound?l(s.$slots,"not-found",{key:0},()=>[m(mt)],!0):r(t).layout==="page"?(a(),b(ls,{key:1},{"page-top":d(()=>[l(s.$slots,"page-top",{},void 0,!0)]),"page-bottom":d(()=>[l(s.$slots,"page-bottom",{},void 0,!0)]),_:3})):r(t).layout==="home"?(a(),b(ns,{key:2},{"home-hero-before":d(()=>[l(s.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":d(()=>[l(s.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":d(()=>[l(s.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":d(()=>[l(s.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":d(()=>[l(s.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":d(()=>[l(s.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":d(()=>[l(s.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":d(()=>[l(s.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":d(()=>[l(s.$slots,"home-features-after",{},void 0,!0)]),_:3})):r(t).layout&&r(t).layout!=="doc"?(a(),b(R(r(t).layout),{key:3})):(a(),b(ko,{key:4},{"doc-top":d(()=>[l(s.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":d(()=>[l(s.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":d(()=>[l(s.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":d(()=>[l(s.$slots,"doc-before",{},void 0,!0)]),"doc-after":d(()=>[l(s.$slots,"doc-after",{},void 0,!0)]),"aside-top":d(()=>[l(s.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":d(()=>[l(s.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":d(()=>[l(s.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":d(()=>[l(s.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":d(()=>[l(s.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":d(()=>[l(s.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),us=k(cs,[["__scopeId","data-v-1428d186"]]),ds={class:"container"},vs=["innerHTML"],ps=["innerHTML"],hs=_({__name:"VPFooter",setup(o){const{theme:e,frontmatter:t}=S(),{hasSidebar:n}=O();return(s,i)=>r(e).footer&&r(t).footer!==!1?(a(),c("footer",{key:0,class:M(["VPFooter",{"has-sidebar":r(n)}])},[v("div",ds,[r(e).footer.message?(a(),c("p",{key:0,class:"message",innerHTML:r(e).footer.message},null,8,vs)):f("",!0),r(e).footer.copyright?(a(),c("p",{key:1,class:"copyright",innerHTML:r(e).footer.copyright},null,8,ps)):f("",!0)])],2)):f("",!0)}}),fs=k(hs,[["__scopeId","data-v-e315a0ad"]]);function _s(){const{theme:o,frontmatter:e}=S(),t=Le([]),n=$(()=>t.value.length>0);return ee(()=>{t.value=_e(e.value.outline??o.value.outline)}),{headers:t,hasLocalNav:n}}const ms=o=>(B("data-v-17a5e62e"),o=o(),H(),o),ks={class:"menu-text"},bs=ms(()=>v("span",{class:"vpi-chevron-right icon"},null,-1)),$s={class:"header"},gs={class:"outline"},ys=_({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(o){const e=o,{theme:t}=S(),n=N(!1),s=N(0),i=N(),u=N();function h(y){var P;(P=i.value)!=null&&P.contains(y.target)||(n.value=!1)}j(n,y=>{if(y){document.addEventListener("click",h);return}document.removeEventListener("click",h)}),We("Escape",()=>{n.value=!1}),ee(()=>{n.value=!1});function p(){n.value=!n.value,s.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function g(y){y.target.classList.contains("outline-link")&&(u.value&&(u.value.style.transition="none"),Je(()=>{n.value=!1}))}function V(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(y,P)=>(a(),c("div",{class:"VPLocalNavOutlineDropdown",style:Se({"--vp-vh":s.value+"px"}),ref_key:"main",ref:i},[y.headers.length>0?(a(),c("button",{key:0,onClick:p,class:M({open:n.value})},[v("span",ks,T(r(Me)(r(t))),1),bs],2)):(a(),c("button",{key:1,onClick:V},T(r(t).returnToTopLabel||"Return to top"),1)),m(pe,{name:"flyout"},{default:d(()=>[n.value?(a(),c("div",{key:0,ref_key:"items",ref:u,class:"items",onClick:g},[v("div",$s,[v("a",{class:"top-link",href:"#",onClick:V},T(r(t).returnToTopLabel||"Return to top"),1)]),v("div",gs,[m(Ae,{headers:y.headers},null,8,["headers"])])],512)):f("",!0)]),_:1})],4))}}),Ps=k(ys,[["__scopeId","data-v-17a5e62e"]]),Ls=o=>(B("data-v-a6f0e41e"),o=o(),H(),o),Vs={class:"container"},Ss=["aria-expanded"],ws=Ls(()=>v("span",{class:"vpi-align-left menu-icon"},null,-1)),Is={class:"menu-text"},Ts=_({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(o){const{theme:e,frontmatter:t}=S(),{hasSidebar:n}=O(),{headers:s}=_s(),{y:i}=we(),u=N(0);W(()=>{u.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),ee(()=>{s.value=_e(t.value.outline??e.value.outline)});const h=$(()=>s.value.length===0),p=$(()=>h.value&&!n.value),g=$(()=>({VPLocalNav:!0,"has-sidebar":n.value,empty:h.value,fixed:p.value}));return(V,y)=>r(t).layout!=="home"&&(!p.value||r(i)>=u.value)?(a(),c("div",{key:0,class:M(g.value)},[v("div",Vs,[r(n)?(a(),c("button",{key:0,class:"menu","aria-expanded":V.open,"aria-controls":"VPSidebarNav",onClick:y[0]||(y[0]=P=>V.$emit("open-menu"))},[ws,v("span",Is,T(r(e).sidebarMenuLabel||"Menu"),1)],8,Ss)):f("",!0),m(Ps,{headers:r(s),navHeight:u.value},null,8,["headers","navHeight"])])],2)):f("",!0)}}),Ns=k(Ts,[["__scopeId","data-v-a6f0e41e"]]);function Ms(){const o=N(!1);function e(){o.value=!0,window.addEventListener("resize",s)}function t(){o.value=!1,window.removeEventListener("resize",s)}function n(){o.value?t():e()}function s(){window.outerWidth>=768&&t()}const i=te();return j(()=>i.path,t),{isScreenOpen:o,openScreen:e,closeScreen:t,toggleScreen:n}}const As={},Cs={class:"VPSwitch",type:"button",role:"switch"},Bs={class:"check"},Hs={key:0,class:"icon"};function Es(o,e){return a(),c("button",Cs,[v("span",Bs,[o.$slots.default?(a(),c("span",Hs,[l(o.$slots,"default",{},void 0,!0)])):f("",!0)])])}const Fs=k(As,[["render",Es],["__scopeId","data-v-1d5665e3"]]),Be=o=>(B("data-v-d1f28634"),o=o(),H(),o),Ds=Be(()=>v("span",{class:"vpi-sun sun"},null,-1)),Os=Be(()=>v("span",{class:"vpi-moon moon"},null,-1)),Us=_({__name:"VPSwitchAppearance",setup(o){const{isDark:e,theme:t}=S(),n=oe("toggle-appearance",()=>{e.value=!e.value}),s=$(()=>e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme");return(i,u)=>(a(),b(Fs,{title:s.value,class:"VPSwitchAppearance","aria-checked":r(e),onClick:r(n)},{default:d(()=>[Ds,Os]),_:1},8,["title","aria-checked","onClick"]))}}),me=k(Us,[["__scopeId","data-v-d1f28634"]]),Gs={key:0,class:"VPNavBarAppearance"},js=_({__name:"VPNavBarAppearance",setup(o){const{site:e}=S();return(t,n)=>r(e).appearance&&r(e).appearance!=="force-dark"?(a(),c("div",Gs,[m(me)])):f("",!0)}}),zs=k(js,[["__scopeId","data-v-e6aabb21"]]),ke=N();let He=!1,le=0;function Ks(o){const e=N(!1);if(se){!He&&qs(),le++;const t=j(ke,n=>{var s,i,u;n===o.el.value||(s=o.el.value)!=null&&s.contains(n)?(e.value=!0,(i=o.onFocus)==null||i.call(o)):(e.value=!1,(u=o.onBlur)==null||u.call(o))});x(()=>{t(),le--,le||Rs()})}return Ye(e)}function qs(){document.addEventListener("focusin",Ee),He=!0,ke.value=document.activeElement}function Rs(){document.removeEventListener("focusin",Ee)}function Ee(){ke.value=document.activeElement}const Ws={class:"VPMenuLink"},Js=_({__name:"VPMenuLink",props:{item:{}},setup(o){const{page:e}=S();return(t,n)=>(a(),c("div",Ws,[m(F,{class:M({active:r(z)(r(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:d(()=>[D(T(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),ne=k(Js,[["__scopeId","data-v-43f1e123"]]),Ys={class:"VPMenuGroup"},Xs={key:0,class:"title"},Qs=_({__name:"VPMenuGroup",props:{text:{},items:{}},setup(o){return(e,t)=>(a(),c("div",Ys,[e.text?(a(),c("p",Xs,T(e.text),1)):f("",!0),(a(!0),c(C,null,E(e.items,n=>(a(),c(C,null,["link"in n?(a(),b(ne,{key:0,item:n},null,8,["item"])):f("",!0)],64))),256))]))}}),Zs=k(Qs,[["__scopeId","data-v-69e747b5"]]),xs={class:"VPMenu"},en={key:0,class:"items"},tn=_({__name:"VPMenu",props:{items:{}},setup(o){return(e,t)=>(a(),c("div",xs,[e.items?(a(),c("div",en,[(a(!0),c(C,null,E(e.items,n=>(a(),c(C,{key:n.text},["link"in n?(a(),b(ne,{key:0,item:n},null,8,["item"])):(a(),b(Zs,{key:1,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):f("",!0),l(e.$slots,"default",{},void 0,!0)]))}}),on=k(tn,[["__scopeId","data-v-e7ea1737"]]),sn=o=>(B("data-v-b6c34ac9"),o=o(),H(),o),nn=["aria-expanded","aria-label"],an={key:0,class:"text"},rn=["innerHTML"],ln=sn(()=>v("span",{class:"vpi-chevron-down text-icon"},null,-1)),cn={key:1,class:"vpi-more-horizontal icon"},un={class:"menu"},dn=_({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(o){const e=N(!1),t=N();Ks({el:t,onBlur:n});function n(){e.value=!1}return(s,i)=>(a(),c("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:i[1]||(i[1]=u=>e.value=!0),onMouseleave:i[2]||(i[2]=u=>e.value=!1)},[v("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":s.label,onClick:i[0]||(i[0]=u=>e.value=!e.value)},[s.button||s.icon?(a(),c("span",an,[s.icon?(a(),c("span",{key:0,class:M([s.icon,"option-icon"])},null,2)):f("",!0),s.button?(a(),c("span",{key:1,innerHTML:s.button},null,8,rn)):f("",!0),ln])):(a(),c("span",cn))],8,nn),v("div",un,[m(on,{items:s.items},{default:d(()=>[l(s.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),be=k(dn,[["__scopeId","data-v-b6c34ac9"]]),vn=["href","aria-label","innerHTML"],pn=_({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(o){const e=o,t=$(()=>typeof e.icon=="object"?e.icon.svg:``);return(n,s)=>(a(),c("a",{class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,vn))}}),hn=k(pn,[["__scopeId","data-v-eee4e7cb"]]),fn={class:"VPSocialLinks"},_n=_({__name:"VPSocialLinks",props:{links:{}},setup(o){return(e,t)=>(a(),c("div",fn,[(a(!0),c(C,null,E(e.links,({link:n,icon:s,ariaLabel:i})=>(a(),b(hn,{key:n,icon:s,link:n,ariaLabel:i},null,8,["icon","link","ariaLabel"]))),128))]))}}),$e=k(_n,[["__scopeId","data-v-7bc22406"]]),mn={key:0,class:"group translations"},kn={class:"trans-title"},bn={key:1,class:"group"},$n={class:"item appearance"},gn={class:"label"},yn={class:"appearance-action"},Pn={key:2,class:"group"},Ln={class:"item social-links"},Vn=_({__name:"VPNavBarExtra",setup(o){const{site:e,theme:t}=S(),{localeLinks:n,currentLang:s}=J({correspondingLink:!0}),i=$(()=>n.value.length&&s.value.label||e.value.appearance||t.value.socialLinks);return(u,h)=>i.value?(a(),b(be,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:d(()=>[r(n).length&&r(s).label?(a(),c("div",mn,[v("p",kn,T(r(s).label),1),(a(!0),c(C,null,E(r(n),p=>(a(),b(ne,{key:p.link,item:p},null,8,["item"]))),128))])):f("",!0),r(e).appearance&&r(e).appearance!=="force-dark"?(a(),c("div",bn,[v("div",$n,[v("p",gn,T(r(t).darkModeSwitchLabel||"Appearance"),1),v("div",yn,[m(me)])])])):f("",!0),r(t).socialLinks?(a(),c("div",Pn,[v("div",Ln,[m($e,{class:"social-links-list",links:r(t).socialLinks},null,8,["links"])])])):f("",!0)]),_:1})):f("",!0)}}),Sn=k(Vn,[["__scopeId","data-v-d0bd9dde"]]),wn=o=>(B("data-v-e5dd9c1c"),o=o(),H(),o),In=["aria-expanded"],Tn=wn(()=>v("span",{class:"container"},[v("span",{class:"top"}),v("span",{class:"middle"}),v("span",{class:"bottom"})],-1)),Nn=[Tn],Mn=_({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(o){return(e,t)=>(a(),c("button",{type:"button",class:M(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>e.$emit("click"))},Nn,10,In))}}),An=k(Mn,[["__scopeId","data-v-e5dd9c1c"]]),Cn=["innerHTML"],Bn=_({__name:"VPNavBarMenuLink",props:{item:{}},setup(o){const{page:e}=S();return(t,n)=>(a(),b(F,{class:M({VPNavBarMenuLink:!0,active:r(z)(r(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,noIcon:t.item.noIcon,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:d(()=>[v("span",{innerHTML:t.item.text},null,8,Cn)]),_:1},8,["class","href","noIcon","target","rel"]))}}),Hn=k(Bn,[["__scopeId","data-v-9c663999"]]),En=_({__name:"VPNavBarMenuGroup",props:{item:{}},setup(o){const e=o,{page:t}=S(),n=i=>"link"in i?z(t.value.relativePath,i.link,!!e.item.activeMatch):i.items.some(n),s=$(()=>n(e.item));return(i,u)=>(a(),b(be,{class:M({VPNavBarMenuGroup:!0,active:r(z)(r(t).relativePath,i.item.activeMatch,!!i.item.activeMatch)||s.value}),button:i.item.text,items:i.item.items},null,8,["class","button","items"]))}}),Fn=o=>(B("data-v-7f418b0f"),o=o(),H(),o),Dn={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},On=Fn(()=>v("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Un=_({__name:"VPNavBarMenu",setup(o){const{theme:e}=S();return(t,n)=>r(e).nav?(a(),c("nav",Dn,[On,(a(!0),c(C,null,E(r(e).nav,s=>(a(),c(C,{key:s.text},["link"in s?(a(),b(Hn,{key:0,item:s},null,8,["item"])):(a(),b(En,{key:1,item:s},null,8,["item"]))],64))),128))])):f("",!0)}}),Gn=k(Un,[["__scopeId","data-v-7f418b0f"]]);function jn(o){const{localeIndex:e,theme:t}=S();function n(s){var L,A,I;const i=s.split("."),u=(L=t.value.search)==null?void 0:L.options,h=u&&typeof u=="object",p=h&&((I=(A=u.locales)==null?void 0:A[e.value])==null?void 0:I.translations)||null,g=h&&u.translations||null;let V=p,y=g,P=o;const w=i.pop();for(const U of i){let G=null;const q=P==null?void 0:P[U];q&&(G=P=q);const ae=y==null?void 0:y[U];ae&&(G=y=ae);const re=V==null?void 0:V[U];re&&(G=V=re),q||(P=G),ae||(y=G),re||(V=G)}return(V==null?void 0:V[w])??(y==null?void 0:y[w])??(P==null?void 0:P[w])??""}return n}const zn=["aria-label"],Kn={class:"DocSearch-Button-Container"},qn=v("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Rn={class:"DocSearch-Button-Placeholder"},Wn=v("span",{class:"DocSearch-Button-Keys"},[v("kbd",{class:"DocSearch-Button-Key"}),v("kbd",{class:"DocSearch-Button-Key"},"K")],-1),ge=_({__name:"VPNavBarSearchButton",setup(o){const t=jn({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(n,s)=>(a(),c("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":r(t)("button.buttonAriaLabel")},[v("span",Kn,[qn,v("span",Rn,T(r(t)("button.buttonText")),1)]),Wn],8,zn))}}),Jn={class:"VPNavBarSearch"},Yn={id:"local-search"},Xn={key:1,id:"docsearch"},Qn=_({__name:"VPNavBarSearch",setup(o){const e=()=>null,t=Xe(()=>Qe(()=>import("./VPAlgoliaSearchBox.Fj2CHPkL.js"),__vite__mapDeps([0,1]))),{theme:n}=S(),s=N(!1),i=N(!1),u=()=>{const P="VPAlgoliaPreconnect";(window.requestIdleCallback||setTimeout)(()=>{var A;const L=document.createElement("link");L.id=P,L.rel="preconnect",L.href=`https://${(((A=n.value.search)==null?void 0:A.options)??n.value.algolia).appId}-dsn.algolia.net`,L.crossOrigin="",document.head.appendChild(L)})};W(()=>{u();const P=L=>{(L.key.toLowerCase()==="k"&&(L.metaKey||L.ctrlKey)||!g(L)&&L.key==="/")&&(L.preventDefault(),h(),w())},w=()=>{window.removeEventListener("keydown",P)};window.addEventListener("keydown",P),x(w)});function h(){s.value||(s.value=!0,setTimeout(p,16))}function p(){const P=new Event("keydown");P.key="k",P.metaKey=!0,window.dispatchEvent(P),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||p()},16)}function g(P){const w=P.target,L=w.tagName;return w.isContentEditable||L==="INPUT"||L==="SELECT"||L==="TEXTAREA"}const V=N(!1),y="algolia";return(P,w)=>{var L;return a(),c("div",Jn,[r(y)==="local"?(a(),c(C,{key:0},[V.value?(a(),b(r(e),{key:0,onClose:w[0]||(w[0]=A=>V.value=!1)})):f("",!0),v("div",Yn,[m(ge,{onClick:w[1]||(w[1]=A=>V.value=!0)})])],64)):r(y)==="algolia"?(a(),c(C,{key:1},[s.value?(a(),b(r(t),{key:0,algolia:((L=r(n).search)==null?void 0:L.options)??r(n).algolia,onVnodeBeforeMount:w[2]||(w[2]=A=>i.value=!0)},null,8,["algolia"])):f("",!0),i.value?f("",!0):(a(),c("div",Xn,[m(ge,{onClick:h})]))],64)):f("",!0)])}}}),Zn=_({__name:"VPNavBarSocialLinks",setup(o){const{theme:e}=S();return(t,n)=>r(e).socialLinks?(a(),b($e,{key:0,class:"VPNavBarSocialLinks",links:r(e).socialLinks},null,8,["links"])):f("",!0)}}),xn=k(Zn,[["__scopeId","data-v-0394ad82"]]),ea=["href","rel","target"],ta={key:1},oa={key:2},sa=_({__name:"VPNavBarTitle",setup(o){const{site:e,theme:t}=S(),{hasSidebar:n}=O(),{currentLang:s}=J(),i=$(()=>{var p;return typeof t.value.logoLink=="string"?t.value.logoLink:(p=t.value.logoLink)==null?void 0:p.link}),u=$(()=>{var p;return typeof t.value.logoLink=="string"||(p=t.value.logoLink)==null?void 0:p.rel}),h=$(()=>{var p;return typeof t.value.logoLink=="string"||(p=t.value.logoLink)==null?void 0:p.target});return(p,g)=>(a(),c("div",{class:M(["VPNavBarTitle",{"has-sidebar":r(n)}])},[v("a",{class:"title",href:i.value??r(fe)(r(s).link),rel:u.value,target:h.value},[l(p.$slots,"nav-bar-title-before",{},void 0,!0),r(t).logo?(a(),b(Q,{key:0,class:"logo",image:r(t).logo},null,8,["image"])):f("",!0),r(t).siteTitle?(a(),c("span",ta,T(r(t).siteTitle),1)):r(t).siteTitle===void 0?(a(),c("span",oa,T(r(e).title),1)):f("",!0),l(p.$slots,"nav-bar-title-after",{},void 0,!0)],8,ea)],2))}}),na=k(sa,[["__scopeId","data-v-ab179fa1"]]),aa={class:"items"},ra={class:"title"},ia=_({__name:"VPNavBarTranslations",setup(o){const{theme:e}=S(),{localeLinks:t,currentLang:n}=J({correspondingLink:!0});return(s,i)=>r(t).length&&r(n).label?(a(),b(be,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:r(e).langMenuLabel||"Change language"},{default:d(()=>[v("div",aa,[v("p",ra,T(r(n).label),1),(a(!0),c(C,null,E(r(t),u=>(a(),b(ne,{key:u.link,item:u},null,8,["item"]))),128))])]),_:1},8,["label"])):f("",!0)}}),la=k(ia,[["__scopeId","data-v-88af2de4"]]),ca=o=>(B("data-v-ccf7ddec"),o=o(),H(),o),ua={class:"wrapper"},da={class:"container"},va={class:"title"},pa={class:"content"},ha={class:"content-body"},fa=ca(()=>v("div",{class:"divider"},[v("div",{class:"divider-line"})],-1)),_a=_({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(o){const{y:e}=we(),{hasSidebar:t}=O(),{frontmatter:n}=S(),s=N({});return Pe(()=>{s.value={"has-sidebar":t.value,home:n.value.layout==="home",top:e.value===0}}),(i,u)=>(a(),c("div",{class:M(["VPNavBar",s.value])},[v("div",ua,[v("div",da,[v("div",va,[m(na,null,{"nav-bar-title-before":d(()=>[l(i.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":d(()=>[l(i.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),v("div",pa,[v("div",ha,[l(i.$slots,"nav-bar-content-before",{},void 0,!0),m(Qn,{class:"search"}),m(Gn,{class:"menu"}),m(la,{class:"translations"}),m(zs,{class:"appearance"}),m(xn,{class:"social-links"}),m(Sn,{class:"extra"}),l(i.$slots,"nav-bar-content-after",{},void 0,!0),m(An,{class:"hamburger",active:i.isScreenOpen,onClick:u[0]||(u[0]=h=>i.$emit("toggle-screen"))},null,8,["active"])])])])]),fa],2))}}),ma=k(_a,[["__scopeId","data-v-ccf7ddec"]]),ka={key:0,class:"VPNavScreenAppearance"},ba={class:"text"},$a=_({__name:"VPNavScreenAppearance",setup(o){const{site:e,theme:t}=S();return(n,s)=>r(e).appearance&&r(e).appearance!=="force-dark"?(a(),c("div",ka,[v("p",ba,T(r(t).darkModeSwitchLabel||"Appearance"),1),m(me)])):f("",!0)}}),ga=k($a,[["__scopeId","data-v-2d7af913"]]),ya=_({__name:"VPNavScreenMenuLink",props:{item:{}},setup(o){const e=oe("close-screen");return(t,n)=>(a(),b(F,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:r(e),innerHTML:t.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),Pa=k(ya,[["__scopeId","data-v-7f31e1f6"]]),La=_({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(o){const e=oe("close-screen");return(t,n)=>(a(),b(F,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:r(e)},{default:d(()=>[D(T(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Fe=k(La,[["__scopeId","data-v-19976ae1"]]),Va={class:"VPNavScreenMenuGroupSection"},Sa={key:0,class:"title"},wa=_({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(o){return(e,t)=>(a(),c("div",Va,[e.text?(a(),c("p",Sa,T(e.text),1)):f("",!0),(a(!0),c(C,null,E(e.items,n=>(a(),b(Fe,{key:n.text,item:n},null,8,["item"]))),128))]))}}),Ia=k(wa,[["__scopeId","data-v-8133b170"]]),Ta=o=>(B("data-v-ff6087d4"),o=o(),H(),o),Na=["aria-controls","aria-expanded"],Ma=["innerHTML"],Aa=Ta(()=>v("span",{class:"vpi-plus button-icon"},null,-1)),Ca=["id"],Ba={key:1,class:"group"},Ha=_({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(o){const e=o,t=N(!1),n=$(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function s(){t.value=!t.value}return(i,u)=>(a(),c("div",{class:M(["VPNavScreenMenuGroup",{open:t.value}])},[v("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:s},[v("span",{class:"button-text",innerHTML:i.text},null,8,Ma),Aa],8,Na),v("div",{id:n.value,class:"items"},[(a(!0),c(C,null,E(i.items,h=>(a(),c(C,{key:h.text},["link"in h?(a(),c("div",{key:h.text,class:"item"},[m(Fe,{item:h},null,8,["item"])])):(a(),c("div",Ba,[m(Ia,{text:h.text,items:h.items},null,8,["text","items"])]))],64))),128))],8,Ca)],2))}}),Ea=k(Ha,[["__scopeId","data-v-ff6087d4"]]),Fa={key:0,class:"VPNavScreenMenu"},Da=_({__name:"VPNavScreenMenu",setup(o){const{theme:e}=S();return(t,n)=>r(e).nav?(a(),c("nav",Fa,[(a(!0),c(C,null,E(r(e).nav,s=>(a(),c(C,{key:s.text},["link"in s?(a(),b(Pa,{key:0,item:s},null,8,["item"])):(a(),b(Ea,{key:1,text:s.text||"",items:s.items},null,8,["text","items"]))],64))),128))])):f("",!0)}}),Oa=_({__name:"VPNavScreenSocialLinks",setup(o){const{theme:e}=S();return(t,n)=>r(e).socialLinks?(a(),b($e,{key:0,class:"VPNavScreenSocialLinks",links:r(e).socialLinks},null,8,["links"])):f("",!0)}}),De=o=>(B("data-v-858fe1a4"),o=o(),H(),o),Ua=De(()=>v("span",{class:"vpi-languages icon lang"},null,-1)),Ga=De(()=>v("span",{class:"vpi-chevron-down icon chevron"},null,-1)),ja={class:"list"},za=_({__name:"VPNavScreenTranslations",setup(o){const{localeLinks:e,currentLang:t}=J({correspondingLink:!0}),n=N(!1);function s(){n.value=!n.value}return(i,u)=>r(e).length&&r(t).label?(a(),c("div",{key:0,class:M(["VPNavScreenTranslations",{open:n.value}])},[v("button",{class:"title",onClick:s},[Ua,D(" "+T(r(t).label)+" ",1),Ga]),v("ul",ja,[(a(!0),c(C,null,E(r(e),h=>(a(),c("li",{key:h.link,class:"item"},[m(F,{class:"link",href:h.link},{default:d(()=>[D(T(h.text),1)]),_:2},1032,["href"])]))),128))])],2)):f("",!0)}}),Ka=k(za,[["__scopeId","data-v-858fe1a4"]]),qa={class:"container"},Ra=_({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(o){const e=N(null),t=Ie(se?document.body:null);return(n,s)=>(a(),b(pe,{name:"fade",onEnter:s[0]||(s[0]=i=>t.value=!0),onAfterLeave:s[1]||(s[1]=i=>t.value=!1)},{default:d(()=>[n.open?(a(),c("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[v("div",qa,[l(n.$slots,"nav-screen-content-before",{},void 0,!0),m(Da,{class:"menu"}),m(Ka,{class:"translations"}),m(ga,{class:"appearance"}),m(Oa,{class:"social-links"}),l(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):f("",!0)]),_:3}))}}),Wa=k(Ra,[["__scopeId","data-v-cc5739dd"]]),Ja={key:0,class:"VPNav"},Ya=_({__name:"VPNav",setup(o){const{isScreenOpen:e,closeScreen:t,toggleScreen:n}=Ms(),{frontmatter:s}=S(),i=$(()=>s.value.navbar!==!1);return Te("close-screen",t),Z(()=>{se&&document.documentElement.classList.toggle("hide-nav",!i.value)}),(u,h)=>i.value?(a(),c("header",Ja,[m(ma,{"is-screen-open":r(e),onToggleScreen:r(n)},{"nav-bar-title-before":d(()=>[l(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":d(()=>[l(u.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":d(()=>[l(u.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":d(()=>[l(u.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),m(Wa,{open:r(e)},{"nav-screen-content-before":d(()=>[l(u.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":d(()=>[l(u.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):f("",!0)}}),Xa=k(Ya,[["__scopeId","data-v-ae24b3ad"]]),Oe=o=>(B("data-v-b8d55f3b"),o=o(),H(),o),Qa=["role","tabindex"],Za=Oe(()=>v("div",{class:"indicator"},null,-1)),xa=Oe(()=>v("span",{class:"vpi-chevron-right caret-icon"},null,-1)),er=[xa],tr={key:1,class:"items"},or=_({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(o){const e=o,{collapsed:t,collapsible:n,isLink:s,isActiveLink:i,hasActiveLink:u,hasChildren:h,toggle:p}=gt($(()=>e.item)),g=$(()=>h.value?"section":"div"),V=$(()=>s.value?"a":"div"),y=$(()=>h.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),P=$(()=>s.value?void 0:"button"),w=$(()=>[[`level-${e.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":s.value},{"is-active":i.value},{"has-active":u.value}]);function L(I){"key"in I&&I.key!=="Enter"||!e.item.link&&p()}function A(){e.item.link&&p()}return(I,U)=>{const G=K("VPSidebarItem",!0);return a(),b(R(g.value),{class:M(["VPSidebarItem",w.value])},{default:d(()=>[I.item.text?(a(),c("div",Y({key:0,class:"item",role:P.value},xe(I.item.items?{click:L,keydown:L}:{},!0),{tabindex:I.item.items&&0}),[Za,I.item.link?(a(),b(F,{key:0,tag:V.value,class:"link",href:I.item.link,rel:I.item.rel,target:I.item.target},{default:d(()=>[(a(),b(R(y.value),{class:"text",innerHTML:I.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),b(R(y.value),{key:1,class:"text",innerHTML:I.item.text},null,8,["innerHTML"])),I.item.collapsed!=null&&I.item.items&&I.item.items.length?(a(),c("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:A,onKeydown:Ze(A,["enter"]),tabindex:"0"},er,32)):f("",!0)],16,Qa)):f("",!0),I.item.items&&I.item.items.length?(a(),c("div",tr,[I.depth<5?(a(!0),c(C,{key:0},E(I.item.items,q=>(a(),b(G,{key:q.text,item:q,depth:I.depth+1},null,8,["item","depth"]))),128)):f("",!0)])):f("",!0)]),_:1},8,["class"])}}}),sr=k(or,[["__scopeId","data-v-b8d55f3b"]]),Ue=o=>(B("data-v-575e6a36"),o=o(),H(),o),nr=Ue(()=>v("div",{class:"curtain"},null,-1)),ar={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},rr=Ue(()=>v("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),ir=_({__name:"VPSidebar",props:{open:{type:Boolean}},setup(o){const{sidebarGroups:e,hasSidebar:t}=O(),n=o,s=N(null),i=Ie(se?document.body:null);return j([n,s],()=>{var u;n.open?(i.value=!0,(u=s.value)==null||u.focus()):i.value=!1},{immediate:!0,flush:"post"}),(u,h)=>r(t)?(a(),c("aside",{key:0,class:M(["VPSidebar",{open:u.open}]),ref_key:"navEl",ref:s,onClick:h[0]||(h[0]=et(()=>{},["stop"]))},[nr,v("nav",ar,[rr,l(u.$slots,"sidebar-nav-before",{},void 0,!0),(a(!0),c(C,null,E(r(e),p=>(a(),c("div",{key:p.text,class:"group"},[m(sr,{item:p,depth:0},null,8,["item"])]))),128)),l(u.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):f("",!0)}}),lr=k(ir,[["__scopeId","data-v-575e6a36"]]),cr=_({__name:"VPSkipLink",setup(o){const e=te(),t=N();j(()=>e.path,()=>t.value.focus());function n({target:s}){const i=document.getElementById(decodeURIComponent(s.hash).slice(1));if(i){const u=()=>{i.removeAttribute("tabindex"),i.removeEventListener("blur",u)};i.setAttribute("tabindex","-1"),i.addEventListener("blur",u),i.focus(),window.scrollTo(0,0)}}return(s,i)=>(a(),c(C,null,[v("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),v("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:n}," Skip to content ")],64))}}),ur=k(cr,[["__scopeId","data-v-0f60ec36"]]),dr=_({__name:"Layout",setup(o){const{isOpen:e,open:t,close:n}=O(),s=te();j(()=>s.path,n),$t(e,n);const{frontmatter:i}=S(),u=tt(),h=$(()=>!!u["home-hero-image"]);return Te("hero-image-slot-exists",h),(p,g)=>{const V=K("Content");return r(i).layout!==!1?(a(),c("div",{key:0,class:M(["Layout",r(i).pageClass])},[l(p.$slots,"layout-top",{},void 0,!0),m(ur),m(at,{class:"backdrop",show:r(e),onClick:r(n)},null,8,["show","onClick"]),m(Xa,null,{"nav-bar-title-before":d(()=>[l(p.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":d(()=>[l(p.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":d(()=>[l(p.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":d(()=>[l(p.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":d(()=>[l(p.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":d(()=>[l(p.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),m(Ns,{open:r(e),onOpenMenu:r(t)},null,8,["open","onOpenMenu"]),m(lr,{open:r(e)},{"sidebar-nav-before":d(()=>[l(p.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":d(()=>[l(p.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),m(us,null,{"page-top":d(()=>[l(p.$slots,"page-top",{},void 0,!0)]),"page-bottom":d(()=>[l(p.$slots,"page-bottom",{},void 0,!0)]),"not-found":d(()=>[l(p.$slots,"not-found",{},void 0,!0)]),"home-hero-before":d(()=>[l(p.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":d(()=>[l(p.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":d(()=>[l(p.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":d(()=>[l(p.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":d(()=>[l(p.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":d(()=>[l(p.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":d(()=>[l(p.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":d(()=>[l(p.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":d(()=>[l(p.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":d(()=>[l(p.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":d(()=>[l(p.$slots,"doc-before",{},void 0,!0)]),"doc-after":d(()=>[l(p.$slots,"doc-after",{},void 0,!0)]),"doc-top":d(()=>[l(p.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":d(()=>[l(p.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":d(()=>[l(p.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":d(()=>[l(p.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":d(()=>[l(p.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":d(()=>[l(p.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":d(()=>[l(p.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":d(()=>[l(p.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),m(fs),l(p.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),b(V,{key:1}))}}}),vr=k(dr,[["__scopeId","data-v-5d98c3a5"]]),ye={Layout:vr,enhanceApp:({app:o})=>{o.component("Badge",ot)}},pr={data(){return{show:!1}},mounted(){this.show=navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)&&navigator.language.indexOf("zh")>-1}},hr={key:0,class:"wwads-cn wwads-horizontal","data-id":"296"};function fr(o,e,t,n,s,i){return s.show?(a(),c("div",hr)):f("",!0)}const _r=k(pr,[["render",fr]]),mr={data(){return{show:!1}},mounted(){this.show=navigator.language.indexOf("zh")>-1}},kr={key:0,class:"wwads-cn wwads-vertical","data-id":"296",style:{"margin-bottom":"20px"}};function br(o,e,t,n,s,i){return s.show?(a(),c("div",kr)):f("",!0)}const $r=k(mr,[["render",br]]),yr={...ye,Layout(){return ie(ye.Layout,null,{"doc-top":()=>ie(_r),"aside-top":()=>ie($r)})}};export{yr as R,S as u};
diff --git a/assets/developer_index.md.C1uE1zam.js b/assets/developer_index.md.Dj_O2aWk.js
similarity index 92%
rename from assets/developer_index.md.C1uE1zam.js
rename to assets/developer_index.md.Dj_O2aWk.js
index 895adccc..34f67362 100644
--- a/assets/developer_index.md.C1uE1zam.js
+++ b/assets/developer_index.md.Dj_O2aWk.js
@@ -1 +1 @@
-import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const m=JSON.parse('{"title":"哪吒监控","titleTemplate":"开发手册","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"开发手册","hero":{"name":"开发手册","text":"哪吒监控开发手册","tagline":"我们欢迎你提出高质量的Pull Request,帮助哪吒监控变得更好!","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"开始使用 →","link":"/developer/theme"}]}},"headers":[],"relativePath":"developer/index.md","filePath":"developer/index.md","lastUpdated":1720181562000}'),r={name:"developer/index.md"};function n(o,s,i,d,l,c){return a(),t("div")}const h=e(r,[["render",n]]);export{m as __pageData,h as default};
+import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const m=JSON.parse('{"title":"哪吒监控","titleTemplate":"开发手册","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"开发手册","hero":{"name":"开发手册","text":"哪吒监控开发手册","tagline":"我们欢迎你提出高质量的Pull Request,帮助哪吒监控变得更好!","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"开始使用 →","link":"/developer/theme"}]}},"headers":[],"relativePath":"developer/index.md","filePath":"developer/index.md","lastUpdated":1720452113000}'),r={name:"developer/index.md"};function n(o,s,i,d,l,c){return a(),t("div")}const h=e(r,[["render",n]]);export{m as __pageData,h as default};
diff --git a/assets/developer_index.md.C1uE1zam.lean.js b/assets/developer_index.md.Dj_O2aWk.lean.js
similarity index 92%
rename from assets/developer_index.md.C1uE1zam.lean.js
rename to assets/developer_index.md.Dj_O2aWk.lean.js
index 895adccc..34f67362 100644
--- a/assets/developer_index.md.C1uE1zam.lean.js
+++ b/assets/developer_index.md.Dj_O2aWk.lean.js
@@ -1 +1 @@
-import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const m=JSON.parse('{"title":"哪吒监控","titleTemplate":"开发手册","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"开发手册","hero":{"name":"开发手册","text":"哪吒监控开发手册","tagline":"我们欢迎你提出高质量的Pull Request,帮助哪吒监控变得更好!","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"开始使用 →","link":"/developer/theme"}]}},"headers":[],"relativePath":"developer/index.md","filePath":"developer/index.md","lastUpdated":1720181562000}'),r={name:"developer/index.md"};function n(o,s,i,d,l,c){return a(),t("div")}const h=e(r,[["render",n]]);export{m as __pageData,h as default};
+import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const m=JSON.parse('{"title":"哪吒监控","titleTemplate":"开发手册","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"开发手册","hero":{"name":"开发手册","text":"哪吒监控开发手册","tagline":"我们欢迎你提出高质量的Pull Request,帮助哪吒监控变得更好!","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"开始使用 →","link":"/developer/theme"}]}},"headers":[],"relativePath":"developer/index.md","filePath":"developer/index.md","lastUpdated":1720452113000}'),r={name:"developer/index.md"};function n(o,s,i,d,l,c){return a(),t("div")}const h=e(r,[["render",n]]);export{m as __pageData,h as default};
diff --git a/assets/developer_l10n.md.BsVWQGr8.js b/assets/developer_l10n.md.CITBGPQ_.js
similarity index 95%
rename from assets/developer_l10n.md.BsVWQGr8.js
rename to assets/developer_l10n.md.CITBGPQ_.js
index f7c45f52..cd8e86e6 100644
--- a/assets/developer_l10n.md.BsVWQGr8.js
+++ b/assets/developer_l10n.md.CITBGPQ_.js
@@ -1 +1 @@
-import{_ as e,c as o,o as a,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/l10n.md","filePath":"developer/l10n.md","lastUpdated":1720181562000}'),l={name:"developer/l10n.md"},r=t('

哪吒监控的 Dashboard 已经添加本地化,支持多个语言,你可以在开发新功能时遵循以下步骤来支持本地化

介绍

  1. 你可以直接使用 /resource/l10n/zh-CN.toml 中已有的文本配置来替换新功能中的文本
  2. 如果新功能中有新增文本,请参考 zh-CN.toml 的配置文本,将新文本拉取到 zh-CN.toml 等其他语言的配置文件中,并添加翻译

新本地化文本的添加

  1. /resource/l10n/ 中添加新的语言文本配置
  2. 在新的语言文本配置中拉取其他语言已有的文本配置
  3. 为新的语言文本配置添加翻译
',5),c=[r];function d(n,i,s,_,h,p){return a(),o("div",null,c)}const f=e(l,[["render",d]]);export{u as __pageData,f as default}; +import{_ as e,c as o,o as a,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/l10n.md","filePath":"developer/l10n.md","lastUpdated":1720452113000}'),l={name:"developer/l10n.md"},r=t('

哪吒监控的 Dashboard 已经添加本地化,支持多个语言,你可以在开发新功能时遵循以下步骤来支持本地化

介绍

  1. 你可以直接使用 /resource/l10n/zh-CN.toml 中已有的文本配置来替换新功能中的文本
  2. 如果新功能中有新增文本,请参考 zh-CN.toml 的配置文本,将新文本拉取到 zh-CN.toml 等其他语言的配置文件中,并添加翻译

新本地化文本的添加

  1. /resource/l10n/ 中添加新的语言文本配置
  2. 在新的语言文本配置中拉取其他语言已有的文本配置
  3. 为新的语言文本配置添加翻译
',5),c=[r];function d(n,i,s,_,h,p){return a(),o("div",null,c)}const f=e(l,[["render",d]]);export{u as __pageData,f as default}; diff --git a/assets/developer_l10n.md.BsVWQGr8.lean.js b/assets/developer_l10n.md.CITBGPQ_.lean.js similarity index 84% rename from assets/developer_l10n.md.BsVWQGr8.lean.js rename to assets/developer_l10n.md.CITBGPQ_.lean.js index 5856d4a2..6f3f3e9f 100644 --- a/assets/developer_l10n.md.BsVWQGr8.lean.js +++ b/assets/developer_l10n.md.CITBGPQ_.lean.js @@ -1 +1 @@ -import{_ as e,c as o,o as a,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/l10n.md","filePath":"developer/l10n.md","lastUpdated":1720181562000}'),l={name:"developer/l10n.md"},r=t("",5),c=[r];function d(n,i,s,_,h,p){return a(),o("div",null,c)}const f=e(l,[["render",d]]);export{u as __pageData,f as default}; +import{_ as e,c as o,o as a,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/l10n.md","filePath":"developer/l10n.md","lastUpdated":1720452113000}'),l={name:"developer/l10n.md"},r=t("",5),c=[r];function d(n,i,s,_,h,p){return a(),o("div",null,c)}const f=e(l,[["render",d]]);export{u as __pageData,f as default}; diff --git a/assets/developer_theme.md.ByIT4E3T.js b/assets/developer_theme.md.C7nIvTQY.js similarity index 96% rename from assets/developer_theme.md.ByIT4E3T.js rename to assets/developer_theme.md.C7nIvTQY.js index 99194091..35f4d12c 100644 --- a/assets/developer_theme.md.ByIT4E3T.js +++ b/assets/developer_theme.md.C7nIvTQY.js @@ -1 +1 @@ -import{_ as e,c as a,o,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/theme.md","filePath":"developer/theme.md","lastUpdated":1720181562000}'),c={name:"developer/theme.md"},l=t('

哪吒主题开发环境

哪吒面板提供了主题开发环境,你可以使用它来创建新的哪吒监控主题

WARNING

请注意: 此开发环境仅支持 dashboard v0.13.16 及更新版本。

使用说明

  1. 克隆此仓库到本地
  2. 修改 data/config.yaml 中的 Oauth2 配置(回调连接可以填 http://localhost
  3. 运行 docker-compose up
  4. 开始开发
  5. 主题制作完成之后可以将 theme-custom 放置到服务器上的 /opt/nezha/dashboard/theme-custom 位置

FAQ

  • 如果不能使用 80 端口,在 docker-compose.yaml 中修改配置。
',7),d=[l];function r(s,i,h,n,m,_){return o(),a("div",null,d)}const f=e(c,[["render",r]]);export{u as __pageData,f as default}; +import{_ as e,c as a,o,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/theme.md","filePath":"developer/theme.md","lastUpdated":1720452113000}'),c={name:"developer/theme.md"},l=t('

哪吒主题开发环境

哪吒面板提供了主题开发环境,你可以使用它来创建新的哪吒监控主题

WARNING

请注意: 此开发环境仅支持 dashboard v0.13.16 及更新版本。

使用说明

  1. 克隆此仓库到本地
  2. 修改 data/config.yaml 中的 Oauth2 配置(回调连接可以填 http://localhost
  3. 运行 docker-compose up
  4. 开始开发
  5. 主题制作完成之后可以将 theme-custom 放置到服务器上的 /opt/nezha/dashboard/theme-custom 位置

FAQ

  • 如果不能使用 80 端口,在 docker-compose.yaml 中修改配置。
',7),d=[l];function r(s,i,h,n,m,_){return o(),a("div",null,d)}const f=e(c,[["render",r]]);export{u as __pageData,f as default}; diff --git a/assets/developer_theme.md.ByIT4E3T.lean.js b/assets/developer_theme.md.C7nIvTQY.lean.js similarity index 84% rename from assets/developer_theme.md.ByIT4E3T.lean.js rename to assets/developer_theme.md.C7nIvTQY.lean.js index e478f5c5..3258178e 100644 --- a/assets/developer_theme.md.ByIT4E3T.lean.js +++ b/assets/developer_theme.md.C7nIvTQY.lean.js @@ -1 +1 @@ -import{_ as e,c as a,o,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/theme.md","filePath":"developer/theme.md","lastUpdated":1720181562000}'),c={name:"developer/theme.md"},l=t("",7),d=[l];function r(s,i,h,n,m,_){return o(),a("div",null,d)}const f=e(c,[["render",r]]);export{u as __pageData,f as default}; +import{_ as e,c as a,o,a4 as t}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/theme.md","filePath":"developer/theme.md","lastUpdated":1720452113000}'),c={name:"developer/theme.md"},l=t("",7),d=[l];function r(s,i,h,n,m,_){return o(),a("div",null,d)}const f=e(c,[["render",r]]);export{u as __pageData,f as default}; diff --git a/assets/en_US_case_case1.md.CfKPbLY-.js b/assets/en_US_case_case1.md.BOjhq4Ov.js similarity index 95% rename from assets/en_US_case_case1.md.CfKPbLY-.js rename to assets/en_US_case_case1.md.BOjhq4Ov.js index 11426570..df29983e 100644 --- a/assets/en_US_case_case1.md.CfKPbLY-.js +++ b/assets/en_US_case_case1.md.BOjhq4Ov.js @@ -1 +1 @@ -import{_ as e,c as t,o as r,a4 as o}from"./chunks/framework.BmdFiWrL.js";const d=JSON.parse('{"title":"Build your own Telegram bot to query server information","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case1.md","filePath":"en_US/case/case1.md","lastUpdated":1720181562000}'),a={name:"en_US/case/case1.md"},n=o('

Build your own Telegram bot to query server information

Contributors:

Project: nezha_api_tgbot (Chinese)

Mirror backup, non-real-time update: nezha_api_tgbot (Chinese)

The bot can request server status information from the Dashboard through the API, and then send the information to the user.
You can build this bot to easily view the current status of a given server without opening the Dashboard.

',6),i=[n];function s(h,_,l,u,c,p){return r(),t("div",null,i)}const m=e(a,[["render",s]]);export{d as __pageData,m as default}; +import{_ as e,c as t,o as r,a4 as o}from"./chunks/framework.BmdFiWrL.js";const d=JSON.parse('{"title":"Build your own Telegram bot to query server information","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case1.md","filePath":"en_US/case/case1.md","lastUpdated":1720452113000}'),a={name:"en_US/case/case1.md"},n=o('

Build your own Telegram bot to query server information

Contributors:

Project: nezha_api_tgbot (Chinese)

Mirror backup, non-real-time update: nezha_api_tgbot (Chinese)

The bot can request server status information from the Dashboard through the API, and then send the information to the user.
You can build this bot to easily view the current status of a given server without opening the Dashboard.

',6),i=[n];function s(h,_,l,u,c,p){return r(),t("div",null,i)}const m=e(a,[["render",s]]);export{d as __pageData,m as default}; diff --git a/assets/en_US_case_case1.md.CfKPbLY-.lean.js b/assets/en_US_case_case1.md.BOjhq4Ov.lean.js similarity index 86% rename from assets/en_US_case_case1.md.CfKPbLY-.lean.js rename to assets/en_US_case_case1.md.BOjhq4Ov.lean.js index 75a9646e..5b408da1 100644 --- a/assets/en_US_case_case1.md.CfKPbLY-.lean.js +++ b/assets/en_US_case_case1.md.BOjhq4Ov.lean.js @@ -1 +1 @@ -import{_ as e,c as t,o as r,a4 as o}from"./chunks/framework.BmdFiWrL.js";const d=JSON.parse('{"title":"Build your own Telegram bot to query server information","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case1.md","filePath":"en_US/case/case1.md","lastUpdated":1720181562000}'),a={name:"en_US/case/case1.md"},n=o("",6),i=[n];function s(h,_,l,u,c,p){return r(),t("div",null,i)}const m=e(a,[["render",s]]);export{d as __pageData,m as default}; +import{_ as e,c as t,o as r,a4 as o}from"./chunks/framework.BmdFiWrL.js";const d=JSON.parse('{"title":"Build your own Telegram bot to query server information","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case1.md","filePath":"en_US/case/case1.md","lastUpdated":1720452113000}'),a={name:"en_US/case/case1.md"},n=o("",6),i=[n];function s(h,_,l,u,c,p){return r(),t("div",null,i)}const m=e(a,[["render",s]]);export{d as __pageData,m as default}; diff --git a/assets/en_US_case_case2.md.Dizq10SC.js b/assets/en_US_case_case2.md.Dk5IBR67.js similarity index 97% rename from assets/en_US_case_case2.md.Dizq10SC.js rename to assets/en_US_case_case2.md.Dk5IBR67.js index 451a01e4..9b7fde56 100644 --- a/assets/en_US_case_case2.md.Dizq10SC.js +++ b/assets/en_US_case_case2.md.Dk5IBR67.js @@ -1 +1 @@ -import{_ as e}from"./chunks/qrcode.CZOxHFH-.js";import{_ as t,c as r,o,a4 as s}from"./chunks/framework.BmdFiWrL.js";const f=JSON.parse('{"title":"Use Siri to run shortcut to check server status in iOS/MacOS","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case2.md","filePath":"en_US/case/case2.md","lastUpdated":1720181562000}'),a={name:"en_US/case/case2.md"},c=s('

Use Siri to run shortcut to check server status in iOS/MacOS

Current Version:V1.0 (Chinese)
Contributor:

Get shortcut command

Scan the following QR code with your iPhone or iPad to get the shortcut

coode


MacOS users please visit here to get the shortcut

How to use

  • After getting the shortcut, open and edit the shortcut
  • Fill in Dashboard URL, API Token, Server ID in the three text boxes
  • Save the edit and test run, if you can get the result, the setting is correct.
  • Modify the name of the shortcut, such as: Server Status, then you can use Siri command: "Hey Siri, Server Status" to get the server status.

WARNING

Each shortcut can only monitor one server, if you need to monitor more than one server, please copy this shortcut several times and configure them separately, then modify the shortcut name separately, such as; Server 1 Status, Server 2 Status, etc.

',8),i=[c];function h(n,u,l,d,m,_){return o(),r("div",null,i)}const b=t(a,[["render",h]]);export{f as __pageData,b as default}; +import{_ as e}from"./chunks/qrcode.CZOxHFH-.js";import{_ as t,c as r,o,a4 as s}from"./chunks/framework.BmdFiWrL.js";const f=JSON.parse('{"title":"Use Siri to run shortcut to check server status in iOS/MacOS","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case2.md","filePath":"en_US/case/case2.md","lastUpdated":1720452113000}'),a={name:"en_US/case/case2.md"},c=s('

Use Siri to run shortcut to check server status in iOS/MacOS

Current Version:V1.0 (Chinese)
Contributor:

Get shortcut command

Scan the following QR code with your iPhone or iPad to get the shortcut

coode


MacOS users please visit here to get the shortcut

How to use

  • After getting the shortcut, open and edit the shortcut
  • Fill in Dashboard URL, API Token, Server ID in the three text boxes
  • Save the edit and test run, if you can get the result, the setting is correct.
  • Modify the name of the shortcut, such as: Server Status, then you can use Siri command: "Hey Siri, Server Status" to get the server status.

WARNING

Each shortcut can only monitor one server, if you need to monitor more than one server, please copy this shortcut several times and configure them separately, then modify the shortcut name separately, such as; Server 1 Status, Server 2 Status, etc.

',8),i=[c];function h(n,u,l,d,m,_){return o(),r("div",null,i)}const b=t(a,[["render",h]]);export{f as __pageData,b as default}; diff --git a/assets/en_US_case_case2.md.Dizq10SC.lean.js b/assets/en_US_case_case2.md.Dk5IBR67.lean.js similarity index 87% rename from assets/en_US_case_case2.md.Dizq10SC.lean.js rename to assets/en_US_case_case2.md.Dk5IBR67.lean.js index 5a9187a8..bce18bd5 100644 --- a/assets/en_US_case_case2.md.Dizq10SC.lean.js +++ b/assets/en_US_case_case2.md.Dk5IBR67.lean.js @@ -1 +1 @@ -import{_ as e}from"./chunks/qrcode.CZOxHFH-.js";import{_ as t,c as r,o,a4 as s}from"./chunks/framework.BmdFiWrL.js";const f=JSON.parse('{"title":"Use Siri to run shortcut to check server status in iOS/MacOS","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case2.md","filePath":"en_US/case/case2.md","lastUpdated":1720181562000}'),a={name:"en_US/case/case2.md"},c=s("",8),i=[c];function h(n,u,l,d,m,_){return o(),r("div",null,i)}const b=t(a,[["render",h]]);export{f as __pageData,b as default}; +import{_ as e}from"./chunks/qrcode.CZOxHFH-.js";import{_ as t,c as r,o,a4 as s}from"./chunks/framework.BmdFiWrL.js";const f=JSON.parse('{"title":"Use Siri to run shortcut to check server status in iOS/MacOS","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case2.md","filePath":"en_US/case/case2.md","lastUpdated":1720452113000}'),a={name:"en_US/case/case2.md"},c=s("",8),i=[c];function h(n,u,l,d,m,_){return o(),r("div",null,i)}const b=t(a,[["render",h]]);export{f as __pageData,b as default}; diff --git a/assets/en_US_case_case3.md.D2raU_Cg.js b/assets/en_US_case_case3.md.QFdIbPHW.js similarity index 98% rename from assets/en_US_case_case3.md.D2raU_Cg.js rename to assets/en_US_case_case3.md.QFdIbPHW.js index af9a7c97..6d354a1a 100644 --- a/assets/en_US_case_case3.md.D2raU_Cg.js +++ b/assets/en_US_case_case3.md.QFdIbPHW.js @@ -1 +1 @@ -import{_ as t,c as e,o as r,a4 as a}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Build your own server status query Telegram bot with multi-language and multi-user support","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case3.md","filePath":"en_US/case/case3.md","lastUpdated":1720181562000}'),d={name:"en_US/case/case3.md"},i=a('

Build your own server status query Telegram bot with multi-language and multi-user support

Contributor:

GitHub project: nezha_telegram_bot(English is already supported)

Mirror backup, non-real-time update : nezha_telegram_bot(English is already supported)

Features

  • [x] Support Chinese/English multi-language switch
  • [x] Support tag statistics (CPU, disk, memory, upstream and downstream speed, traffic statistics, etc.)
  • [x] Support real-time refresh of single server data
  • [x] Support keyboard interactive query
  • [x] Support query by command
  • [x] Support adding bot to group, privacy protection of bot replies in group chat
  • [x] Support bot messages automatic deletion in group chat within 20 seconds
  • [x] Support docker deployment

Commands list

CommandDescriptionPrivate chat only
startGetting started with the keyboard main menu✔️
helphelp message
addAdd Nezha monitoring url link and token✔️
urlAdd Nezha monitoring url link✔️
tokenAdd Nezha monitoring token✔️
infoGet saved Nezha monitoring url link and token✔️
deleteDelete saved Nezha monitoring url link and token✔️
idAdd an integer id after the command to query the information of a single server (refresh button only available in private chat)
allQuery statistics for all servers
searchSearch for keywords in server names (multiple keywords supported, split by spaces)
',9),o=[i];function s(l,n,u,h,p,m){return r(),e("div",null,o)}const _=t(d,[["render",s]]);export{g as __pageData,_ as default}; +import{_ as t,c as e,o as r,a4 as a}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Build your own server status query Telegram bot with multi-language and multi-user support","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case3.md","filePath":"en_US/case/case3.md","lastUpdated":1720452113000}'),d={name:"en_US/case/case3.md"},i=a('

Build your own server status query Telegram bot with multi-language and multi-user support

Contributor:

GitHub project: nezha_telegram_bot(English is already supported)

Mirror backup, non-real-time update : nezha_telegram_bot(English is already supported)

Features

  • [x] Support Chinese/English multi-language switch
  • [x] Support tag statistics (CPU, disk, memory, upstream and downstream speed, traffic statistics, etc.)
  • [x] Support real-time refresh of single server data
  • [x] Support keyboard interactive query
  • [x] Support query by command
  • [x] Support adding bot to group, privacy protection of bot replies in group chat
  • [x] Support bot messages automatic deletion in group chat within 20 seconds
  • [x] Support docker deployment

Commands list

CommandDescriptionPrivate chat only
startGetting started with the keyboard main menu✔️
helphelp message
addAdd Nezha monitoring url link and token✔️
urlAdd Nezha monitoring url link✔️
tokenAdd Nezha monitoring token✔️
infoGet saved Nezha monitoring url link and token✔️
deleteDelete saved Nezha monitoring url link and token✔️
idAdd an integer id after the command to query the information of a single server (refresh button only available in private chat)
allQuery statistics for all servers
searchSearch for keywords in server names (multiple keywords supported, split by spaces)
',9),o=[i];function s(l,n,u,h,p,m){return r(),e("div",null,o)}const _=t(d,[["render",s]]);export{g as __pageData,_ as default}; diff --git a/assets/en_US_case_case3.md.D2raU_Cg.lean.js b/assets/en_US_case_case3.md.QFdIbPHW.lean.js similarity index 87% rename from assets/en_US_case_case3.md.D2raU_Cg.lean.js rename to assets/en_US_case_case3.md.QFdIbPHW.lean.js index b6fdf9a3..658d4093 100644 --- a/assets/en_US_case_case3.md.D2raU_Cg.lean.js +++ b/assets/en_US_case_case3.md.QFdIbPHW.lean.js @@ -1 +1 @@ -import{_ as t,c as e,o as r,a4 as a}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Build your own server status query Telegram bot with multi-language and multi-user support","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case3.md","filePath":"en_US/case/case3.md","lastUpdated":1720181562000}'),d={name:"en_US/case/case3.md"},i=a("",9),o=[i];function s(l,n,u,h,p,m){return r(),e("div",null,o)}const _=t(d,[["render",s]]);export{g as __pageData,_ as default}; +import{_ as t,c as e,o as r,a4 as a}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Build your own server status query Telegram bot with multi-language and multi-user support","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case3.md","filePath":"en_US/case/case3.md","lastUpdated":1720452113000}'),d={name:"en_US/case/case3.md"},i=a("",9),o=[i];function s(l,n,u,h,p,m){return r(),e("div",null,o)}const _=t(d,[["render",s]]);export{g as __pageData,_ as default}; diff --git a/assets/en_US_case_case4.md.DF1C-LPs.js b/assets/en_US_case_case4.md.eqL_yAps.js similarity index 94% rename from assets/en_US_case_case4.md.DF1C-LPs.js rename to assets/en_US_case_case4.md.eqL_yAps.js index 210df07b..220ec336 100644 --- a/assets/en_US_case_case4.md.DF1C-LPs.js +++ b/assets/en_US_case_case4.md.eqL_yAps.js @@ -1 +1 @@ -import{_ as e,c as a,o as t,a4 as r}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Fake-agent, monitoring data cheater","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case4.md","filePath":"en_US/case/case4.md","lastUpdated":1720181562000}'),n={name:"en_US/case/case4.md"},o=r('

Fake-agent, monitoring data cheater

Contributor:

GitHub project: fake-nezha-agent(Chinese)
Mirror backup, non-real-time update :fake-nezha-agent(Chinese)

You can modify the monitoring data uploaded to Dashboard by the Agent
Use it for cheating 😈

',5),i=[o];function s(c,h,_,d,f,l){return t(),a("div",null,i)}const m=e(n,[["render",s]]);export{g as __pageData,m as default}; +import{_ as e,c as a,o as t,a4 as r}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Fake-agent, monitoring data cheater","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case4.md","filePath":"en_US/case/case4.md","lastUpdated":1720452113000}'),n={name:"en_US/case/case4.md"},o=r('

Fake-agent, monitoring data cheater

Contributor:

GitHub project: fake-nezha-agent(Chinese)
Mirror backup, non-real-time update :fake-nezha-agent(Chinese)

You can modify the monitoring data uploaded to Dashboard by the Agent
Use it for cheating 😈

',5),i=[o];function s(c,h,_,d,f,l){return t(),a("div",null,i)}const m=e(n,[["render",s]]);export{g as __pageData,m as default}; diff --git a/assets/en_US_case_case4.md.DF1C-LPs.lean.js b/assets/en_US_case_case4.md.eqL_yAps.lean.js similarity index 85% rename from assets/en_US_case_case4.md.DF1C-LPs.lean.js rename to assets/en_US_case_case4.md.eqL_yAps.lean.js index 9fcd4b05..70345688 100644 --- a/assets/en_US_case_case4.md.DF1C-LPs.lean.js +++ b/assets/en_US_case_case4.md.eqL_yAps.lean.js @@ -1 +1 @@ -import{_ as e,c as a,o as t,a4 as r}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Fake-agent, monitoring data cheater","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case4.md","filePath":"en_US/case/case4.md","lastUpdated":1720181562000}'),n={name:"en_US/case/case4.md"},o=r("",5),i=[o];function s(c,h,_,d,f,l){return t(),a("div",null,i)}const m=e(n,[["render",s]]);export{g as __pageData,m as default}; +import{_ as e,c as a,o as t,a4 as r}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Fake-agent, monitoring data cheater","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case4.md","filePath":"en_US/case/case4.md","lastUpdated":1720452113000}'),n={name:"en_US/case/case4.md"},o=r("",5),i=[o];function s(c,h,_,d,f,l){return t(),a("div",null,i)}const m=e(n,[["render",s]]);export{g as __pageData,m as default}; diff --git a/assets/en_US_case_case5.md.jDhulcN5.js b/assets/en_US_case_case5.md.DvQ5ulUH.js similarity index 99% rename from assets/en_US_case_case5.md.jDhulcN5.js rename to assets/en_US_case_case5.md.DvQ5ulUH.js index 52c60001..21b92181 100644 --- a/assets/en_US_case_case5.md.jDhulcN5.js +++ b/assets/en_US_case_case5.md.DvQ5ulUH.js @@ -1,4 +1,4 @@ -import{_ as e,c as a,o as t,a4 as n}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Nezha server over Argo tunnel","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case5.md","filePath":"en_US/case/case5.md","lastUpdated":1720181562000}'),s={name:"en_US/case/case5.md"},o=n(`

Nezha server over Argo tunnel

Contributors:

GitHub project: Argo-Nezha-Service-Container

Mirror backup (not live update): Argo-Nezha-Service-Container


Catalog


Project Features.

  • Wider scope of application --- As long as there is a network connection, Nezha server can be installed, such as LXC, OpenVZ VPS, Nas Virtual Machine, Container PaaS, etc.
  • Argo tunnel breaks through the restriction of requiring a public network portal --- The traditional Nezha requires two public network ports, one for panel visiting and the other for client reporting, this project uses Cloudflare Argo tunnels and uses intranet tunneling.
  • IPv4 / v6 with higher flexibility --- The traditional Nezha needs to deal with IPv4/v6 compatibility between server and client, and also needs to resolve mismatches through tools such as warp. However, this project does not need to consider these issues at all, and can be docked arbitrarily, which is much more convenient and easy!
  • One Argo tunnel for multiple domains and protocols --- Create an intranet-penetrating Argo tunnel for three domains (hostname) and protocols, which can be used for panel access (http), client reporting (tcp) and ssh (optional).
  • GrpcWebProxy reverse proxy gRPC data port --- with a certificate for tls termination, then Argo's tunnel configuration with https service pointing to this reverse proxy, enable http2 back to the source, grpc(nezha)->GrpcWebProxy->h2(argo)->cf cdn edge->agent
  • Daily automatic backup --- every day at 04:00 BST, the entire Nezha panel folder is automatically backed up to a designated private github repository, including panel themes, panel settings, probe data and tunnel information, the backup retains nearly 5 days of data; the content is so important that it must be placed in the private repository.
  • Automatic daily panel update -- the latest official panel version is automatically detected every day at 4:00 BST, and updated when there is an upgrade.
  • Manual/automatic restore backup --- check the content of online restore file once a minute, and restore immediately when there is any update.
  • Default built-in local probes --- can easily monitor their own server information
  • More secure data --- Argo Tunnel uses TLS encrypted communication to securely transmit application traffic to the Cloudflare network, improving application security and reliability. In addition, Argo Tunnel protects against network threats such as IP leaks and DDoS attacks.
image

Prepare variables to be used

  • Visit the Cloudflare website, select the domain name you want to use, and turn on the network option to turn the gRPC switch on.
image

Add https:// to the beginning of the panel's domain name and /oauth2/callback to the end of the callback address.

imageimageimageimageimage

How to get Argo authentication: json or token

Argo tunnel authentication methods include json and token, use one of the two methods. The former is recommended because the script will handle all the Argo tunnel parameters and paths, while the latter needs to be set manually on the Cloudflare website and is prone to errors.

(Methods 1 - Json):

Easily get Argo tunnel json information through Cloudflare Json Generation Network: https://fscarmen.cloudflare.now.cc

image

(Methods 2 - Token): Manually generate Argo tunnel token information via Cloudflare website.

Go to the cf website: https://dash.cloudflare.com/

  • Go to zero trust and generate token tunnel and message.
  • The data path 443/https is proto.
  • ssh path 22/ssh for < client id >.
imageimageimageimageimageimageimage

PaaS Deployment Example

Image fscarmen/argo-nezha:latest, supports amd64 and arm64 architectures.

Variables used

Variable NameRequiredRemarks
GH_USERYesgithub username for panel admin authorization
GH_CLIENTIDyesapply on github
GH_CLIENTSECRETyesapply on github
GH_BACKUP_USERNoThe github username for backing up Nezha's server-side database on github, if not filled in, it is the same as the account GH_USER for panel management authorization
GH_REPONoThe github repository for backing up Nezha's server-side database files on github
GH_EMAILNogithub's mailbox for git push backups to remote repositories
GH_PATNogithub's PAT
ARGO_AUTHYesArgo Json from https://fscarmen.cloudflare.now.cc
Argo token from Cloudflare official website
ARGO_DOMAINYesArgo domain

Koyeb

Deploy to Koyeb

imageimageimageimageimage

VPS Deployment Method 1 --- docker

  • Note: ARGO_DOMAIN= must be followed by single quotes, which cannot be removed.
  • If the VPS is IPv6 only, please install WARP IPv4 or dual-stack first: https://github.com/fscarmen/warp
  • The backup directory is the dashboard folder in the current path.

docker deployment

docker run -dit \\
+import{_ as e,c as a,o as t,a4 as n}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Nezha server over Argo tunnel","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case5.md","filePath":"en_US/case/case5.md","lastUpdated":1720452113000}'),s={name:"en_US/case/case5.md"},o=n(`

Nezha server over Argo tunnel

Contributors:

GitHub project: Argo-Nezha-Service-Container

Mirror backup (not live update): Argo-Nezha-Service-Container


Catalog


Project Features.

  • Wider scope of application --- As long as there is a network connection, Nezha server can be installed, such as LXC, OpenVZ VPS, Nas Virtual Machine, Container PaaS, etc.
  • Argo tunnel breaks through the restriction of requiring a public network portal --- The traditional Nezha requires two public network ports, one for panel visiting and the other for client reporting, this project uses Cloudflare Argo tunnels and uses intranet tunneling.
  • IPv4 / v6 with higher flexibility --- The traditional Nezha needs to deal with IPv4/v6 compatibility between server and client, and also needs to resolve mismatches through tools such as warp. However, this project does not need to consider these issues at all, and can be docked arbitrarily, which is much more convenient and easy!
  • One Argo tunnel for multiple domains and protocols --- Create an intranet-penetrating Argo tunnel for three domains (hostname) and protocols, which can be used for panel access (http), client reporting (tcp) and ssh (optional).
  • GrpcWebProxy reverse proxy gRPC data port --- with a certificate for tls termination, then Argo's tunnel configuration with https service pointing to this reverse proxy, enable http2 back to the source, grpc(nezha)->GrpcWebProxy->h2(argo)->cf cdn edge->agent
  • Daily automatic backup --- every day at 04:00 BST, the entire Nezha panel folder is automatically backed up to a designated private github repository, including panel themes, panel settings, probe data and tunnel information, the backup retains nearly 5 days of data; the content is so important that it must be placed in the private repository.
  • Automatic daily panel update -- the latest official panel version is automatically detected every day at 4:00 BST, and updated when there is an upgrade.
  • Manual/automatic restore backup --- check the content of online restore file once a minute, and restore immediately when there is any update.
  • Default built-in local probes --- can easily monitor their own server information
  • More secure data --- Argo Tunnel uses TLS encrypted communication to securely transmit application traffic to the Cloudflare network, improving application security and reliability. In addition, Argo Tunnel protects against network threats such as IP leaks and DDoS attacks.
image

Prepare variables to be used

  • Visit the Cloudflare website, select the domain name you want to use, and turn on the network option to turn the gRPC switch on.
image

Add https:// to the beginning of the panel's domain name and /oauth2/callback to the end of the callback address.

imageimageimageimageimage

How to get Argo authentication: json or token

Argo tunnel authentication methods include json and token, use one of the two methods. The former is recommended because the script will handle all the Argo tunnel parameters and paths, while the latter needs to be set manually on the Cloudflare website and is prone to errors.

(Methods 1 - Json):

Easily get Argo tunnel json information through Cloudflare Json Generation Network: https://fscarmen.cloudflare.now.cc

image

(Methods 2 - Token): Manually generate Argo tunnel token information via Cloudflare website.

Go to the cf website: https://dash.cloudflare.com/

  • Go to zero trust and generate token tunnel and message.
  • The data path 443/https is proto.
  • ssh path 22/ssh for < client id >.
imageimageimageimageimageimageimage

PaaS Deployment Example

Image fscarmen/argo-nezha:latest, supports amd64 and arm64 architectures.

Variables used

Variable NameRequiredRemarks
GH_USERYesgithub username for panel admin authorization
GH_CLIENTIDyesapply on github
GH_CLIENTSECRETyesapply on github
GH_BACKUP_USERNoThe github username for backing up Nezha's server-side database on github, if not filled in, it is the same as the account GH_USER for panel management authorization
GH_REPONoThe github repository for backing up Nezha's server-side database files on github
GH_EMAILNogithub's mailbox for git push backups to remote repositories
GH_PATNogithub's PAT
ARGO_AUTHYesArgo Json from https://fscarmen.cloudflare.now.cc
Argo token from Cloudflare official website
ARGO_DOMAINYesArgo domain

Koyeb

Deploy to Koyeb

imageimageimageimageimage

VPS Deployment Method 1 --- docker

  • Note: ARGO_DOMAIN= must be followed by single quotes, which cannot be removed.
  • If the VPS is IPv6 only, please install WARP IPv4 or dual-stack first: https://github.com/fscarmen/warp
  • The backup directory is the dashboard folder in the current path.

docker deployment

docker run -dit \\
            --name nezha_dashboard \\
            --pull always \\
            --restart always \\
diff --git a/assets/en_US_case_case5.md.jDhulcN5.lean.js b/assets/en_US_case_case5.md.DvQ5ulUH.lean.js
similarity index 85%
rename from assets/en_US_case_case5.md.jDhulcN5.lean.js
rename to assets/en_US_case_case5.md.DvQ5ulUH.lean.js
index 9496f24d..4cf811bb 100644
--- a/assets/en_US_case_case5.md.jDhulcN5.lean.js
+++ b/assets/en_US_case_case5.md.DvQ5ulUH.lean.js
@@ -1 +1 @@
-import{_ as e,c as a,o as t,a4 as n}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Nezha server over Argo tunnel","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case5.md","filePath":"en_US/case/case5.md","lastUpdated":1720181562000}'),s={name:"en_US/case/case5.md"},o=n("",89),r=[o];function i(l,c,h,d,p,u){return t(),a("div",null,r)}const f=e(s,[["render",i]]);export{g as __pageData,f as default};
+import{_ as e,c as a,o as t,a4 as n}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Nezha server over Argo tunnel","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case5.md","filePath":"en_US/case/case5.md","lastUpdated":1720452113000}'),s={name:"en_US/case/case5.md"},o=n("",89),r=[o];function i(l,c,h,d,p,u){return t(),a("div",null,r)}const f=e(s,[["render",i]]);export{g as __pageData,f as default};
diff --git a/assets/en_US_case_index.md.C5f8EIzi.js b/assets/en_US_case_index.md.BvfYKeVX.js
similarity index 95%
rename from assets/en_US_case_index.md.C5f8EIzi.js
rename to assets/en_US_case_index.md.BvfYKeVX.js
index 09544f21..b7af1faa 100644
--- a/assets/en_US_case_index.md.C5f8EIzi.js
+++ b/assets/en_US_case_index.md.BvfYKeVX.js
@@ -1 +1 @@
-import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Community Project","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Community Project","hero":{"name":"Nezha Monitoring","text":"Community Project","tagline":"Nezha Monitoring has benefited from various projects contributed by the community, which have provided it with additional extensions.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Learn More →","link":"/en_US/case/case1"}]},"features":[{"title":"Submit a project","details":"We welcome you to submit your own project. Please join the Telegram group to contact the administrator for further information."},{"title":"Important Notes","details":"All projects are contributed by community members. Please be aware that the Nezha Monitoring Team cannot assume responsibility for community projects, including but not limited to warranty, availability, security, etc."}]},"headers":[],"relativePath":"en_US/case/index.md","filePath":"en_US/case/index.md","lastUpdated":1720181562000}'),o={name:"en_US/case/index.md"};function i(n,r,s,c,m,l){return a(),t("div")}const h=e(o,[["render",i]]);export{u as __pageData,h as default};
+import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Community Project","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Community Project","hero":{"name":"Nezha Monitoring","text":"Community Project","tagline":"Nezha Monitoring has benefited from various projects contributed by the community, which have provided it with additional extensions.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Learn More →","link":"/en_US/case/case1"}]},"features":[{"title":"Submit a project","details":"We welcome you to submit your own project. Please join the Telegram group to contact the administrator for further information."},{"title":"Important Notes","details":"All projects are contributed by community members. Please be aware that the Nezha Monitoring Team cannot assume responsibility for community projects, including but not limited to warranty, availability, security, etc."}]},"headers":[],"relativePath":"en_US/case/index.md","filePath":"en_US/case/index.md","lastUpdated":1720452113000}'),o={name:"en_US/case/index.md"};function i(n,r,s,c,m,l){return a(),t("div")}const h=e(o,[["render",i]]);export{u as __pageData,h as default};
diff --git a/assets/en_US_case_index.md.C5f8EIzi.lean.js b/assets/en_US_case_index.md.BvfYKeVX.lean.js
similarity index 95%
rename from assets/en_US_case_index.md.C5f8EIzi.lean.js
rename to assets/en_US_case_index.md.BvfYKeVX.lean.js
index 09544f21..b7af1faa 100644
--- a/assets/en_US_case_index.md.C5f8EIzi.lean.js
+++ b/assets/en_US_case_index.md.BvfYKeVX.lean.js
@@ -1 +1 @@
-import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Community Project","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Community Project","hero":{"name":"Nezha Monitoring","text":"Community Project","tagline":"Nezha Monitoring has benefited from various projects contributed by the community, which have provided it with additional extensions.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Learn More →","link":"/en_US/case/case1"}]},"features":[{"title":"Submit a project","details":"We welcome you to submit your own project. Please join the Telegram group to contact the administrator for further information."},{"title":"Important Notes","details":"All projects are contributed by community members. Please be aware that the Nezha Monitoring Team cannot assume responsibility for community projects, including but not limited to warranty, availability, security, etc."}]},"headers":[],"relativePath":"en_US/case/index.md","filePath":"en_US/case/index.md","lastUpdated":1720181562000}'),o={name:"en_US/case/index.md"};function i(n,r,s,c,m,l){return a(),t("div")}const h=e(o,[["render",i]]);export{u as __pageData,h as default};
+import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Community Project","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Community Project","hero":{"name":"Nezha Monitoring","text":"Community Project","tagline":"Nezha Monitoring has benefited from various projects contributed by the community, which have provided it with additional extensions.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Learn More →","link":"/en_US/case/case1"}]},"features":[{"title":"Submit a project","details":"We welcome you to submit your own project. Please join the Telegram group to contact the administrator for further information."},{"title":"Important Notes","details":"All projects are contributed by community members. Please be aware that the Nezha Monitoring Team cannot assume responsibility for community projects, including but not limited to warranty, availability, security, etc."}]},"headers":[],"relativePath":"en_US/case/index.md","filePath":"en_US/case/index.md","lastUpdated":1720452113000}'),o={name:"en_US/case/index.md"};function i(n,r,s,c,m,l){return a(),t("div")}const h=e(o,[["render",i]]);export{u as __pageData,h as default};
diff --git a/assets/en_US_developer_index.md.Da3SWKRC.js b/assets/en_US_developer_index.md.D7EjJwMx.js
similarity index 91%
rename from assets/en_US_developer_index.md.Da3SWKRC.js
rename to assets/en_US_developer_index.md.D7EjJwMx.js
index aa0d4602..e50560d3 100644
--- a/assets/en_US_developer_index.md.Da3SWKRC.js
+++ b/assets/en_US_developer_index.md.D7EjJwMx.js
@@ -1 +1 @@
-import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const c=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Development Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Development Manual","hero":{"name":"Development Manual","text":"Nezha Monitoring Development Manual.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Start Now →","link":"/en_US/developer/theme"}]}},"headers":[],"relativePath":"en_US/developer/index.md","filePath":"en_US/developer/index.md","lastUpdated":1720181562000}'),n={name:"en_US/developer/index.md"};function o(r,i,l,s,p,d){return a(),t("div")}const _=e(n,[["render",o]]);export{c as __pageData,_ as default};
+import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const c=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Development Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Development Manual","hero":{"name":"Development Manual","text":"Nezha Monitoring Development Manual.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Start Now →","link":"/en_US/developer/theme"}]}},"headers":[],"relativePath":"en_US/developer/index.md","filePath":"en_US/developer/index.md","lastUpdated":1720452113000}'),n={name:"en_US/developer/index.md"};function o(r,i,l,s,p,d){return a(),t("div")}const _=e(n,[["render",o]]);export{c as __pageData,_ as default};
diff --git a/assets/en_US_developer_index.md.Da3SWKRC.lean.js b/assets/en_US_developer_index.md.D7EjJwMx.lean.js
similarity index 91%
rename from assets/en_US_developer_index.md.Da3SWKRC.lean.js
rename to assets/en_US_developer_index.md.D7EjJwMx.lean.js
index aa0d4602..e50560d3 100644
--- a/assets/en_US_developer_index.md.Da3SWKRC.lean.js
+++ b/assets/en_US_developer_index.md.D7EjJwMx.lean.js
@@ -1 +1 @@
-import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const c=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Development Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Development Manual","hero":{"name":"Development Manual","text":"Nezha Monitoring Development Manual.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Start Now →","link":"/en_US/developer/theme"}]}},"headers":[],"relativePath":"en_US/developer/index.md","filePath":"en_US/developer/index.md","lastUpdated":1720181562000}'),n={name:"en_US/developer/index.md"};function o(r,i,l,s,p,d){return a(),t("div")}const _=e(n,[["render",o]]);export{c as __pageData,_ as default};
+import{_ as e,c as t,o as a}from"./chunks/framework.BmdFiWrL.js";const c=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Development Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Development Manual","hero":{"name":"Development Manual","text":"Nezha Monitoring Development Manual.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Start Now →","link":"/en_US/developer/theme"}]}},"headers":[],"relativePath":"en_US/developer/index.md","filePath":"en_US/developer/index.md","lastUpdated":1720452113000}'),n={name:"en_US/developer/index.md"};function o(r,i,l,s,p,d){return a(),t("div")}const _=e(n,[["render",o]]);export{c as __pageData,_ as default};
diff --git a/assets/en_US_developer_l10n.md.3p8g9UEX.js b/assets/en_US_developer_l10n.md.dRK4u8v8.js
similarity index 96%
rename from assets/en_US_developer_l10n.md.3p8g9UEX.js
rename to assets/en_US_developer_l10n.md.dRK4u8v8.js
index fbaa025d..4265882e 100644
--- a/assets/en_US_developer_l10n.md.3p8g9UEX.js
+++ b/assets/en_US_developer_l10n.md.dRK4u8v8.js
@@ -1 +1 @@
-import{_ as e,c as t,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/l10n.md","filePath":"en_US/developer/l10n.md","lastUpdated":1720181562000}'),o={name:"en_US/developer/l10n.md"},i=n('

Nezha Monitoring's Dashboard has added localization to support multiple languages, and you can follow these steps to support localization when developing new features

Introduction

  1. You can directly use the text configuration already available in /resource/l10n/en-US.toml to replace the text in the new feature.
  2. If there is new text in the new feature, please refer to the configuration text in en-US.toml, pull the new text into the configuration files of other languages such as en-US.toml, and add translations.

Adding a new localized text file

  1. Add a new language text configuration in /resource/l10n/.
  2. Pull existing text configurations from other languages in the new language text configuration.
  3. Add translations for the new language text configuration.
',5),l=[i];function r(d,c,s,u,h,f){return a(),t("div",null,l)}const p=e(o,[["render",r]]);export{g as __pageData,p as default}; +import{_ as e,c as t,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/l10n.md","filePath":"en_US/developer/l10n.md","lastUpdated":1720452113000}'),o={name:"en_US/developer/l10n.md"},i=n('

Nezha Monitoring's Dashboard has added localization to support multiple languages, and you can follow these steps to support localization when developing new features

Introduction

  1. You can directly use the text configuration already available in /resource/l10n/en-US.toml to replace the text in the new feature.
  2. If there is new text in the new feature, please refer to the configuration text in en-US.toml, pull the new text into the configuration files of other languages such as en-US.toml, and add translations.

Adding a new localized text file

  1. Add a new language text configuration in /resource/l10n/.
  2. Pull existing text configurations from other languages in the new language text configuration.
  3. Add translations for the new language text configuration.
',5),l=[i];function r(d,c,s,u,h,f){return a(),t("div",null,l)}const p=e(o,[["render",r]]);export{g as __pageData,p as default}; diff --git a/assets/en_US_developer_l10n.md.3p8g9UEX.lean.js b/assets/en_US_developer_l10n.md.dRK4u8v8.lean.js similarity index 85% rename from assets/en_US_developer_l10n.md.3p8g9UEX.lean.js rename to assets/en_US_developer_l10n.md.dRK4u8v8.lean.js index 00c448ad..1150038b 100644 --- a/assets/en_US_developer_l10n.md.3p8g9UEX.lean.js +++ b/assets/en_US_developer_l10n.md.dRK4u8v8.lean.js @@ -1 +1 @@ -import{_ as e,c as t,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/l10n.md","filePath":"en_US/developer/l10n.md","lastUpdated":1720181562000}'),o={name:"en_US/developer/l10n.md"},i=n("",5),l=[i];function r(d,c,s,u,h,f){return a(),t("div",null,l)}const p=e(o,[["render",r]]);export{g as __pageData,p as default}; +import{_ as e,c as t,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/l10n.md","filePath":"en_US/developer/l10n.md","lastUpdated":1720452113000}'),o={name:"en_US/developer/l10n.md"},i=n("",5),l=[i];function r(d,c,s,u,h,f){return a(),t("div",null,l)}const p=e(o,[["render",r]]);export{g as __pageData,p as default}; diff --git a/assets/en_US_developer_theme.md.DgTf4kKp.js b/assets/en_US_developer_theme.md.DHd3T-33.js similarity index 96% rename from assets/en_US_developer_theme.md.DgTf4kKp.js rename to assets/en_US_developer_theme.md.DHd3T-33.js index b7c8b20b..dd34ceaa 100644 --- a/assets/en_US_developer_theme.md.DgTf4kKp.js +++ b/assets/en_US_developer_theme.md.DHd3T-33.js @@ -1 +1 @@ -import{_ as e,c as o,o as t,a4 as a}from"./chunks/framework.BmdFiWrL.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/theme.md","filePath":"en_US/developer/theme.md","lastUpdated":1720181562000}'),n={name:"en_US/developer/theme.md"},c=a('

Nezha Theme Development Environment

Nezha Monitoring provides a theme development environment that you can use to create new Nezha Monitoring themes

WARNING

Please note: This development environment only supports dashboard v0.13.16 and newer versions.

How to use

  1. Clone this repository to local
  2. Modify the Oauth2 configuration in data/config.yaml(The callback connection can be filled with http://localhost
  3. Run docker-compose up
  4. Start development
  5. Once the theme has been created, you can place theme-custom in /opt/nezha/dashboard/theme-custom on the server

FAQ

  • If you can't use port 80, change the configuration in docker-compose.yaml.
',7),r=[c];function l(i,h,d,s,m,p){return t(),o("div",null,r)}const v=e(n,[["render",l]]);export{_ as __pageData,v as default}; +import{_ as e,c as o,o as t,a4 as a}from"./chunks/framework.BmdFiWrL.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/theme.md","filePath":"en_US/developer/theme.md","lastUpdated":1720452113000}'),n={name:"en_US/developer/theme.md"},c=a('

Nezha Theme Development Environment

Nezha Monitoring provides a theme development environment that you can use to create new Nezha Monitoring themes

WARNING

Please note: This development environment only supports dashboard v0.13.16 and newer versions.

How to use

  1. Clone this repository to local
  2. Modify the Oauth2 configuration in data/config.yaml(The callback connection can be filled with http://localhost
  3. Run docker-compose up
  4. Start development
  5. Once the theme has been created, you can place theme-custom in /opt/nezha/dashboard/theme-custom on the server

FAQ

  • If you can't use port 80, change the configuration in docker-compose.yaml.
',7),r=[c];function l(i,h,d,s,m,p){return t(),o("div",null,r)}const v=e(n,[["render",l]]);export{_ as __pageData,v as default}; diff --git a/assets/en_US_developer_theme.md.DgTf4kKp.lean.js b/assets/en_US_developer_theme.md.DHd3T-33.lean.js similarity index 85% rename from assets/en_US_developer_theme.md.DgTf4kKp.lean.js rename to assets/en_US_developer_theme.md.DHd3T-33.lean.js index 50928622..71ba1cb2 100644 --- a/assets/en_US_developer_theme.md.DgTf4kKp.lean.js +++ b/assets/en_US_developer_theme.md.DHd3T-33.lean.js @@ -1 +1 @@ -import{_ as e,c as o,o as t,a4 as a}from"./chunks/framework.BmdFiWrL.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/theme.md","filePath":"en_US/developer/theme.md","lastUpdated":1720181562000}'),n={name:"en_US/developer/theme.md"},c=a("",7),r=[c];function l(i,h,d,s,m,p){return t(),o("div",null,r)}const v=e(n,[["render",l]]);export{_ as __pageData,v as default}; +import{_ as e,c as o,o as t,a4 as a}from"./chunks/framework.BmdFiWrL.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/theme.md","filePath":"en_US/developer/theme.md","lastUpdated":1720452113000}'),n={name:"en_US/developer/theme.md"},c=a("",7),r=[c];function l(i,h,d,s,m,p){return t(),o("div",null,r)}const v=e(n,[["render",l]]);export{_ as __pageData,v as default}; diff --git a/assets/en_US_guide_agent.md.DFQk0ra6.js b/assets/en_US_guide_agent.md.BTcznE0X.js similarity index 99% rename from assets/en_US_guide_agent.md.DFQk0ra6.js rename to assets/en_US_guide_agent.md.BTcznE0X.js index a908821d..7e33351b 100644 --- a/assets/en_US_guide_agent.md.DFQk0ra6.js +++ b/assets/en_US_guide_agent.md.BTcznE0X.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const c=JSON.parse('{"title":"Install Agent","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/agent.md","filePath":"en_US/guide/agent.md","lastUpdated":1720181562000}'),t={name:"en_US/guide/agent.md"},e=n(`

Install Agent

This document will introduce how to install the Agent on the monitored server and connect it to the Dashboard.

TIP

The repository for Agent binaries can be found at: https://github.com/nezhahq/agent/releases

One-Click Installation of the Agent

Nezha Monitoring supports one-click installation of the Agent on both Windows and Linux. By following the steps in this document, you can easily deploy it on your server.

Preparation

You need to set up a communication domain in the admin panel in advance, and this domain should not be connected to a CDN. This document uses the example communication domain “data.example.com”.
Go to the settings page in the admin panel, fill in the communication domain in the “Non-CDN Dashboard Server Domain/IP” field, and click "Save".

One-Click Installation on Linux (Ubuntu, Debian, CentOS)

  1. First, add a server in the admin panel.
  2. Click the green Linux icon button next to the newly added server and copy the one-click installation command.
  3. Run the copied installation command on the monitored server, and wait for the installation to complete. Then, check if the server is online in the Dashboard home page.

One-Click Installation on Windows

  1. First, add a server in the admin panel.
  2. Click the green Windows icon button next to the newly added server and copy the one-click installation command.
  3. Go to the Windows server, run PowerShell, and execute the copied installation command in PowerShell.
  4. If you encounter a prompt to "change execution policy," choose Y.
  5. Wait for the installation to complete, then check if the server is online in the Dashboard home page.

WARNING

If you encounter errors when running the one-click installation command in PowerShell, try the Manual Installation of the Agent on Windows below.

Other Ways to Install the Agent

Installing the Agent on Linux (Ubuntu, Debian, CentOS)

Click to expand/collapse
  1. First, add a server in the admin panel.
  2. Run the script on the monitored server:
bash
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install_en.sh  -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
  1. Select “Install monitoring Agent.”
  2. Enter the communication domain, such as "data.example.com".
  3. Enter the dashboard communication port (gRPC port), default is 5555.
  4. Enter the Agent secret, which is generated when you add a server in the admin panel and can be found on the “Servers” page in the admin panel.
  5. Wait for the installation to complete, then check if the server is online in the Dashboard home page.

Installing the Agent on Other Linux Distributions (e.g., Alpine using Openrc)

Click to expand/collapse

This section is contributed by unknown0054.

  1. Modify SERVER, SECRET, TLS, and execute in the shell:
shell
cat >/etc/init.d/nezha-agent<< EOF
+import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const c=JSON.parse('{"title":"Install Agent","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/agent.md","filePath":"en_US/guide/agent.md","lastUpdated":1720452113000}'),t={name:"en_US/guide/agent.md"},e=n(`

Install Agent

This document will introduce how to install the Agent on the monitored server and connect it to the Dashboard.

TIP

The repository for Agent binaries can be found at: https://github.com/nezhahq/agent/releases

One-Click Installation of the Agent

Nezha Monitoring supports one-click installation of the Agent on both Windows and Linux. By following the steps in this document, you can easily deploy it on your server.

Preparation

You need to set up a communication domain in the admin panel in advance, and this domain should not be connected to a CDN. This document uses the example communication domain “data.example.com”.
Go to the settings page in the admin panel, fill in the communication domain in the “Non-CDN Dashboard Server Domain/IP” field, and click "Save".

One-Click Installation on Linux (Ubuntu, Debian, CentOS)

  1. First, add a server in the admin panel.
  2. Click the green Linux icon button next to the newly added server and copy the one-click installation command.
  3. Run the copied installation command on the monitored server, and wait for the installation to complete. Then, check if the server is online in the Dashboard home page.

One-Click Installation on Windows

  1. First, add a server in the admin panel.
  2. Click the green Windows icon button next to the newly added server and copy the one-click installation command.
  3. Go to the Windows server, run PowerShell, and execute the copied installation command in PowerShell.
  4. If you encounter a prompt to "change execution policy," choose Y.
  5. Wait for the installation to complete, then check if the server is online in the Dashboard home page.

WARNING

If you encounter errors when running the one-click installation command in PowerShell, try the Manual Installation of the Agent on Windows below.

Other Ways to Install the Agent

Installing the Agent on Linux (Ubuntu, Debian, CentOS)

Click to expand/collapse
  1. First, add a server in the admin panel.
  2. Run the script on the monitored server:
bash
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install_en.sh  -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
  1. Select “Install monitoring Agent.”
  2. Enter the communication domain, such as "data.example.com".
  3. Enter the dashboard communication port (gRPC port), default is 5555.
  4. Enter the Agent secret, which is generated when you add a server in the admin panel and can be found on the “Servers” page in the admin panel.
  5. Wait for the installation to complete, then check if the server is online in the Dashboard home page.

Installing the Agent on Other Linux Distributions (e.g., Alpine using Openrc)

Click to expand/collapse

This section is contributed by unknown0054.

  1. Modify SERVER, SECRET, TLS, and execute in the shell:
shell
cat >/etc/init.d/nezha-agent<< EOF
 #!/sbin/openrc-run
 SERVER="" # Dashboard domain ip:port
 SECRET="" # SECRET
diff --git a/assets/en_US_guide_agent.md.DFQk0ra6.lean.js b/assets/en_US_guide_agent.md.BTcznE0X.lean.js
similarity index 85%
rename from assets/en_US_guide_agent.md.DFQk0ra6.lean.js
rename to assets/en_US_guide_agent.md.BTcznE0X.lean.js
index 7d420c77..7d40bff4 100644
--- a/assets/en_US_guide_agent.md.DFQk0ra6.lean.js
+++ b/assets/en_US_guide_agent.md.BTcznE0X.lean.js
@@ -1 +1 @@
-import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const c=JSON.parse('{"title":"Install Agent","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/agent.md","filePath":"en_US/guide/agent.md","lastUpdated":1720181562000}'),t={name:"en_US/guide/agent.md"},e=n("",29),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{c as __pageData,E as default};
+import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const c=JSON.parse('{"title":"Install Agent","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/agent.md","filePath":"en_US/guide/agent.md","lastUpdated":1720452113000}'),t={name:"en_US/guide/agent.md"},e=n("",29),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{c as __pageData,E as default};
diff --git a/assets/en_US_guide_agentq.md.D9qP08yH.js b/assets/en_US_guide_agentq.md.SuWMBkvJ.js
similarity index 97%
rename from assets/en_US_guide_agentq.md.D9qP08yH.js
rename to assets/en_US_guide_agentq.md.SuWMBkvJ.js
index 86941d3e..f5511fc9 100644
--- a/assets/en_US_guide_agentq.md.D9qP08yH.js
+++ b/assets/en_US_guide_agentq.md.SuWMBkvJ.js
@@ -1 +1 @@
-import{_ as e,c as t,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const f=JSON.parse('{"title":"Frequently Asked Questions about the Agent","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/agentq.md","filePath":"en_US/guide/agentq.md","lastUpdated":1720181562000}'),i={name:"en_US/guide/agentq.md"},s=n('

Frequently Asked Questions about the Agent

The IP Displayed in the Admin Panel is Different from the Actual Agent IP?

Please refer to Dashboard Related - Why is the IP Displayed in the Admin Panel Different from the Actual Agent IP?. This will not be repeated here.

Errors During One-Click Script Installation

curl: Failed to connect to raw.githubusercontent.com......

This mostly occurs on servers in mainland China. Currently, the one-click script fetches the installation script directly from Github. You may try several times, or manually install the Agent. Additionally, you can find third-party Github acceleration services or mirrors and set them in the one-click installation script.

sudo: command not found

Please manually install sudo first, for example, in Ubuntu:

shell
apt install sudo
',9),o=[s];function r(l,d,h,c,u,p){return a(),t("div",null,o)}const g=e(i,[["render",r]]);export{f as __pageData,g as default}; +import{_ as e,c as t,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const f=JSON.parse('{"title":"Frequently Asked Questions about the Agent","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/agentq.md","filePath":"en_US/guide/agentq.md","lastUpdated":1720452113000}'),i={name:"en_US/guide/agentq.md"},s=n('

Frequently Asked Questions about the Agent

The IP Displayed in the Admin Panel is Different from the Actual Agent IP?

Please refer to Dashboard Related - Why is the IP Displayed in the Admin Panel Different from the Actual Agent IP?. This will not be repeated here.

Errors During One-Click Script Installation

curl: Failed to connect to raw.githubusercontent.com......

This mostly occurs on servers in mainland China. Currently, the one-click script fetches the installation script directly from Github. You may try several times, or manually install the Agent. Additionally, you can find third-party Github acceleration services or mirrors and set them in the one-click installation script.

sudo: command not found

Please manually install sudo first, for example, in Ubuntu:

shell
apt install sudo
',9),o=[s];function r(l,d,h,c,u,p){return a(),t("div",null,o)}const g=e(i,[["render",r]]);export{f as __pageData,g as default}; diff --git a/assets/en_US_guide_agentq.md.D9qP08yH.lean.js b/assets/en_US_guide_agentq.md.SuWMBkvJ.lean.js similarity index 86% rename from assets/en_US_guide_agentq.md.D9qP08yH.lean.js rename to assets/en_US_guide_agentq.md.SuWMBkvJ.lean.js index cc772234..847ad551 100644 --- a/assets/en_US_guide_agentq.md.D9qP08yH.lean.js +++ b/assets/en_US_guide_agentq.md.SuWMBkvJ.lean.js @@ -1 +1 @@ -import{_ as e,c as t,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const f=JSON.parse('{"title":"Frequently Asked Questions about the Agent","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/agentq.md","filePath":"en_US/guide/agentq.md","lastUpdated":1720181562000}'),i={name:"en_US/guide/agentq.md"},s=n("",9),o=[s];function r(l,d,h,c,u,p){return a(),t("div",null,o)}const g=e(i,[["render",r]]);export{f as __pageData,g as default}; +import{_ as e,c as t,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const f=JSON.parse('{"title":"Frequently Asked Questions about the Agent","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/agentq.md","filePath":"en_US/guide/agentq.md","lastUpdated":1720452113000}'),i={name:"en_US/guide/agentq.md"},s=n("",9),o=[s];function r(l,d,h,c,u,p){return a(),t("div",null,o)}const g=e(i,[["render",r]]);export{f as __pageData,g as default}; diff --git a/assets/en_US_guide_api.md.Dhadt2Zn.js b/assets/en_US_guide_api.md.Bcy523WL.js similarity index 99% rename from assets/en_US_guide_api.md.Dhadt2Zn.js rename to assets/en_US_guide_api.md.Bcy523WL.js index cc000818..c50aeea7 100644 --- a/assets/en_US_guide_api.md.Dhadt2Zn.js +++ b/assets/en_US_guide_api.md.Bcy523WL.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const F=JSON.parse('{"title":"API Interface","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/api.md","filePath":"en_US/guide/api.md","lastUpdated":1720181562000}'),t={name:"en_US/guide/api.md"},h=n(`

API Interface

Nezha Monitoring supports querying the status information of Agents using the API interface

Creating a Token

Nezha Monitoring's API interface allows for Token authentication and Cookies authentication. To create a new Token, go to the admin panel, click on the avatar in the top right corner, select "API Token," and enter the Token management page. Click "Add Token", add a custom note, and click "Add".

To delete a Token, select the corresponding Token and click the delete icon on the right.

WARNING

Tokens are the authentication credentials for the API interface. They are critical to the security of your Dashboard's information, so do not share your Token with others.

Authentication Method

Ensure the request header contains Authorization: Token for authentication.

Token authentication method:

Request Headers:
+import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const F=JSON.parse('{"title":"API Interface","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/api.md","filePath":"en_US/guide/api.md","lastUpdated":1720452113000}'),t={name:"en_US/guide/api.md"},h=n(`

API Interface

Nezha Monitoring supports querying the status information of Agents using the API interface

Creating a Token

Nezha Monitoring's API interface allows for Token authentication and Cookies authentication. To create a new Token, go to the admin panel, click on the avatar in the top right corner, select "API Token," and enter the Token management page. Click "Add Token", add a custom note, and click "Add".

To delete a Token, select the corresponding Token and click the delete icon on the right.

WARNING

Tokens are the authentication credentials for the API interface. They are critical to the security of your Dashboard's information, so do not share your Token with others.

Authentication Method

Ensure the request header contains Authorization: Token for authentication.

Token authentication method:

Request Headers:
 Authorization: Token

Usage Instructions

WARNING

Negative timestamps in the following examples represent 0000-00-00. This currently indicates that the Agent has never reported since the Dashboard went online, but it is not recommended to use the positive or negative value to determine the status.

TIP

The request method is GET, and the response format is JSON.

Get Server List

Request:

GET /api/v1/server/list?tag=

Parameters:

  • tag (optional): ServerTag is the server group. Provide this parameter to query only servers in that group.

Example response:

json
{
     "code": 0,
     "message": "success",
diff --git a/assets/en_US_guide_api.md.Dhadt2Zn.lean.js b/assets/en_US_guide_api.md.Bcy523WL.lean.js
similarity index 85%
rename from assets/en_US_guide_api.md.Dhadt2Zn.lean.js
rename to assets/en_US_guide_api.md.Bcy523WL.lean.js
index 882ec5c8..7fe4d4f1 100644
--- a/assets/en_US_guide_api.md.Dhadt2Zn.lean.js
+++ b/assets/en_US_guide_api.md.Bcy523WL.lean.js
@@ -1 +1 @@
-import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const F=JSON.parse('{"title":"API Interface","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/api.md","filePath":"en_US/guide/api.md","lastUpdated":1720181562000}'),t={name:"en_US/guide/api.md"},h=n("",33),k=[h];function p(l,e,E,r,d,o){return a(),i("div",null,k)}const y=s(t,[["render",p]]);export{F as __pageData,y as default};
+import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.BmdFiWrL.js";const F=JSON.parse('{"title":"API Interface","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/api.md","filePath":"en_US/guide/api.md","lastUpdated":1720452113000}'),t={name:"en_US/guide/api.md"},h=n("",33),k=[h];function p(l,e,E,r,d,o){return a(),i("div",null,k)}const y=s(t,[["render",p]]);export{F as __pageData,y as default};
diff --git a/assets/en_US_guide_dashboard.md.B7gz4EbR.js b/assets/en_US_guide_dashboard.md.C5urJ5RO.js
similarity index 99%
rename from assets/en_US_guide_dashboard.md.B7gz4EbR.js
rename to assets/en_US_guide_dashboard.md.C5urJ5RO.js
index a1979e8d..62b4d1af 100644
--- a/assets/en_US_guide_dashboard.md.B7gz4EbR.js
+++ b/assets/en_US_guide_dashboard.md.C5urJ5RO.js
@@ -1,4 +1,4 @@
-import{_ as a,c as e,o as s,a4 as t}from"./chunks/framework.BmdFiWrL.js";const k=JSON.parse('{"title":"Install Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/dashboard.md","filePath":"en_US/guide/dashboard.md","lastUpdated":1720181562000}'),i={name:"en_US/guide/dashboard.md"},n=t(`

Install Dashboard

Preparation

To set up Nezha Monitoring, you need:

  1. A server with public internet access, with firewall and security policies allowing traffic on ports 8008 and 5555. These ports are necessary for accessing and receiving data. A server with a single core and 512MB of RAM is sufficient for most use cases.
  2. A domain with an A record set to point to your Dashboard server IP.

TIP

If you want to use a CDN, prepare two domains: one configured with CDN for public access (CDN must support WebSocket protocol), and another domain not using CDN for communication between the Agent and Dashboard.

This document uses "dashboard.example.com" and "data.example.com" as example domains.

  1. A Github account (or Gitlab, Gitee).

This document uses the aaPanel for reverse proxying the Dashboard as an example. As future versions change, some features may change their entry points. This document is for reference only.

WARNING

This project does not depend on the aaPanel; you can choose any server panel you prefer or manually install Nginx or Caddy to configure SSL and reverse proxy.
If you do not need to use ports 80 and 443 to access the Dashboard, you can directly use the installation script to install and run Nezha Monitoring without installing Nginx.

Obtaining Github Client ID and Secret

Nezha Monitoring uses Github, Gitlab, or Gitee as admin accounts.

  1. First, create an OAuth application. For Github, log in to Github, open Github OAuth Apps, and select "OAuth Apps" -> "New OAuth App".
    Application name - Fill in as you like.
    Homepage URL - Fill in with the domain for accessing the dashboard, such as "http://dashboard.example.com" (your domain).
    Authorization callback URL - Fill in with the callback address, such as "http://dashboard.example.com/oauth2/callback" (don't forget /oauth2/callback).
  2. Click “Register application”.
  3. Save the Client ID on the page, then click “Generate a new client secret” to create a new Client Secret, which will be displayed only once, please keep it safe.

Using Cloudflare Access as OAuth2 Provider

If you encounter issues using Github, Gitlab, or Gitee as admin login, consider switching to using Cloudflare Access as the OAuth2 provider.

Creating a SaaS-OIDC Application

  1. Go to Zero Trust Dashboard and log in with your Cloudflare account.
  2. My Team -> Users -> <specific user> -> Get User ID and save it.
  3. Access -> Application -> Add an Application.
  4. Choose SaaS, enter a custom application name in Application (e.g., nezha), select OIDC, and click Add application.
  5. Select Scopes: openid, email, profile, groups.
  6. Fill in your callback address in Redirect URLs, such as https://dashboard.example.com/oauth2/callback.
  7. Save the Client ID, Client Secret, and Issuer address (protocol and domain part), e.g., https://xxxxx.cloudflareaccess.com.

If using this method, after installing the Dashboard, modify the configuration file /opt/nezha/dashboard/data/config.yaml, and change the Endpoint configuration to the Issuer address saved earlier, e.g., https://xxxxx.cloudflareaccess.com, and restart the Dashboard.

Installing the Dashboard on the Server

Run the installation script on the dashboard server:

bash
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install_en.sh  -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

After Docker installation completes, enter the following values:

  • OAuth provider - choose one from github, cloudflare, gitlab, gitee.
  • Client ID - the previously saved Client ID.
  • Client Secret - the previously saved Client Secret.
  • Username - the username/User ID from the OAuth provider.
  • Site title - custom site title.
  • Access port - public access port, customizable, default is 8008.
  • Agent communication port - port for Agent and Dashboard communication, default is 5555.

After inputting the values, wait for the image to be pulled.
When the installation completes, you can access the dashboard by visiting your domain and port number, such as “http://dashboard.example.com:8008”.

In the future, if you need to run the script again, run:

bash
./nezha.sh

to open the management script.

Configuring Reverse Proxy

Create a new site in the aaPanel, with the domain filled in as the public access domain, such as “http://dashboard.example.com”. Then click “Settings” to enter the site settings options, select “Reverse Proxy” - “New Reverse Proxy”.

Customize a proxy name and fill in http://127.0.0.1 in the "Target URL" below, then click “Save”.

Open the “Configuration File” on the right side of the newly created reverse proxy and replace the configuration file with the following content:

nginx
#PROXY-START/
+import{_ as a,c as e,o as s,a4 as t}from"./chunks/framework.BmdFiWrL.js";const k=JSON.parse('{"title":"Install Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/dashboard.md","filePath":"en_US/guide/dashboard.md","lastUpdated":1720452113000}'),i={name:"en_US/guide/dashboard.md"},n=t(`

Install Dashboard

Preparation

To set up Nezha Monitoring, you need:

  1. A server with public internet access, with firewall and security policies allowing traffic on ports 8008 and 5555. These ports are necessary for accessing and receiving data. A server with a single core and 512MB of RAM is sufficient for most use cases.
  2. A domain with an A record set to point to your Dashboard server IP.

TIP

If you want to use a CDN, prepare two domains: one configured with CDN for public access (CDN must support WebSocket protocol), and another domain not using CDN for communication between the Agent and Dashboard.

This document uses "dashboard.example.com" and "data.example.com" as example domains.

  1. A Github account (or Gitlab, Gitee).

This document uses the aaPanel for reverse proxying the Dashboard as an example. As future versions change, some features may change their entry points. This document is for reference only.

WARNING

This project does not depend on the aaPanel; you can choose any server panel you prefer or manually install Nginx or Caddy to configure SSL and reverse proxy.
If you do not need to use ports 80 and 443 to access the Dashboard, you can directly use the installation script to install and run Nezha Monitoring without installing Nginx.

Obtaining Github Client ID and Secret

Nezha Monitoring uses Github, Gitlab, or Gitee as admin accounts.

  1. First, create an OAuth application. For Github, log in to Github, open Github OAuth Apps, and select "OAuth Apps" -> "New OAuth App".
    Application name - Fill in as you like.
    Homepage URL - Fill in with the domain for accessing the dashboard, such as "http://dashboard.example.com" (your domain).
    Authorization callback URL - Fill in with the callback address, such as "http://dashboard.example.com/oauth2/callback" (don't forget /oauth2/callback).
  2. Click “Register application”.
  3. Save the Client ID on the page, then click “Generate a new client secret” to create a new Client Secret, which will be displayed only once, please keep it safe.

Using Cloudflare Access as OAuth2 Provider

If you encounter issues using Github, Gitlab, or Gitee as admin login, consider switching to using Cloudflare Access as the OAuth2 provider.

Creating a SaaS-OIDC Application

  1. Go to Zero Trust Dashboard and log in with your Cloudflare account.
  2. My Team -> Users -> <specific user> -> Get User ID and save it.
  3. Access -> Application -> Add an Application.
  4. Choose SaaS, enter a custom application name in Application (e.g., nezha), select OIDC, and click Add application.
  5. Select Scopes: openid, email, profile, groups.
  6. Fill in your callback address in Redirect URLs, such as https://dashboard.example.com/oauth2/callback.
  7. Save the Client ID, Client Secret, and Issuer address (protocol and domain part), e.g., https://xxxxx.cloudflareaccess.com.

If using this method, after installing the Dashboard, modify the configuration file /opt/nezha/dashboard/data/config.yaml, and change the Endpoint configuration to the Issuer address saved earlier, e.g., https://xxxxx.cloudflareaccess.com, and restart the Dashboard.

Installing the Dashboard on the Server

Run the installation script on the dashboard server:

bash
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install_en.sh  -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

After Docker installation completes, enter the following values:

  • OAuth provider - choose one from github, cloudflare, gitlab, gitee.
  • Client ID - the previously saved Client ID.
  • Client Secret - the previously saved Client Secret.
  • Username - the username/User ID from the OAuth provider.
  • Site title - custom site title.
  • Access port - public access port, customizable, default is 8008.
  • Agent communication port - port for Agent and Dashboard communication, default is 5555.

After inputting the values, wait for the image to be pulled.
When the installation completes, you can access the dashboard by visiting your domain and port number, such as “http://dashboard.example.com:8008”.

In the future, if you need to run the script again, run:

bash
./nezha.sh

to open the management script.

Configuring Reverse Proxy

Create a new site in the aaPanel, with the domain filled in as the public access domain, such as “http://dashboard.example.com”. Then click “Settings” to enter the site settings options, select “Reverse Proxy” - “New Reverse Proxy”.

Customize a proxy name and fill in http://127.0.0.1 in the "Target URL" below, then click “Save”.

Open the “Configuration File” on the right side of the newly created reverse proxy and replace the configuration file with the following content:

nginx
#PROXY-START/
 location / {
     proxy_pass http://127.0.0.1:8008;
     proxy_set_header Host $http_host;
diff --git a/assets/en_US_guide_dashboard.md.B7gz4EbR.lean.js b/assets/en_US_guide_dashboard.md.C5urJ5RO.lean.js
similarity index 86%
rename from assets/en_US_guide_dashboard.md.B7gz4EbR.lean.js
rename to assets/en_US_guide_dashboard.md.C5urJ5RO.lean.js
index 608af451..e9d9f4af 100644
--- a/assets/en_US_guide_dashboard.md.B7gz4EbR.lean.js
+++ b/assets/en_US_guide_dashboard.md.C5urJ5RO.lean.js
@@ -1 +1 @@
-import{_ as a,c as e,o as s,a4 as t}from"./chunks/framework.BmdFiWrL.js";const k=JSON.parse('{"title":"Install Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/dashboard.md","filePath":"en_US/guide/dashboard.md","lastUpdated":1720181562000}'),i={name:"en_US/guide/dashboard.md"},n=t("",38),o=[n];function r(l,h,d,p,c,u){return s(),e("div",null,o)}const b=a(i,[["render",r]]);export{k as __pageData,b as default};
+import{_ as a,c as e,o as s,a4 as t}from"./chunks/framework.BmdFiWrL.js";const k=JSON.parse('{"title":"Install Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/dashboard.md","filePath":"en_US/guide/dashboard.md","lastUpdated":1720452113000}'),i={name:"en_US/guide/dashboard.md"},n=t("",38),o=[n];function r(l,h,d,p,c,u){return s(),e("div",null,o)}const b=a(i,[["render",r]]);export{k as __pageData,b as default};
diff --git a/assets/en_US_guide_dashboardq.md.Bz9jAGWH.js b/assets/en_US_guide_dashboardq.md.DSAC3eQ-.js
similarity index 99%
rename from assets/en_US_guide_dashboardq.md.Bz9jAGWH.js
rename to assets/en_US_guide_dashboardq.md.DSAC3eQ-.js
index 7c9af675..000cdf64 100644
--- a/assets/en_US_guide_dashboardq.md.Bz9jAGWH.js
+++ b/assets/en_US_guide_dashboardq.md.DSAC3eQ-.js
@@ -1,4 +1,4 @@
-import{_ as a,c as e,o as t,a4 as i}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Frequently Asked Questions about the Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/dashboardq.md","filePath":"en_US/guide/dashboardq.md","lastUpdated":1720181562000}'),s={name:"en_US/guide/dashboardq.md"},o=i(`

Frequently Asked Questions about the Dashboard

Why is the IP Displayed in the Admin Panel Different from the Actual Agent IP?

First, let's explain how the IP displayed in the Admin panel is obtained: The Agent periodically requests IP-API to get IP information and reports it to the Dashboard. The currently used IP-API can be viewed here: myip.go.
If you find that the IP displayed in the Admin panel is different from the IP provided by your service provider, it is most likely that the service provider has given you an entry IP, but the Agent is testing your exit IP. This issue can also occur with multi-line servers and IPLC private lines.

TIP

For example, a common scenario is that the service provider gives you a high-defense server. To meet both high defense and low network interruption rate goals, the IP provided may be a mapped high-defense IP rather than your server's real exit IP.

You can also test the exit IP on the Agent server by running the following commands:

shell
curl https://ipapi.co/ip/
+import{_ as a,c as e,o as t,a4 as i}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Frequently Asked Questions about the Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/dashboardq.md","filePath":"en_US/guide/dashboardq.md","lastUpdated":1720452113000}'),s={name:"en_US/guide/dashboardq.md"},o=i(`

Frequently Asked Questions about the Dashboard

Why is the IP Displayed in the Admin Panel Different from the Actual Agent IP?

First, let's explain how the IP displayed in the Admin panel is obtained: The Agent periodically requests IP-API to get IP information and reports it to the Dashboard. The currently used IP-API can be viewed here: myip.go.
If you find that the IP displayed in the Admin panel is different from the IP provided by your service provider, it is most likely that the service provider has given you an entry IP, but the Agent is testing your exit IP. This issue can also occur with multi-line servers and IPLC private lines.

TIP

For example, a common scenario is that the service provider gives you a high-defense server. To meet both high defense and low network interruption rate goals, the IP provided may be a mapped high-defense IP rather than your server's real exit IP.

You can also test the exit IP on the Agent server by running the following commands:

shell
curl https://ipapi.co/ip/
 curl ip.sb
 curl ip-api.com

Forgot or Deleted Viewing Password

Please view or edit the /opt/nezha/dashboard/data/config.yaml file.
The password is located under the site-viewpassword item.

Dashboard Installation/Restart/Update Failure: iptables ......

First, try restarting Docker before proceeding:

shell
systemctl status docker
 systemctl restart docker
diff --git a/assets/en_US_guide_dashboardq.md.Bz9jAGWH.lean.js b/assets/en_US_guide_dashboardq.md.DSAC3eQ-.lean.js
similarity index 87%
rename from assets/en_US_guide_dashboardq.md.Bz9jAGWH.lean.js
rename to assets/en_US_guide_dashboardq.md.DSAC3eQ-.lean.js
index 65a9063e..43f869cc 100644
--- a/assets/en_US_guide_dashboardq.md.Bz9jAGWH.lean.js
+++ b/assets/en_US_guide_dashboardq.md.DSAC3eQ-.lean.js
@@ -1 +1 @@
-import{_ as a,c as e,o as t,a4 as i}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Frequently Asked Questions about the Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/dashboardq.md","filePath":"en_US/guide/dashboardq.md","lastUpdated":1720181562000}'),s={name:"en_US/guide/dashboardq.md"},o=i("",31),n=[o];function r(d,h,l,c,p,u){return t(),e("div",null,n)}const f=a(s,[["render",r]]);export{g as __pageData,f as default};
+import{_ as a,c as e,o as t,a4 as i}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Frequently Asked Questions about the Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/dashboardq.md","filePath":"en_US/guide/dashboardq.md","lastUpdated":1720452113000}'),s={name:"en_US/guide/dashboardq.md"},o=i("",31),n=[o];function r(d,h,l,c,p,u){return t(),e("div",null,n)}const f=a(s,[["render",r]]);export{g as __pageData,f as default};
diff --git a/assets/en_US_guide_loginq.md.BfbDl9No.js b/assets/en_US_guide_loginq.md.CjimSdcs.js
similarity index 98%
rename from assets/en_US_guide_loginq.md.BfbDl9No.js
rename to assets/en_US_guide_loginq.md.CjimSdcs.js
index 998c4b8a..561eb7c6 100644
--- a/assets/en_US_guide_loginq.md.BfbDl9No.js
+++ b/assets/en_US_guide_loginq.md.CjimSdcs.js
@@ -1 +1 @@
-import{_ as e,c as o,o as t,a4 as a}from"./chunks/framework.BmdFiWrL.js";const m=JSON.parse('{"title":"Frequently Asked Questions about logging into the Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/loginq.md","filePath":"en_US/guide/loginq.md","lastUpdated":1720181562000}'),i={name:"en_US/guide/loginq.md"},n=a('

Frequently Asked Questions about logging into the Dashboard

Stuck Page/Connection Refused/Long Response Time After Login Callback

These issues can manifest in various ways, but ultimately the browser cannot display correctly after login.

  1. Your server cannot connect to Github/Gitee, which is most common when configuring Github on servers in mainland China. You may try several times or switch to Cloudflare Access.
  2. You have configured the callback address incorrectly. Ensure that your callback address is correct and that both the port and protocol are accurate!
  3. An unknown error occurred on the Dashboard. You can use a script to check the logs.

TIP

What is a protocol? In the browser, the string that ends your domain with :// is the protocol, usually http or https. Since there may be multiple protocol+domain+port combinations available for accessing the Dashboard in a normal deployment, make sure to choose the most appropriate one as the callback.

How to Check if My Callback Address is Wrong?

Ensure that the protocol+domain+port displayed in the browser before login and after the callback are consistent.
Ensure that your path is /oauth2/callback, all in lowercase.

Errors After Logging into the Admin Panel

  1. Clear cookies and log in again, or try a different browser.
  2. Check the callback address to ensure it is correct and that both the port and protocol are accurate! The address initiating the request must be in the same domain as the callback address, with the port, protocol, and domain (or IP) all matching.

lookup xxx

The container DNS resolution failed, usually due to modified iptables configurations.
It is recommended to restart Docker first, sudo systemctl restart docker, then restart the Dashboard using the script.
If the lookup error persists, check if there are other tools controlling iptables, such as firewall.
This issue might also be related to the kernel, so try switching to the official kernel.

Invalid authorization method, or the login callback address is invalid, expired, or has been revoked

This issue appears only when using Gitee login, and the reason is unclear. Switching to GitHub is recommended.

oauth2: server response missing access_token

This could be caused by various factors, most likely a network issue. Check your network and try again.
If unresolved, switching to Github or another method is recommended.

The user is not an admin of this site and cannot log in

You logged in with the wrong account or configured the wrong username. Note that the username is not an email, and you can use a script to modify it.
For Cloudflare Access users, note that your username is not an email but a User ID.

dial tcp xxx:443 i/o timeout

This is a network issue. Try restarting Docker first, sudo systemctl restart docker, then restart the Dashboard using the script.
If you are configuring Github login on a server in mainland China, switching to Cloudflare Access is recommended to avoid network interference.

net/http: TLS handshake timeout

Same as above.

',22),r=[n];function s(l,h,c,d,u,g){return t(),o("div",null,r)}const b=e(i,[["render",s]]);export{m as __pageData,b as default}; +import{_ as e,c as o,o as t,a4 as a}from"./chunks/framework.BmdFiWrL.js";const m=JSON.parse('{"title":"Frequently Asked Questions about logging into the Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/loginq.md","filePath":"en_US/guide/loginq.md","lastUpdated":1720452113000}'),i={name:"en_US/guide/loginq.md"},n=a('

Frequently Asked Questions about logging into the Dashboard

Stuck Page/Connection Refused/Long Response Time After Login Callback

These issues can manifest in various ways, but ultimately the browser cannot display correctly after login.

  1. Your server cannot connect to Github/Gitee, which is most common when configuring Github on servers in mainland China. You may try several times or switch to Cloudflare Access.
  2. You have configured the callback address incorrectly. Ensure that your callback address is correct and that both the port and protocol are accurate!
  3. An unknown error occurred on the Dashboard. You can use a script to check the logs.

TIP

What is a protocol? In the browser, the string that ends your domain with :// is the protocol, usually http or https. Since there may be multiple protocol+domain+port combinations available for accessing the Dashboard in a normal deployment, make sure to choose the most appropriate one as the callback.

How to Check if My Callback Address is Wrong?

Ensure that the protocol+domain+port displayed in the browser before login and after the callback are consistent.
Ensure that your path is /oauth2/callback, all in lowercase.

Errors After Logging into the Admin Panel

  1. Clear cookies and log in again, or try a different browser.
  2. Check the callback address to ensure it is correct and that both the port and protocol are accurate! The address initiating the request must be in the same domain as the callback address, with the port, protocol, and domain (or IP) all matching.

lookup xxx

The container DNS resolution failed, usually due to modified iptables configurations.
It is recommended to restart Docker first, sudo systemctl restart docker, then restart the Dashboard using the script.
If the lookup error persists, check if there are other tools controlling iptables, such as firewall.
This issue might also be related to the kernel, so try switching to the official kernel.

Invalid authorization method, or the login callback address is invalid, expired, or has been revoked

This issue appears only when using Gitee login, and the reason is unclear. Switching to GitHub is recommended.

oauth2: server response missing access_token

This could be caused by various factors, most likely a network issue. Check your network and try again.
If unresolved, switching to Github or another method is recommended.

The user is not an admin of this site and cannot log in

You logged in with the wrong account or configured the wrong username. Note that the username is not an email, and you can use a script to modify it.
For Cloudflare Access users, note that your username is not an email but a User ID.

dial tcp xxx:443 i/o timeout

This is a network issue. Try restarting Docker first, sudo systemctl restart docker, then restart the Dashboard using the script.
If you are configuring Github login on a server in mainland China, switching to Cloudflare Access is recommended to avoid network interference.

net/http: TLS handshake timeout

Same as above.

',22),r=[n];function s(l,h,c,d,u,g){return t(),o("div",null,r)}const b=e(i,[["render",s]]);export{m as __pageData,b as default}; diff --git a/assets/en_US_guide_loginq.md.BfbDl9No.lean.js b/assets/en_US_guide_loginq.md.CjimSdcs.lean.js similarity index 74% rename from assets/en_US_guide_loginq.md.BfbDl9No.lean.js rename to assets/en_US_guide_loginq.md.CjimSdcs.lean.js index da331397..0671ddde 100644 --- a/assets/en_US_guide_loginq.md.BfbDl9No.lean.js +++ b/assets/en_US_guide_loginq.md.CjimSdcs.lean.js @@ -1 +1 @@ -import{_ as e,c as o,o as t,a4 as a}from"./chunks/framework.BmdFiWrL.js";const m=JSON.parse('{"title":"Frequently Asked Questions about logging into the Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/loginq.md","filePath":"en_US/guide/loginq.md","lastUpdated":1720181562000}'),i={name:"en_US/guide/loginq.md"},n=a("",22),r=[n];function s(l,h,c,d,u,g){return t(),o("div",null,r)}const b=e(i,[["render",s]]);export{m as __pageData,b as default}; +import{_ as e,c as o,o as t,a4 as a}from"./chunks/framework.BmdFiWrL.js";const m=JSON.parse('{"title":"Frequently Asked Questions about logging into the Dashboard","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/loginq.md","filePath":"en_US/guide/loginq.md","lastUpdated":1720452113000}'),i={name:"en_US/guide/loginq.md"},n=a("",22),r=[n];function s(l,h,c,d,u,g){return t(),o("div",null,r)}const b=e(i,[["render",s]]);export{m as __pageData,b as default}; diff --git a/assets/en_US_guide_notifications.md.CUwq37az.js b/assets/en_US_guide_notifications.md.CL-PJ2A6.js similarity index 99% rename from assets/en_US_guide_notifications.md.CUwq37az.js rename to assets/en_US_guide_notifications.md.CL-PJ2A6.js index 02b94e92..5ca2a11b 100644 --- a/assets/en_US_guide_notifications.md.CUwq37az.js +++ b/assets/en_US_guide_notifications.md.CL-PJ2A6.js @@ -1,4 +1,4 @@ -import{_ as i,c as s,o as t,a4 as a}from"./chunks/framework.BmdFiWrL.js";const E=JSON.parse('{"title":"Notification Configuration","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/notifications.md","filePath":"en_US/guide/notifications.md","lastUpdated":1720181562000}'),e={name:"en_US/guide/notifications.md"},n=a(`

Notification Configuration

Nezha Monitoring supports monitoring server load, CPU, memory, disk, traffic, monthly traffic, process count, and connection count, and sending notifications when user-defined thresholds are reached.

Flexible Notification Methods

  • In Dashboard messages, the placeholder #DATETIME# represents the timestamp of the event. When the notification is triggered, the Dashboard automatically replaces #DATETIME# with the actual event time.
  • #NEZHA# is a placeholder for Dashboard messages, and the Dashboard automatically replaces the placeholder with the actual message when the notification is triggered.
  • The body content is in JSON format: When the request type is FORM, the value is in key:value form, and placeholders can be placed inside value. The placeholders will be automatically replaced during notification. When the request type is JSON, only simple string replacement is performed before being submitted to the URL.
  • Placeholders can also be placed inside the URL, and simple string replacement will be performed during the request.

Refer to the following notification method examples, and you can also flexibly set the push method according to your needs.

Bark Example

Click to expand/collapse
  • Name: Bark

  • URL structure: /:key/:body or /:key/:title/:body or /:key/:category/:title/:body

  • Request Method: GET

  • Request Type: Default

  • Body: Empty

  • Name: Bark

  • URL structure: /push

  • Request Method: POST

  • Request Type: form

  • Body: {"title": "#SERVER.NAME#","device_key":"xxxxxxxxx","body":"#NEZHA#","icon":"https://xxxxxxxx/nz.png"}

Slack Example Contributor: @白歌

Click to expand/collapse

URL Parameter Acquisition Instructions

Prepare your Slack Workspace in advance and create an App for this Workspace. If you have not created one, you can create an App at Slack API.

After creating the App, you need to add an Incoming Webhook to the App. In the App's settings page, find Incoming Webhooks, enable Activate Incoming Webhooks, and at the bottom of the page, find and click Add New Webhook to Workspace, choose a Channel, and click Allow. After creating, you will get a Webhook URL, which you will use to replace the example URL below.

Telegram Example Contributor: @白歌

Click to expand/collapse

URL Parameter Acquisition Instructions

Create a bot in Telegram and get the bot's token and your Telegram user ID.

The token and user ID are alphanumeric strings. You can get your user ID by chatting with @userinfobot on Telegram. Create a bot by chatting with @BotFather, and you will get the bot's token.

Replace botXXXXXX with your bot token and YYYYYY with your user ID in the URL below. Note that you need to chat with the bot first, otherwise the bot cannot send messages to you.

Email Notification Example - Outlook Contributor: @白歌

Click to expand/collapse

Note: SendCloud has a daily free email sending limit. This is just an example. You can choose a paid service or other similar free services. The usage method is similar.

URL Parameter Acquisition Instructions

This example uses SendCloud as the email service. You need to register an account on SendCloud, create a sender email, and then obtain the APIUSER and APIKEY here.

Replace <replaceAPIUSER> and <replaceAPIKEY> in the example URL below with your APIUSER and APIKEY, and replace <customSenderEmail> and <customRecipientEmail> with any sender and recipient email addresses.

+ \ No newline at end of file diff --git a/en_US/guide/loginq.html b/en_US/guide/loginq.html index d2a1a840..f7e59094 100644 --- a/en_US/guide/loginq.html +++ b/en_US/guide/loginq.html @@ -6,13 +6,13 @@ Frequently Asked Questions about logging into the Dashboard | Nezha Monitoring - + - + - - + + @@ -22,8 +22,8 @@ -
Skip to content

Frequently Asked Questions about logging into the Dashboard

Stuck Page/Connection Refused/Long Response Time After Login Callback

These issues can manifest in various ways, but ultimately the browser cannot display correctly after login.

  1. Your server cannot connect to Github/Gitee, which is most common when configuring Github on servers in mainland China. You may try several times or switch to Cloudflare Access.
  2. You have configured the callback address incorrectly. Ensure that your callback address is correct and that both the port and protocol are accurate!
  3. An unknown error occurred on the Dashboard. You can use a script to check the logs.

TIP

What is a protocol? In the browser, the string that ends your domain with :// is the protocol, usually http or https. Since there may be multiple protocol+domain+port combinations available for accessing the Dashboard in a normal deployment, make sure to choose the most appropriate one as the callback.

How to Check if My Callback Address is Wrong?

Ensure that the protocol+domain+port displayed in the browser before login and after the callback are consistent.
Ensure that your path is /oauth2/callback, all in lowercase.

Errors After Logging into the Admin Panel

  1. Clear cookies and log in again, or try a different browser.
  2. Check the callback address to ensure it is correct and that both the port and protocol are accurate! The address initiating the request must be in the same domain as the callback address, with the port, protocol, and domain (or IP) all matching.

lookup xxx

The container DNS resolution failed, usually due to modified iptables configurations.
It is recommended to restart Docker first, sudo systemctl restart docker, then restart the Dashboard using the script.
If the lookup error persists, check if there are other tools controlling iptables, such as firewall.
This issue might also be related to the kernel, so try switching to the official kernel.

Invalid authorization method, or the login callback address is invalid, expired, or has been revoked

This issue appears only when using Gitee login, and the reason is unclear. Switching to GitHub is recommended.

oauth2: server response missing access_token

This could be caused by various factors, most likely a network issue. Check your network and try again.
If unresolved, switching to Github or another method is recommended.

The user is not an admin of this site and cannot log in

You logged in with the wrong account or configured the wrong username. Note that the username is not an email, and you can use a script to modify it.
For Cloudflare Access users, note that your username is not an email but a User ID.

dial tcp xxx:443 i/o timeout

This is a network issue. Try restarting Docker first, sudo systemctl restart docker, then restart the Dashboard using the script.
If you are configuring Github login on a server in mainland China, switching to Cloudflare Access is recommended to avoid network interference.

net/http: TLS handshake timeout

Same as above.

- +
Skip to content

Frequently Asked Questions about logging into the Dashboard

Stuck Page/Connection Refused/Long Response Time After Login Callback

These issues can manifest in various ways, but ultimately the browser cannot display correctly after login.

  1. Your server cannot connect to Github/Gitee, which is most common when configuring Github on servers in mainland China. You may try several times or switch to Cloudflare Access.
  2. You have configured the callback address incorrectly. Ensure that your callback address is correct and that both the port and protocol are accurate!
  3. An unknown error occurred on the Dashboard. You can use a script to check the logs.

TIP

What is a protocol? In the browser, the string that ends your domain with :// is the protocol, usually http or https. Since there may be multiple protocol+domain+port combinations available for accessing the Dashboard in a normal deployment, make sure to choose the most appropriate one as the callback.

How to Check if My Callback Address is Wrong?

Ensure that the protocol+domain+port displayed in the browser before login and after the callback are consistent.
Ensure that your path is /oauth2/callback, all in lowercase.

Errors After Logging into the Admin Panel

  1. Clear cookies and log in again, or try a different browser.
  2. Check the callback address to ensure it is correct and that both the port and protocol are accurate! The address initiating the request must be in the same domain as the callback address, with the port, protocol, and domain (or IP) all matching.

lookup xxx

The container DNS resolution failed, usually due to modified iptables configurations.
It is recommended to restart Docker first, sudo systemctl restart docker, then restart the Dashboard using the script.
If the lookup error persists, check if there are other tools controlling iptables, such as firewall.
This issue might also be related to the kernel, so try switching to the official kernel.

Invalid authorization method, or the login callback address is invalid, expired, or has been revoked

This issue appears only when using Gitee login, and the reason is unclear. Switching to GitHub is recommended.

oauth2: server response missing access_token

This could be caused by various factors, most likely a network issue. Check your network and try again.
If unresolved, switching to Github or another method is recommended.

The user is not an admin of this site and cannot log in

You logged in with the wrong account or configured the wrong username. Note that the username is not an email, and you can use a script to modify it.
For Cloudflare Access users, note that your username is not an email but a User ID.

dial tcp xxx:443 i/o timeout

This is a network issue. Try restarting Docker first, sudo systemctl restart docker, then restart the Dashboard using the script.
If you are configuring Github login on a server in mainland China, switching to Cloudflare Access is recommended to avoid network interference.

net/http: TLS handshake timeout

Same as above.

+ \ No newline at end of file diff --git a/en_US/guide/notifications.html b/en_US/guide/notifications.html index b5d3e722..281c2534 100644 --- a/en_US/guide/notifications.html +++ b/en_US/guide/notifications.html @@ -6,13 +6,13 @@ Notification Configuration | Nezha Monitoring - + - + - - + + @@ -22,7 +22,7 @@ -
Skip to content

Notification Configuration

Nezha Monitoring supports monitoring server load, CPU, memory, disk, traffic, monthly traffic, process count, and connection count, and sending notifications when user-defined thresholds are reached.

Flexible Notification Methods

  • In Dashboard messages, the placeholder #DATETIME# represents the timestamp of the event. When the notification is triggered, the Dashboard automatically replaces #DATETIME# with the actual event time.
  • #NEZHA# is a placeholder for Dashboard messages, and the Dashboard automatically replaces the placeholder with the actual message when the notification is triggered.
  • The body content is in JSON format: When the request type is FORM, the value is in key:value form, and placeholders can be placed inside value. The placeholders will be automatically replaced during notification. When the request type is JSON, only simple string replacement is performed before being submitted to the URL.
  • Placeholders can also be placed inside the URL, and simple string replacement will be performed during the request.

Refer to the following notification method examples, and you can also flexibly set the push method according to your needs.

Bark Example

Click to expand/collapse
  • Name: Bark

  • URL structure: /:key/:body or /:key/:title/:body or /:key/:category/:title/:body

  • Request Method: GET

  • Request Type: Default

  • Body: Empty

  • Name: Bark

  • URL structure: /push

  • Request Method: POST

  • Request Type: form

  • Body: {"title": "#SERVER.NAME#","device_key":"xxxxxxxxx","body":"#NEZHA#","icon":"https://xxxxxxxx/nz.png"}

Slack Example Contributor: @白歌

Click to expand/collapse

URL Parameter Acquisition Instructions

Prepare your Slack Workspace in advance and create an App for this Workspace. If you have not created one, you can create an App at Slack API.

After creating the App, you need to add an Incoming Webhook to the App. In the App's settings page, find Incoming Webhooks, enable Activate Incoming Webhooks, and at the bottom of the page, find and click Add New Webhook to Workspace, choose a Channel, and click Allow. After creating, you will get a Webhook URL, which you will use to replace the example URL below.

Telegram Example Contributor: @白歌

Click to expand/collapse

URL Parameter Acquisition Instructions

Create a bot in Telegram and get the bot's token and your Telegram user ID.

The token and user ID are alphanumeric strings. You can get your user ID by chatting with @userinfobot on Telegram. Create a bot by chatting with @BotFather, and you will get the bot's token.

Replace botXXXXXX with your bot token and YYYYYY with your user ID in the URL below. Note that you need to chat with the bot first, otherwise the bot cannot send messages to you.

Email Notification Example - Outlook Contributor: @白歌

Click to expand/collapse

Note: SendCloud has a daily free email sending limit. This is just an example. You can choose a paid service or other similar free services. The usage method is similar.

URL Parameter Acquisition Instructions

This example uses SendCloud as the email service. You need to register an account on SendCloud, create a sender email, and then obtain the APIUSER and APIKEY here.

Replace <replaceAPIUSER> and <replaceAPIKEY> in the example URL below with your APIUSER and APIKEY, and replace <customSenderEmail> and <customRecipientEmail> with any sender and recipient email addresses.

You can remove or add relevant information as needed.

Notification Rule Explanation

Basic Rules

  • type: You can choose one or more types. If multiple types are selected in one rule, all selected types must be satisfied to trigger a notification (refer to the examples below)
    • cpu, gpu, memory, swap, disk
    • net_in_speed inbound network speed, net_out_speed outbound network speed, net_all_speed total network speed, transfer_in inbound traffic, transfer_out outbound traffic, transfer_all total traffic
    • offline offline monitoring
    • load1, load5, load15 load
    • process_count process count (currently resource-intensive due to thread count, not supported temporarily)
    • tcp_conn_count, udp_conn_count connection count
    • temperature_max maximum temperature
  • duration: Duration in seconds. An notification is triggered if 30% or more of the samples exceed the threshold within this duration (to prevent data spikes).
  • min or max:
    • For traffic and network speed, the unit is bytes (1KB = 1024B, 1MB = 1024 * 1024B)
    • For memory, disk, and CPU, the unit is percentage
    • No need to set this for offline monitoring
  • cover:
    • 0 monitors all servers, use ignore to exclude specific servers
    • 1 ignores all servers, use ignore to monitor specific servers
      Example: [{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]
  • ignore: Select specific servers to exclude, used with cover, content is server ID and boolean value, e.g., {"1": true, "2": false}

Complete Examples:

Add an offline notification:

  • Name: Offline Notification
  • Rule: [{"Type":"offline","Duration":10}]
  • Enabled: √

Add an notification for CPU usage exceeding 50% for 10 seconds and memory usage below 20% for 20 seconds:

  • Name: CPU+Memory
  • Rule: [{"Type":"cpu","Min":0,"Max":50,"Duration":10},{"Type":"memory","Min":20,"Max":0,"Duration":20}]
  • Enabled: √

Send notifications for specific servers to specific notification groups:

Scenario example:
There are 4 servers (1, 2, 3, 4) and two notification groups (A, B).
Notify group A if servers 1 and 2 are offline for 10 minutes.
Notify group B if servers 3 and 4 are offline for 10 minutes.

First, set up notification groups A and B, then add two notification rules:

Rule 1:

  • Name: 1, 2 Offline, Send to Notification Group A
  • Rule: [{"type":"offline","duration":600,"cover":1,"ignore":{"1":true,"2":true}}]
  • Notification Group: A
  • Enabled: √

Rule 2:

  • Name: 3, 4 Offline, Send to Notification Group B
  • Rule: [{"type":"offline","duration":600,"cover":1,"ignore":{"3":true,"4":true}}]
  • Notification Group: B
  • Enabled: √

Flexibly using parameters can make your notification function fully utilized

Special: Any Cycle Traffic notification

Can be used for monthly traffic monitoring

  • type:
    • transfer_in_cycle inbound traffic during the cycle
    • transfer_out_cycle outbound traffic during the cycle
    • transfer_all_cycle total traffic during the cycle
  • cycle_start: The start date of the statistical cycle (can be the start date of your server billing cycle). The time format is RFC3339, e.g., Beijing time is 2022-01-11T08:00:00.00+08:00
  • cycle_interval: The number of statistical cycle units (e.g., if the cycle unit is days, and this value is 7, it means statistics are collected every 7 days)
  • cycle_unit: Statistical cycle unit, default is hour, optional (hour, day, week, month, year)
  • min/max, cover, ignore refer to basic rule configuration

Example:

For servers with IDs 3 and 4 (defined in ignore), if the monthly outbound traffic exceeds 1TB starting from the 1st of each month, send an notification:

json
[{"type":"transfer_out_cycle","max":1099511627776,"cycle_start":"2022-01-01T00:00:00+08:00","cycle_interval":1,"cycle_unit":"month","cover":1,"ignore":{"3":true,"4":true}}]

Notification Trigger Modes

  • Always Trigger: A notification is triggered every time the Agent reports a status that matches the notification rule.
  • Single Trigger: A notification is triggered only once when the status changes, such as from normal to abnormal or from abnormal to normal.

Set Tasks to Execute on notifications

If you need to execute a task while sending an notification message, you can set this item.

  • Task on Notification: The task to be executed when the notification status changes from "normal" to "event". The task should be set in the tasks page in advance.
  • Task on Recovery: The task to be executed when the notification status changes from "event" to "normal". The task should be set in the tasks page in advance.
+ \ No newline at end of file diff --git a/en_US/guide/q2.html b/en_US/guide/q2.html index 4e2c1d47..186c3d6f 100644 --- a/en_US/guide/q2.html +++ b/en_US/guide/q2.html @@ -6,13 +6,13 @@ Agent Startup/Online Troubleshooting Process | Nezha Monitoring - + - + - - + + @@ -22,8 +22,8 @@ -
Skip to content

Agent Startup/Online Troubleshooting Process

  1. Directly execute /opt/nezha/agent/nezha-agent -s DashboardIP or non-CDN domain:RPCPort -p AgentKey -d to check if the logs indicate timeouts due to DNS or poor network conditions.
  2. Use nc -v Domain/IP RPCPort or telnet Domain/IP RPCPort to check for network issues, inspect the inbound and outbound firewalls of the local machine and the panel server. If you cannot determine the issue, you can use the port checking tool provided by https://port.ping.pe/.
  3. If the above steps indicate no issues but the Agent still does not go online correctly, try disabling SELinux. How to disable SELinux?
- +
Skip to content

Agent Startup/Online Troubleshooting Process

  1. Directly execute /opt/nezha/agent/nezha-agent -s DashboardIP or non-CDN domain:RPCPort -p AgentKey -d to check if the logs indicate timeouts due to DNS or poor network conditions.
  2. Use nc -v Domain/IP RPCPort or telnet Domain/IP RPCPort to check for network issues, inspect the inbound and outbound firewalls of the local machine and the panel server. If you cannot determine the issue, you can use the port checking tool provided by https://port.ping.pe/.
  3. If the above steps indicate no issues but the Agent still does not go online correctly, try disabling SELinux. How to disable SELinux?
+ \ No newline at end of file diff --git a/en_US/guide/q3.html b/en_US/guide/q3.html index 26e2f232..80e602a2 100644 --- a/en_US/guide/q3.html +++ b/en_US/guide/q3.html @@ -6,13 +6,13 @@ Reverse Proxy gRPC Port (Supports Cloudflare CDN) | Nezha Monitoring - + - + - - + + @@ -22,7 +22,7 @@ -
Skip to content

Reverse Proxy gRPC Port (Supports Cloudflare CDN)

Using Nginx or Caddy to reverse proxy gRPC

  • Nginx Configuration
nginx
server {
+    
Skip to content

Reverse Proxy gRPC Port (Supports Cloudflare CDN)

Using Nginx or Caddy to reverse proxy gRPC

  • Nginx Configuration
nginx
server {
     listen 443 ssl http2;
     listen [::]:443 ssl http2;
     server_name data.example.com; # Your domain that the Agent uses to connect to the Dashboard
@@ -95,8 +95,8 @@
 localhost:~/agent# /opt/nezha/agent/nezha-agent -s nezha.xxx.xxx:443 -p YOUR_KEY --tls -d
 NEZHA@2023-12-20 05:14:00>> 检查更新: 0.15.14
 NEZHA@2023-12-20 05:14:01>> 上报系统信息失败: rpc error: code = Unknown desc = EOF # You need to modify the GRPCHost and TLS options in the Dashboard /opt/nezha/dashboard/data/config.yaml
-NEZHA@2023-12-20 05:14:01>> Error to close connection ...
- +NEZHA@2023-12-20 05:14:01>> Error to close connection ...
+ \ No newline at end of file diff --git a/en_US/guide/q4.html b/en_US/guide/q4.html index 0b166c58..d7f1bad0 100644 --- a/en_US/guide/q4.html +++ b/en_US/guide/q4.html @@ -6,13 +6,13 @@ Real-Time Channel Disconnection/Online Terminal Connection Failure | Nezha Monitoring - + - + - - + + @@ -22,8 +22,8 @@ - - + + \ No newline at end of file diff --git a/en_US/guide/q5.html b/en_US/guide/q5.html index 9e53ac86..79575115 100644 --- a/en_US/guide/q5.html +++ b/en_US/guide/q5.html @@ -6,13 +6,13 @@ How to Perform Data Migration and Backup Recovery? | Nezha Monitoring - + - + - - + + @@ -22,8 +22,8 @@ - - + + \ No newline at end of file diff --git a/en_US/guide/q6.html b/en_US/guide/q6.html index 9285b886..92c1c3a3 100644 --- a/en_US/guide/q6.html +++ b/en_US/guide/q6.html @@ -6,13 +6,13 @@ How to Reset Traffic Statistics Monthly? | Nezha Monitoring - + - + - - + + @@ -22,8 +22,8 @@ -
Skip to content

How to Reset Traffic Statistics Monthly?

The traffic statistics on the homepage reset every time the server restarts. To achieve a monthly reset of the traffic counter, you can do the following:

  1. Go to the Notification page in the management panel.
  2. Refer to this document to create a monthly traffic notification.
  3. Return to the homepage and go to the Services page, where you can see the monthly traffic statistics. The statistics here will not reset when the server restarts.

TIP

This method allows you to set any period, including but not limited to hourly, daily, weekly, monthly, or yearly traffic statistics reset, offering great flexibility!

- +
Skip to content

How to Reset Traffic Statistics Monthly?

The traffic statistics on the homepage reset every time the server restarts. To achieve a monthly reset of the traffic counter, you can do the following:

  1. Go to the Notification page in the management panel.
  2. Refer to this document to create a monthly traffic notification.
  3. Return to the homepage and go to the Services page, where you can see the monthly traffic statistics. The statistics here will not reset when the server restarts.

TIP

This method allows you to set any period, including but not limited to hourly, daily, weekly, monthly, or yearly traffic statistics reset, offering great flexibility!

+ \ No newline at end of file diff --git a/en_US/guide/q7.html b/en_US/guide/q7.html index 9a64149f..0c62f22d 100644 --- a/en_US/guide/q7.html +++ b/en_US/guide/q7.html @@ -6,13 +6,13 @@ Custom Agent Monitoring Projects | Nezha Monitoring - + - + - - + + @@ -22,8 +22,8 @@ -
Skip to content

Custom Agent Monitoring Projects

Customizing Monitored Network Interfaces and Disk Partitions

Execute the following command to select custom network interfaces and partitions, then restart the Agent for the changes to take effect:

bash
/opt/nezha/agent/nezha-agent edit

Other Runtime Parameters

To view the supported parameters, execute:

bash
./nezha-agent --help

If you installed the Agent using the one-click script, you can edit /etc/systemd/system/nezha-agent.service and add the following parameters at the end of the ExecStart= line:

  • --report-delay: Controls the interval for reporting system information. The default is 1 second. You can set it to 3 to further reduce the agent's system resource usage (configuration range: 1-4).
  • --skip-conn: Does not monitor connection counts. Recommended for servers with high connection density or high CPU usage.
  • --skip-procs: Does not monitor process counts, which can also reduce Agent resource usage.
  • --disable-auto-update: Disables automatic updates for the Agent (security feature).
  • --disable-force-update: Disables forced updates for the Agent (security feature).
  • --disable-command-execute: Disables the execution of scheduled tasks and the opening of the online terminal on the Agent (security feature).
  • --tls: Enables SSL/TLS encryption (required if you use nginx to reverse proxy the Agent's gRPC connection and nginx has SSL/TLS enabled).
  • --gpu: Enable GPU monitoring (may need extra dependencies while monitoring GPU utilization. Refer to FAQ - Enable GPU monitoring for any questions.)
- +
Skip to content

Custom Agent Monitoring Projects

Customizing Monitored Network Interfaces and Disk Partitions

Execute the following command to select custom network interfaces and partitions, then restart the Agent for the changes to take effect:

bash
/opt/nezha/agent/nezha-agent edit

Other Runtime Parameters

To view the supported parameters, execute:

bash
./nezha-agent --help

If you installed the Agent using the one-click script, you can edit /etc/systemd/system/nezha-agent.service and add the following parameters at the end of the ExecStart= line:

  • --report-delay: Controls the interval for reporting system information. The default is 1 second. You can set it to 3 to further reduce the agent's system resource usage (configuration range: 1-4).
  • --skip-conn: Does not monitor connection counts. Recommended for servers with high connection density or high CPU usage.
  • --skip-procs: Does not monitor process counts, which can also reduce Agent resource usage.
  • --disable-auto-update: Disables automatic updates for the Agent (security feature).
  • --disable-force-update: Disables forced updates for the Agent (security feature).
  • --disable-command-execute: Disables the execution of scheduled tasks and the opening of the online terminal on the Agent (security feature).
  • --tls: Enables SSL/TLS encryption (required if you use nginx to reverse proxy the Agent's gRPC connection and nginx has SSL/TLS enabled).
  • --gpu: Enable GPU monitoring (may need extra dependencies while monitoring GPU utilization. Refer to FAQ - Enable GPU monitoring for any questions.)
+ \ No newline at end of file diff --git a/en_US/guide/q8.html b/en_US/guide/q8.html index 3f0f8f0d..5b701dc0 100644 --- a/en_US/guide/q8.html +++ b/en_US/guide/q8.html @@ -6,13 +6,13 @@ Cloudflare Access OAuth2 Configuration | Nezha Monitoring - + - + - - + + @@ -22,13 +22,13 @@ -
Skip to content

Cloudflare Access OAuth2 Configuration

If you encounter issues logging in as an administrator using Github, Gitlab, or Gitee, you may consider switching to Cloudflare Access as the OAuth2 provider.

Example Configuration:

yaml
Oauth2:
+    
Skip to content

Cloudflare Access OAuth2 Configuration

If you encounter issues logging in as an administrator using Github, Gitlab, or Gitee, you may consider switching to Cloudflare Access as the OAuth2 provider.

Example Configuration:

yaml
Oauth2:
   Admin: 701b9ea6-9f56-48cd-af3e-cbb4bfc1475c
   ClientID: 3516291f53eca9b4901a01337e41be7dc52f565c8657d08a3fddb2178d13c5bf
   ClientSecret: 0568b67c7b6d0ed51c663e2fe935683007c28f947a27b7bd47a5ad3d8b56fb67
   Endpoint: "https://xxxxx.cloudflareaccess.com"
-  Type: cloudflare

Configuration Description:

ParameterRetrieval Method
AdminMy Team -> Users -> <specific user> -> User ID
ClientID/ClientSecretAccess -> Application -> Add an Application
-> SaaS -> OIDC
EndpointAccess -> Application -> Application URL -> Only keep the protocol and domain, no path

Creating a SaaS-OIDC Application

Go to Zero Trust Dashboard: https://one.dash.cloudflare.com

  1. My Team -> Users -> <specific user> -> Get User ID and save it;
  2. Access -> Application -> Add an Application;
  3. Select SaaS, enter a custom application name (e.g., nezha) in Application, select OIDC, and click Add application;
  4. In Scopes, select openid, email, profile, groups;
  5. Fill in your CallBack URL in Redirect URLs, such as https://dashboard.example.com/oauth2/callback;
  6. Record the Client ID, Client Secret, and the protocol and domain part of the Issuer URL, such as https://xxxxx.cloudflareaccess.com;
  7. Edit the Dashboard configuration file (usually located at /opt/nezha/dashboard/data/config.yaml), modify the Oauth2 configuration according to the example configuration, and restart the Dashboard service.

Authentication Policy Configuration

After completing the Dashboard setup, you also need to configure the authentication policy in the Zero Trust Dashboard: Access -> Applications -> <application name> -> Policies. You can choose from over ten SSO authentication methods, including email OTP verification, hardware key verification, etc. For detailed configuration, please refer to the Cloudflare Zero Trust documentation.

- + Type: cloudflare

Configuration Description:

ParameterRetrieval Method
AdminMy Team -> Users -> <specific user> -> User ID
ClientID/ClientSecretAccess -> Application -> Add an Application
-> SaaS -> OIDC
EndpointAccess -> Application -> Application URL -> Only keep the protocol and domain, no path

Creating a SaaS-OIDC Application

Go to Zero Trust Dashboard: https://one.dash.cloudflare.com

  1. My Team -> Users -> <specific user> -> Get User ID and save it;
  2. Access -> Application -> Add an Application;
  3. Select SaaS, enter a custom application name (e.g., nezha) in Application, select OIDC, and click Add application;
  4. In Scopes, select openid, email, profile, groups;
  5. Fill in your CallBack URL in Redirect URLs, such as https://dashboard.example.com/oauth2/callback;
  6. Record the Client ID, Client Secret, and the protocol and domain part of the Issuer URL, such as https://xxxxx.cloudflareaccess.com;
  7. Edit the Dashboard configuration file (usually located at /opt/nezha/dashboard/data/config.yaml), modify the Oauth2 configuration according to the example configuration, and restart the Dashboard service.

Authentication Policy Configuration

After completing the Dashboard setup, you also need to configure the authentication policy in the Zero Trust Dashboard: Access -> Applications -> <application name> -> Policies. You can choose from over ten SSO authentication methods, including email OTP verification, hardware key verification, etc. For detailed configuration, please refer to the Cloudflare Zero Trust documentation.

+ \ No newline at end of file diff --git a/en_US/guide/q9.html b/en_US/guide/q9.html index fabf4a0a..0ab731ce 100644 --- a/en_US/guide/q9.html +++ b/en_US/guide/q9.html @@ -6,13 +6,13 @@ Enable GPU monitoring | Nezha Monitoring - + - + - - + + @@ -22,7 +22,7 @@ -
Skip to content

Enable GPU monitoring

GPU monitoring is a new feature implemented in Nezha Monitoring v0.17.x. Before using the feature, please check you Dashboard version is higher than v0.17.2 and Agent version is higher than v0.17.0.

Enable

From Command-Line Flag

Append the --gpu flag to the Agent argument. For example:

bash
/opt/nezha/agent/nezha-agent -s example.com:5555 -p example --gpu

From configuration file

Execute the following command to modify Agent configuration to enable GPU monitoring.

bash
/opt/nezha/agent/nezha-agent edit

In the returned interactive menu, choose to enable GPU monitoring.

Enable GPU utilization monitoring

GPU model and GPU utilization are two different monitor items, which uses different approaches to obtain their value.

Windows and macOS supports getting GPU utilization without extra dependencies, and support multiple graphics card brands.

Linux distros support only NVIDIA and AMD cards and need to install extra dependencies.

Below are the instructions on how to enable GPU utilization monitoring on Linux for NVIDIA / AMD graphics cards.

NVIDIA

NVIDIA cards need the nvidia-smi utility to get GPU utilization. This utility is included in the official driver by default.

If you use unofficial drivers like nouveau, then it's not possible to get GPU utilization.

AMD

AMD cards need to install the official amdgpu driver and the rocm-smi utility.

Mainstream distros have already packaged rocm-smi, below are commands to install the utility on these distros:

bash
# Arch Linux
+    
Skip to content

Enable GPU monitoring

GPU monitoring is a new feature implemented in Nezha Monitoring v0.17.x. Before using the feature, please check you Dashboard version is higher than v0.17.2 and Agent version is higher than v0.17.0.

Enable

From Command-Line Flag

Append the --gpu flag to the Agent argument. For example:

bash
/opt/nezha/agent/nezha-agent -s example.com:5555 -p example --gpu

From configuration file

Execute the following command to modify Agent configuration to enable GPU monitoring.

bash
/opt/nezha/agent/nezha-agent edit

In the returned interactive menu, choose to enable GPU monitoring.

Enable GPU utilization monitoring

GPU model and GPU utilization are two different monitor items, which uses different approaches to obtain their value.

Windows and macOS supports getting GPU utilization without extra dependencies, and support multiple graphics card brands.

Linux distros support only NVIDIA and AMD cards and need to install extra dependencies.

Below are the instructions on how to enable GPU utilization monitoring on Linux for NVIDIA / AMD graphics cards.

NVIDIA

NVIDIA cards need the nvidia-smi utility to get GPU utilization. This utility is included in the official driver by default.

If you use unofficial drivers like nouveau, then it's not possible to get GPU utilization.

AMD

AMD cards need to install the official amdgpu driver and the rocm-smi utility.

Mainstream distros have already packaged rocm-smi, below are commands to install the utility on these distros:

bash
# Arch Linux
 pacman -Sy rocm-smi-lib
 
 # Debian / Ubuntu
@@ -35,8 +35,8 @@
 cmake ..
 make -j $(nproc)
 # Install library file and header; default location is /opt/rocm
-make install
- +make install
+ \ No newline at end of file diff --git a/en_US/guide/servers.html b/en_US/guide/servers.html index 330556dc..a02420b8 100644 --- a/en_US/guide/servers.html +++ b/en_US/guide/servers.html @@ -6,13 +6,13 @@ Server Management | Nezha Monitoring - + - + - - + + @@ -22,7 +22,7 @@ -
Skip to content

Server Management

Introduction

The server section is responsible for managing Agents, forming the most fundamental part of Nezha monitoring and serving as the basis for other functionalities.

Adding a Server

The first step is to add a server, where you can customize the name, group, sorting, and notes.
Servers in the same group will be displayed together in supported themes. Notes will only be visible in the Admin Panel, so there's no need to worry about leaking information.

Installing the Agent

Please refer to the previous section on installing the Agent.
It is recommended to use the one-click installation. After configuring the parameters, click the corresponding system icon in the one-click installation column of the server to copy the installation command and execute it on the respective server.

Forced Update

Agent update-related parameters include --disable-auto-update and --disable-force-update as described in Custom Agent Monitoring Projects.
By default, the Agent will update automatically without intervention. However, if the user disables automatic updates, you can select specific servers for a forced update.
The forced update will not work if disable-force-update is enabled.

Data Columns

  • Version: Records the current version of the Agent.
  • Hide from Guests: When true, guests cannot see this server in the Dashboard.
  • Enable DDNS: When true, if the server IP changes, the Dashboard will automatically update the DNS records.
  • DDNS Domain: The DDNS domain configured for this server.
  • Secret: The secret/key used for configuring the Agent, which is used to verify communication between the Agent and the Dashboard.
  • One-Click Install: Click the corresponding system button to copy the command and execute it on the server for a one-click installation.
  • Management: Connects to WebShell, modifies server configuration, or deletes the server.

WebSSH Terminal

This is WebShell; the feature will not work if disable-command-execute is enabled.
It is available for both Linux and Windows and supports Ctrl+Shift+V for pasting.
If the connection fails, refer to Real-Time Channel Disconnection/Online Terminal Connection Failure.
Note that in the WebSSH terminal function, the Agent connects to the public access domain via WebSocket, not through gRPC.

DDNS Functionality

The DDNS functionality is suitable for servers with dynamic IPs. When the Agent reports a new IP, the Dashboard will automatically update the DNS records based on the configuration.

Why Use Nezha Monitoring's DDNS Functionality?

  • Centralized management of DDNS settings instead of deploying a DDNS service on each server.
  • Confidential information is only stored on the Dashboard server, preventing leakage.

Configuration Instructions

Currently, the DDNS functionality supports two configuration forms: single configuration and multiple configurations. If single configuration is used, all Agent servers will use the same configuration to update DDNS. If multiple configurations are used, each server can be assigned a specific configuration to update DDNS, offering greater flexibility.

Single Configuration

yaml
DDNS:
+    
Skip to content

Server Management

Introduction

The server section is responsible for managing Agents, forming the most fundamental part of Nezha monitoring and serving as the basis for other functionalities.

Adding a Server

The first step is to add a server, where you can customize the name, group, sorting, and notes.
Servers in the same group will be displayed together in supported themes. Notes will only be visible in the Admin Panel, so there's no need to worry about leaking information.

Installing the Agent

Please refer to the previous section on installing the Agent.
It is recommended to use the one-click installation. After configuring the parameters, click the corresponding system icon in the one-click installation column of the server to copy the installation command and execute it on the respective server.

Forced Update

Agent update-related parameters include --disable-auto-update and --disable-force-update as described in Custom Agent Monitoring Projects.
By default, the Agent will update automatically without intervention. However, if the user disables automatic updates, you can select specific servers for a forced update.
The forced update will not work if disable-force-update is enabled.

Data Columns

  • Version: Records the current version of the Agent.
  • Hide from Guests: When true, guests cannot see this server in the Dashboard.
  • Enable DDNS: When true, if the server IP changes, the Dashboard will automatically update the DNS records.
  • DDNS Domain: The DDNS domain configured for this server.
  • Secret: The secret/key used for configuring the Agent, which is used to verify communication between the Agent and the Dashboard.
  • One-Click Install: Click the corresponding system button to copy the command and execute it on the server for a one-click installation.
  • Management: Connects to WebShell, modifies server configuration, or deletes the server.

WebSSH Terminal

This is WebShell; the feature will not work if disable-command-execute is enabled.
It is available for both Linux and Windows and supports Ctrl+Shift+V for pasting.
If the connection fails, refer to Real-Time Channel Disconnection/Online Terminal Connection Failure.
Note that in the WebSSH terminal function, the Agent connects to the public access domain via WebSocket, not through gRPC.

DDNS Functionality

The DDNS functionality is suitable for servers with dynamic IPs. When the Agent reports a new IP, the Dashboard will automatically update the DNS records based on the configuration.

Why Use Nezha Monitoring's DDNS Functionality?

  • Centralized management of DDNS settings instead of deploying a DDNS service on each server.
  • Confidential information is only stored on the Dashboard server, preventing leakage.

Configuration Instructions

Currently, the DDNS functionality supports two configuration forms: single configuration and multiple configurations. If single configuration is used, all Agent servers will use the same configuration to update DDNS. If multiple configurations are used, each server can be assigned a specific configuration to update DDNS, offering greater flexibility.

Single Configuration

yaml
DDNS:
   Enable: true
   Provider: "webhook"
   AccessID: ""
@@ -47,8 +47,8 @@
       WebhookURL: ""
       WebhookRequestBody: ""
       WebhookHeaders: ""
  • Profiles: Multi-configuration settings.
  • example: Can be replaced with any string as the DDNS configuration name.

Other options can be referenced from the Single Configuration section.

Dashboard Configuration

After modifying the configuration file, you also need to modify the server settings in the Dashboard for the DDNS to take effect.

DDNS related options:

  • Enable DDNS: Enable the DDNS functionality for this server.
  • Enable DDNS IPv4: Enable IPv4 resolution when updating DDNS records.
  • Enable DDNS IPv6: Enable IPv6 resolution when updating DDNS records.
  • DDNS Domain: The domain the record points to.
  • DDNS Configuration: The DDNS configuration name to use in multiple configurations.

WARNING

When you modify the configuration and save it in the Dashboard settings, it will populate the default configuration options in config.yaml, and both single and multiple configurations will exist in the DDNS section.

  • To use single configuration, configure DDNS.Provider and ignore the Profiles options.
  • To use multiple configurations, leave DDNS.Provider empty. If DDNS.Provider is not empty, the multiple configuration settings will be ignored.

Viewing Logs

In the Dashboard logs, you can see the relevant logs for the DDNS functionality. When configured correctly, there will be corresponding log entries when updating DNS records.

shell
dashboard_1  | 2024/03/16 23:16:25 NEZHA>> 正在尝试更新域名(ddns.example.com)DDNS(1/3) # Attempting to update domain (ddns.example.com) DDNS (1/3)
-dashboard_1  | 2024/03/16 23:16:28 NEZHA>> 尝试更新域名(ddns.example.com)DDNS成功 # Successfully updated domain (ddns.example.com) DDNS
- +dashboard_1 | 2024/03/16 23:16:28 NEZHA>> 尝试更新域名(ddns.example.com)DDNS成功 # Successfully updated domain (ddns.example.com) DDNS
+ \ No newline at end of file diff --git a/en_US/guide/services.html b/en_US/guide/services.html index dd98c39e..f0ab9511 100644 --- a/en_US/guide/services.html +++ b/en_US/guide/services.html @@ -6,13 +6,13 @@ Service Monitoring | Nezha Monitoring - + - + - - + + @@ -22,8 +22,8 @@ -
Skip to content

Service Monitoring

The Services section is where you set up monitoring for external websites or servers using Agents.
Configured service monitors can be viewed on the "Services" page of the homepage, displaying the availability monitoring results for the past 30 days.

How to Use

To add a new monitor, go to the "Services" page in the Admin Panel and click "Add Monitor."

When adding a new service monitor, you need to set the following parameters:

  • Name: Customize a name.

  • Type: Select a monitor type. Nezha Monitoring currently supports three types: "HTTP-GET," "ICMP-Ping," and "TCP-Ping."

  • Target: Depending on the type you choose, the method for setting the target differs:

    • HTTP-GET: For this type, you should enter a URL as the target, including http:// or https://. If your target URL is https://, the SSL certificate of that URL will also be monitored. Notifications will be triggered when the SSL certificate expires or changes. Example: https://example.com.
    • ICMP-Ping: For this type, you should enter a domain name or IP without a port number. Example: 1.1.1.1 or example.com.
    • TCP-Ping: For this type, you should enter a domain name or IP with a port number. Example: 1.1.1.1:80 or example.com:22.
  • Request Interval: Set the interval in seconds at which the Agent requests the target.

  • Coverage: Select a rule to determine which Agents will request the target.

  • Specific Servers: Used in conjunction with the coverage scope, select Agents within the rule to exclude.

  • Notification Group: Choose the notification methods you have already set up on the "Notification" page. Click here for more details.

  • Enable Fault Notification: Choose whether to receive fault notifications for the target as needed. The default is unchecked.

After setting it up, click "Add." Wait a moment and go to the "Services" page on the homepage to view the monitoring results.

Latency Change Notification

Nezha Monitoring can monitor and record the latency between the Agent and the target server, sending notifications when there are significant changes. This feature helps you monitor if the server's network route has changed.

  • Enable Latency Notifications: When enabled, Notification will be sent if the latency from the Agent to the target server is greater than the Maximum Latency or less than the Minimum Latency.

Trigger Tasks on Notification

If you need to execute tasks when service monitoring Notification are triggered, you can check "Enable Trigger Tasks" and select the pre-configured trigger tasks in "Task on Notification" and "Task on Recovery."

Network Latency Chart

The TCP-Ping and ICMP-Ping monitoring types set in the Services page will automatically enable the monitoring chart feature. On the "Network" page of the homepage, you can view historical network latency charts. The data in the charts is based on the latency from the Agent to the target server. You can click the Agent's name to toggle the chart display. In the chart, you can uncheck the target server's name to hide or show the corresponding data.

Managing Monitors

To manage existing service monitors, go to the "Services" page in the Admin Panel. Select a monitor configuration and click the icons on the right to edit or delete it.

- +
Skip to content

Service Monitoring

The Services section is where you set up monitoring for external websites or servers using Agents.
Configured service monitors can be viewed on the "Services" page of the homepage, displaying the availability monitoring results for the past 30 days.

How to Use

To add a new monitor, go to the "Services" page in the Admin Panel and click "Add Monitor."

When adding a new service monitor, you need to set the following parameters:

  • Name: Customize a name.

  • Type: Select a monitor type. Nezha Monitoring currently supports three types: "HTTP-GET," "ICMP-Ping," and "TCP-Ping."

  • Target: Depending on the type you choose, the method for setting the target differs:

    • HTTP-GET: For this type, you should enter a URL as the target, including http:// or https://. If your target URL is https://, the SSL certificate of that URL will also be monitored. Notifications will be triggered when the SSL certificate expires or changes. Example: https://example.com.
    • ICMP-Ping: For this type, you should enter a domain name or IP without a port number. Example: 1.1.1.1 or example.com.
    • TCP-Ping: For this type, you should enter a domain name or IP with a port number. Example: 1.1.1.1:80 or example.com:22.
  • Request Interval: Set the interval in seconds at which the Agent requests the target.

  • Coverage: Select a rule to determine which Agents will request the target.

  • Specific Servers: Used in conjunction with the coverage scope, select Agents within the rule to exclude.

  • Notification Group: Choose the notification methods you have already set up on the "Notification" page. Click here for more details.

  • Enable Fault Notification: Choose whether to receive fault notifications for the target as needed. The default is unchecked.

After setting it up, click "Add." Wait a moment and go to the "Services" page on the homepage to view the monitoring results.

Latency Change Notification

Nezha Monitoring can monitor and record the latency between the Agent and the target server, sending notifications when there are significant changes. This feature helps you monitor if the server's network route has changed.

  • Enable Latency Notifications: When enabled, Notification will be sent if the latency from the Agent to the target server is greater than the Maximum Latency or less than the Minimum Latency.

Trigger Tasks on Notification

If you need to execute tasks when service monitoring Notification are triggered, you can check "Enable Trigger Tasks" and select the pre-configured trigger tasks in "Task on Notification" and "Task on Recovery."

Network Latency Chart

The TCP-Ping and ICMP-Ping monitoring types set in the Services page will automatically enable the monitoring chart feature. On the "Network" page of the homepage, you can view historical network latency charts. The data in the charts is based on the latency from the Agent to the target server. You can click the Agent's name to toggle the chart display. In the chart, you can uncheck the target server's name to hide or show the corresponding data.

Managing Monitors

To manage existing service monitors, go to the "Services" page in the Admin Panel. Select a monitor configuration and click the icons on the right to edit or delete it.

+ \ No newline at end of file diff --git a/en_US/guide/settings.html b/en_US/guide/settings.html index 08125ad6..e75ba98a 100644 --- a/en_US/guide/settings.html +++ b/en_US/guide/settings.html @@ -6,13 +6,13 @@ Settings | Nezha Monitoring - + - + - - + + @@ -22,7 +22,7 @@ -
Skip to content

Settings

Site Title

You can customize the site title in this section.

Administrator List

  • If you have changed your Github, Gitlab, or Gitee username, you need to update it here to avoid login issues. Separate multiple usernames with commas: user1,user2.
  • To change the administrator account, go to /opt/nezha/dashboard/data/config.yaml and reset the new administrator Client ID and Client Secret.

Theme

Select the theme for the homepage and admin panel here. If a theme that already exists is not in the options, update the Dashboard.
Before enabling the Custom theme, ensure you have installed the custom theme; otherwise, the Dashboard will not display correctly after enabling this option.

Language

Nezha Monitoring currently supports the following languages:

  • Simplified Chinese (简体中文)
  • Traditional Chinese (繁體中文)
  • English
  • Spanish (Español)

We welcome corrections to translations or contributions of more languages.

Custom Code (style, script)

You can modify the LOGO, adjust colors, add beautification code, and add statistical code here.

WARNING

Custom code only affects the visitor homepage, not the admin panel. Due to differences in code between themes, if you need to modify the content in the admin panel, please modify the theme files in Docker.

Example of Changing Progress Bar Color, Background Image, Navigation Bar, etc., in the Default Theme

Click to expand/collapse
html
<style>
+    
Skip to content

Settings

Site Title

You can customize the site title in this section.

Administrator List

  • If you have changed your Github, Gitlab, or Gitee username, you need to update it here to avoid login issues. Separate multiple usernames with commas: user1,user2.
  • To change the administrator account, go to /opt/nezha/dashboard/data/config.yaml and reset the new administrator Client ID and Client Secret.

Theme

Select the theme for the homepage and admin panel here. If a theme that already exists is not in the options, update the Dashboard.
Before enabling the Custom theme, ensure you have installed the custom theme; otherwise, the Dashboard will not display correctly after enabling this option.

Language

Nezha Monitoring currently supports the following languages:

  • Simplified Chinese (简体中文)
  • Traditional Chinese (繁體中文)
  • English
  • Spanish (Español)

We welcome corrections to translations or contributions of more languages.

Custom Code (style, script)

You can modify the LOGO, adjust colors, add beautification code, and add statistical code here.

WARNING

Custom code only affects the visitor homepage, not the admin panel. Due to differences in code between themes, if you need to modify the content in the admin panel, please modify the theme files in Docker.

Example of Changing Progress Bar Color, Background Image, Navigation Bar, etc., in the Default Theme

Click to expand/collapse
html
<style>
 /* Screen adaptation */
 @media only screen and (min-width: 1200px) {
     .ui.container {
@@ -332,8 +332,8 @@
 .hotaru-cover {
    background: url(https://s3.ax1x.com/2020/12/08/DzHv6A.jpg) center;
 }
-</style>

View Password

If you don't want to display your Dashboard directly to visitors, you can set a view password here. After setting the password, visitors need to enter the password to access the homepage.

Non-CDN Dashboard Server Domain/IP

This setting is a prerequisite for using the one-click script to install the Agent. For details, please see here.

IP Change Notifications

If you want to receive notifications when a server's IP changes, you can set it up here.

Coverage

Select a rule to determine which servers to monitor. Choose according to your needs.

Specific Servers

Set exclusions for the selected rule in conjunction with the coverage scope.

Send Notifications to a Specific Notification Group

Choose a notification method, which should be set up in advance on the "Notification" page.

WARNING

Notifications take effect after enabling this setting.

Show Full IP Address in Notifications

IP change notifications hide the full IP by default. If you don't want to hide it, check "Show Full IP Address in Notification."

Disable Homepage Theme Switching

By default, the Dashboard allows visitors to change the theme. This feature only affects individual visitors and does not affect the theme set by the administrator in the admin panel. If you don't want visitors to switch themes, check this option.

- +</style>

View Password

If you don't want to display your Dashboard directly to visitors, you can set a view password here. After setting the password, visitors need to enter the password to access the homepage.

Non-CDN Dashboard Server Domain/IP

This setting is a prerequisite for using the one-click script to install the Agent. For details, please see here.

IP Change Notifications

If you want to receive notifications when a server's IP changes, you can set it up here.

Coverage

Select a rule to determine which servers to monitor. Choose according to your needs.

Specific Servers

Set exclusions for the selected rule in conjunction with the coverage scope.

Send Notifications to a Specific Notification Group

Choose a notification method, which should be set up in advance on the "Notification" page.

WARNING

Notifications take effect after enabling this setting.

Show Full IP Address in Notifications

IP change notifications hide the full IP by default. If you don't want to hide it, check "Show Full IP Address in Notification."

Disable Homepage Theme Switching

By default, the Dashboard allows visitors to change the theme. This feature only affects individual visitors and does not affect the theme set by the administrator in the admin panel. If you don't want visitors to switch themes, check this option.

+ \ No newline at end of file diff --git a/en_US/guide/tasks.html b/en_US/guide/tasks.html index a793c23c..335ecbb7 100644 --- a/en_US/guide/tasks.html +++ b/en_US/guide/tasks.html @@ -6,13 +6,13 @@ Task Management | Nezha Monitoring - + - + - - + + @@ -22,8 +22,8 @@ -
Skip to content

Task Management

In the Tasks section, you can set up scheduled tasks, trigger tasks, and batch execute tasks on multiple servers.

Nezha Monitoring supports pushing commands to Agents for execution. This feature is highly flexible and can be used for regular backups using tools like restic or rclone, periodically restarting a service to reset network connections, or executing a task when an notification is triggered, such as running a script when CPU usage is high for an extended period.

How to Use

Go to the "Tasks" page in the admin panel and click "Add Scheduled Task." When adding a scheduled task, you need to fill in the following parameters:

  • Name: Customize a task name.

  • Task Type: Choose the type of task.

    • Scheduled Task: Executes periodically according to the schedule set below.
    • Trigger Task: Only executed when triggered by an API call or notification rule, runs once per trigger.
  • Schedule: Set the schedule time (not enable when using trigger task type). The time format is * * * * * *, corresponding to second minute hour day month weekday. For more details, see Cron Expression Format.
    For example: 0 0 3 * * * means "3 AM every day."

  • Command: Set the command to execute, similar to writing Shell/Bat scripts, but it's recommended not to use new lines; connect multiple commands with && or &.
    For example, to schedule a reboot, you can enter reboot here.

  • Coverage and Specific Servers: Select rules to determine which Agents execute the scheduled task, similar to the settings on the "Services" page. When using the trigger task type, you can choose "executed by the triggered server."

  • Notification Group: Choose the notification methods you have set up on the "Notifications" page. Click here for more details.

  • Send Success Notification: Check this option to trigger a notification upon successful task execution.

Managing Tasks

To manage existing scheduled tasks, go to the "Tasks" page in the admin panel. For each task configuration, the three icons on the right are:

  • Execute Immediately: Click to ignore the scheduled time and execute the task immediately.
  • Edit: Click to modify the task configuration.
  • Delete: Delete the scheduled task.

Frequently Asked Questions

  1. Command not found error
    If a command fails to run with a "command not found" error, it may be a PATH environment variable issue. On Linux servers, you can add source ~/.bashrc at the beginning of the command or use the absolute path to execute the command.
- +
Skip to content

Task Management

In the Tasks section, you can set up scheduled tasks, trigger tasks, and batch execute tasks on multiple servers.

Nezha Monitoring supports pushing commands to Agents for execution. This feature is highly flexible and can be used for regular backups using tools like restic or rclone, periodically restarting a service to reset network connections, or executing a task when an notification is triggered, such as running a script when CPU usage is high for an extended period.

How to Use

Go to the "Tasks" page in the admin panel and click "Add Scheduled Task." When adding a scheduled task, you need to fill in the following parameters:

  • Name: Customize a task name.

  • Task Type: Choose the type of task.

    • Scheduled Task: Executes periodically according to the schedule set below.
    • Trigger Task: Only executed when triggered by an API call or notification rule, runs once per trigger.
  • Schedule: Set the schedule time (not enable when using trigger task type). The time format is * * * * * *, corresponding to second minute hour day month weekday. For more details, see Cron Expression Format.
    For example: 0 0 3 * * * means "3 AM every day."

  • Command: Set the command to execute, similar to writing Shell/Bat scripts, but it's recommended not to use new lines; connect multiple commands with && or &.
    For example, to schedule a reboot, you can enter reboot here.

  • Coverage and Specific Servers: Select rules to determine which Agents execute the scheduled task, similar to the settings on the "Services" page. When using the trigger task type, you can choose "executed by the triggered server."

  • Notification Group: Choose the notification methods you have set up on the "Notifications" page. Click here for more details.

  • Send Success Notification: Check this option to trigger a notification upon successful task execution.

Managing Tasks

To manage existing scheduled tasks, go to the "Tasks" page in the admin panel. For each task configuration, the three icons on the right are:

  • Execute Immediately: Click to ignore the scheduled time and execute the task immediately.
  • Edit: Click to modify the task configuration.
  • Delete: Delete the scheduled task.

Frequently Asked Questions

  1. Command not found error
    If a command fails to run with a "command not found" error, it may be a PATH environment variable issue. On Linux servers, you can add source ~/.bashrc at the beginning of the command or use the absolute path to execute the command.
+ \ No newline at end of file diff --git a/en_US/index.html b/en_US/index.html index b39de06e..e3c54f3d 100644 --- a/en_US/index.html +++ b/en_US/index.html @@ -6,13 +6,13 @@ Nezha Monitoring | User Manual - + - + - - + + @@ -22,8 +22,8 @@ -
Skip to content

Nezha Monitoring

Open-source, lightweight, and easy-to-use server monitoring and operation tool

- +
Skip to content

Nezha Monitoring

Open-source, lightweight, and easy-to-use server monitoring and operation tool

+ \ No newline at end of file diff --git a/guide/agent.html b/guide/agent.html index a6636e3a..662f8e88 100644 --- a/guide/agent.html +++ b/guide/agent.html @@ -6,13 +6,13 @@ 安装 Agent | 哪吒监控 - + - + - - + + @@ -22,7 +22,7 @@ -
Skip to content

安装 Agent

哪吒监控的被控端服务被称为 Agent,本文档将介绍如何在被控端服务器上安装 Agent,并与 Dashboard 连接。

TIP

Agent 二进制文件仓库地址为:https://github.com/nezhahq/agent/releases

一键安装 Agent

哪吒监控支持在 Windows 和 Linux 上一键安装 Agent。遵循本文档的步骤,你可以很轻松地在服务器上部署它。

准备工作

你需要提前在管理面板中设置好通信域名,此域名不可以接入 CDN。本文档以示例通信域名 “data.example.com” 为例。
进入后台管理面板,转到“设置”页,在“未接入 CDN 的面板服务器域名/IP”项中填入通信域名,然后点击"保存"。

在 Linux 中一键安装 (Ubuntu、Debian、CentOS)

  1. 首先在管理面板中添加一台服务器。
  2. 点击新添加的服务器旁的绿色 Linux 图标按钮,复制一键安装命令。
  3. 在被控端服务器中运行复制的一键安装命令,等待安装完成后返回到 Dashboard 主页查看服务器是否上线。

在 Windows 中一键安装

  1. 首先在管理面板中添加一台服务器。
  2. 点击新添加的服务器旁的绿色 Windows 图标按钮,复制一键安装命令。
  3. 进入 Windows 服务器,运行 PowerShell,在 PowerShell 中运行复制的安装命令。
  4. 如遇到确认「执行策略变更」请选择 Y。
  5. 等待安装完成后返回 Dashboard 主页查看服务器是否上线。

WARNING

如果在 PowerShell 中运行一键安装命令时遇到错误,请尝试下方的在 Windows 中手动安装 Agent

其他方式安装 Agent

在 Linux 中安装 Agent (Ubuntu、Debian、CentOS)

点击展开/收起
  1. 首先在管理面板中添加一台服务器。
  2. 在被控服务器中,运行脚本(位于中国大陆的服务器请使用镜像):
bash
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

如果你的被控服务器位于中国大陆,可以使用镜像:

bash
curl -L https://gitee.com/naibahq/nezha/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh
  1. 选择“安装监控 Agent”。
  2. 输入通信域名,如:”data.example.com“。
  3. 输入面板通信端口(gRPC 端口),默认为 5555。
  4. 输入 Agent 密钥,Agent 密钥在管理面板中添加服务器时生成,可以在管理面板中的“服务器”页中找到。
  5. 等待安装完成后返回 Dashboard 主页查看服务器是否上线。

在其他 Linux 发行版(如 Alpine 使用 Openrc)中安装 Agent

点击展开/收起

本节内容由 unknown0054 贡献。

  1. 修改 SERVER、SECRET、TLS,然后在 shell 中执行:
shell
cat >/etc/init.d/nezha-agent<< EOF
+    
Skip to content

安装 Agent

哪吒监控的被控端服务被称为 Agent,本文档将介绍如何在被控端服务器上安装 Agent,并与 Dashboard 连接。

TIP

Agent 二进制文件仓库地址为:https://github.com/nezhahq/agent/releases

一键安装 Agent

哪吒监控支持在 Windows 和 Linux 上一键安装 Agent。遵循本文档的步骤,你可以很轻松地在服务器上部署它。

准备工作

你需要提前在管理面板中设置好通信域名,此域名不可以接入 CDN。本文档以示例通信域名 “data.example.com” 为例。
进入后台管理面板,转到“设置”页,在“未接入 CDN 的面板服务器域名/IP”项中填入通信域名,然后点击"保存"。

在 Linux 中一键安装 (Ubuntu、Debian、CentOS)

  1. 首先在管理面板中添加一台服务器。
  2. 点击新添加的服务器旁的绿色 Linux 图标按钮,复制一键安装命令。
  3. 在被控端服务器中运行复制的一键安装命令,等待安装完成后返回到 Dashboard 主页查看服务器是否上线。

在 Windows 中一键安装

  1. 首先在管理面板中添加一台服务器。
  2. 点击新添加的服务器旁的绿色 Windows 图标按钮,复制一键安装命令。
  3. 进入 Windows 服务器,运行 PowerShell,在 PowerShell 中运行复制的安装命令。
  4. 如遇到确认「执行策略变更」请选择 Y。
  5. 等待安装完成后返回 Dashboard 主页查看服务器是否上线。

WARNING

如果在 PowerShell 中运行一键安装命令时遇到错误,请尝试下方的在 Windows 中手动安装 Agent

其他方式安装 Agent

在 Linux 中安装 Agent (Ubuntu、Debian、CentOS)

点击展开/收起
  1. 首先在管理面板中添加一台服务器。
  2. 在被控服务器中,运行脚本(位于中国大陆的服务器请使用镜像):
bash
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

如果你的被控服务器位于中国大陆,可以使用镜像:

bash
curl -L https://gitee.com/naibahq/nezha/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh
  1. 选择“安装监控 Agent”。
  2. 输入通信域名,如:”data.example.com“。
  3. 输入面板通信端口(gRPC 端口),默认为 5555。
  4. 输入 Agent 密钥,Agent 密钥在管理面板中添加服务器时生成,可以在管理面板中的“服务器”页中找到。
  5. 等待安装完成后返回 Dashboard 主页查看服务器是否上线。

在其他 Linux 发行版(如 Alpine 使用 Openrc)中安装 Agent

点击展开/收起

本节内容由 unknown0054 贡献。

  1. 修改 SERVER、SECRET、TLS,然后在 shell 中执行:
shell
cat >/etc/init.d/nezha-agent<< EOF
 #!/sbin/openrc-run
 SERVER="" # Dashboard 地址 ip:port
 SECRET="" # SECRET
@@ -166,8 +166,8 @@
  stop
  sleep 2
  start
-}
  • 运行 chmod +x /etc/init.d/nezha-service 赋予执行权限。
  • 启动服务: /etc/init.d/nezha-service enable && /etc/init.d/nezha-service start

Agent 有 Docker 镜像吗?

Agent 目前没有推出 Docker 镜像。
Agent 的设计思路和 Dashboard 相反,Dashboard 要尽可能不影响宿主机工作,但 Agent 则需要在宿主机中执行监控服务和运行命令。
将 Agent 放入容器中确实可以继续执行监控任务,但 WebShell 等功能无法正常运行,因此不提供 Docker 镜像。

- +}

Agent 有 Docker 镜像吗?

Agent 目前没有推出 Docker 镜像。
Agent 的设计思路和 Dashboard 相反,Dashboard 要尽可能不影响宿主机工作,但 Agent 则需要在宿主机中执行监控服务和运行命令。
将 Agent 放入容器中确实可以继续执行监控任务,但 WebShell 等功能无法正常运行,因此不提供 Docker 镜像。

+ \ No newline at end of file diff --git a/guide/agentq.html b/guide/agentq.html index 004b8c25..fb3a81c1 100644 --- a/guide/agentq.html +++ b/guide/agentq.html @@ -6,13 +6,13 @@ Agent 常见问题 | 哪吒监控 - + - + - - + + @@ -22,8 +22,8 @@ -
Skip to content

Agent 常见问题

后台显示的 IP 和 Agent 实际 IP 不一致?

请查看 Dashboard 相关-为什么管理面板中显示的 IP 和 Agent 实际 IP 不一致?。在此不再赘述。

一键脚本安装时出错

curl: Failed to connect to raw.githubusercontent.com......

多出现在中国大陆的服务器中,目前一键脚本只从 Github 直接获取安装脚本,您可以多尝试几次,或者手动安装 Agent。另外,也可以自行寻找第三方 Github 加速服务或者镜像,并在一键安装脚本中设置。

sudo: command not found

请先手动安装 sudo,例如在 Ubuntu 中:

shell
apt install sudo
- +
Skip to content

Agent 常见问题

后台显示的 IP 和 Agent 实际 IP 不一致?

请查看 Dashboard 相关-为什么管理面板中显示的 IP 和 Agent 实际 IP 不一致?。在此不再赘述。

一键脚本安装时出错

curl: Failed to connect to raw.githubusercontent.com......

多出现在中国大陆的服务器中,目前一键脚本只从 Github 直接获取安装脚本,您可以多尝试几次,或者手动安装 Agent。另外,也可以自行寻找第三方 Github 加速服务或者镜像,并在一键安装脚本中设置。

sudo: command not found

请先手动安装 sudo,例如在 Ubuntu 中:

shell
apt install sudo
+ \ No newline at end of file diff --git a/guide/api.html b/guide/api.html index 5826122d..fca85ef5 100644 --- a/guide/api.html +++ b/guide/api.html @@ -6,13 +6,13 @@ API 接口 | 哪吒监控 - + - + - - + + @@ -22,7 +22,7 @@ -
Skip to content

API 接口

哪吒监控支持使用 API 接口查询面板中 Agent 的状态信息

创建 Token

哪吒面板的 API 接口允许使用 Token 认证与 Cookies 认证。要新建一个 Token,在进入管理面板后,点击右上角的头像,选择 “API Token”,进入 Token 管理页面。点击 “API Token”,自定义备注后,点击 “添加”。

如需删除一个 Token,请选择相应的 Token,点击右侧的删除图标。

WARNING

Token 是 API 接口的鉴权凭据,它对你的面板的信息安全非常重要,请不要泄漏你的 Token 给他人。

认证方式

确保在请求头中包含 Authorization: Token 进行身份认证。

Token 认证方式:

Request Headers:
+    
Skip to content

API 接口

哪吒监控支持使用 API 接口查询面板中 Agent 的状态信息

创建 Token

哪吒面板的 API 接口允许使用 Token 认证与 Cookies 认证。要新建一个 Token,在进入管理面板后,点击右上角的头像,选择 “API Token”,进入 Token 管理页面。点击 “API Token”,自定义备注后,点击 “添加”。

如需删除一个 Token,请选择相应的 Token,点击右侧的删除图标。

WARNING

Token 是 API 接口的鉴权凭据,它对你的面板的信息安全非常重要,请不要泄漏你的 Token 给他人。

认证方式

确保在请求头中包含 Authorization: Token 进行身份认证。

Token 认证方式:

Request Headers:
 Authorization: Token

使用说明

WARNING

下面示例中的负数时间戳为(0000-00-00),目前表示 Dashboard 上线后该 Agent 从未汇报过,但不建议用正负性判断状态。

TIP

请求方式为 GET,返回格式为 JSON

获取服务器列表

请求:

GET /api/v1/server/list?tag=

参数:

  • tag(可选):ServerTag 是服务器的分组,提供此参数则仅查询该分组中的服务器。

返回示例:

json
{
     "code": 0,
     "message": "success",
@@ -159,8 +159,8 @@
 print(f"Memory Used: {server['status']['MemUsed']} bytes")
 print(f"Disk Used: {server['status']['DiskUsed']} bytes")
 print(f"Network In Speed: {server['status']['NetInSpeed']} bytes/s")
-print(f"Network Out Speed: {server['status']['NetOutSpeed']} bytes/s")

通过以上示例代码,可以轻松获取和处理服务器的状态信息,从而实现自动化监控和管理。

- +print(f"Network Out Speed: {server['status']['NetOutSpeed']} bytes/s")

通过以上示例代码,可以轻松获取和处理服务器的状态信息,从而实现自动化监控和管理。

+ \ No newline at end of file diff --git a/guide/dashboard.html b/guide/dashboard.html index 285fc4ea..123db5c6 100644 --- a/guide/dashboard.html +++ b/guide/dashboard.html @@ -6,13 +6,13 @@ 安装 Dashboard | 哪吒监控 - + - + - - + + @@ -22,7 +22,7 @@ -
Skip to content

安装 Dashboard

准备工作

搭建一个哪吒监控,你需要:

  1. 一台可以连接公网的服务器,防火墙和安全策略需要放行 8008 和 5555 端口,否则会无法访问和无法接收数据。单核 512MB 内存的服务器配置就足以满足大多数使用场景。
  2. 一个已经设置好 A 记录,指向 Dashboard 服务器 IP 的域名。

TIP

如果你想使用 CDN,请准备两个域名,一个配置好 CDN 用作公开访问,CDN 需要支持 WebSocket 协议;另一个域名不要使用 CDN,用作 Agent 端与 Dashboard 的通信。

本文档分别以 "dashboard.example.com" 和 "data.example.com" 两个域名来演示。

  1. 一个 Github 账号(或:Gitlab、Gitee)。

本文档将以宝塔面板反代 Dashboard 的过程作为示范,随着未来版本的变化,部分功能的入口可能会发生改变,本文档仅供参考。

WARNING

本项目并不依赖宝塔,你可以选择使用你喜欢的任何服务器面板,或手动安装 Nginx 或 Caddy 来配置 SSL 和反代。
如果你认为没有必要使用 80、443 端口来访问 Dashboard,你甚至不需要安装 Nginx 就可以直接使用安装脚本安装并运行哪吒监控。

获取 Github 的 Client ID 和密钥

哪吒监控接入 Github、Gitlab、Gitee 作为后台管理员账号。

  1. 首先我们需要新建一个验证应用,以 Github 为例,登录 Github 后,打开 https://github.com/settings/developers,依次选择“OAuth Apps” - “New OAuth App”。
    Application name - 随意填写。
    Homepage URL - 填写面板的访问域名,如:"http://dashboard.example.com"(你的域名)。
    Authorization callback URL - 填写回调地址,如:"http://dashboard.example.com/oauth2/callback"(不要忘记/oauth2/callback)。
  2. 点击 “Register application”。
  3. 保存页面中的 Client ID,然后点击 “Generate a new client secret“,创建一个新的 Client Secret,新建的密钥仅会显示一次,请妥善保存

使用 Cloudflare Access 作为 OAuth2 提供方

位于中国大陆的用户可能无法直接连接 Github,如您在使用 Github、Gitlab、Gitee 作为管理员账户登录时遇到问题,可以优先考虑切换 使用 Cloudflare Access 作为 OAuth2 提供方 作为登录方式。

新建 SaaS-OIDC 应用流程

  1. 前往 Zero Trust Dashboard,使用 Cloudflare 账号登录。
  2. My Team -> Users -> <具体用户> -> 获取 User ID 并保存。
  3. Access -> Application -> Add an Application
  4. 选择 SaaS,在 Application 中输入自定义的应用名称(例如 nezha),选择 OIDC 后点击 Add application
  5. Scopes 选择 openid, email, profile, groups
  6. Redirect URLs 填写你的 callback 地址,例如 https://dashboard.example.com/oauth2/callback
  7. 保存 Client IDClient SecretIssuer 地址中协议与域名的部分,例如 https://xxxxx.cloudflareaccess.com

如使用此方式,安装 Dashboard 完成后,需要修改配置文件 /opt/nezha/dashboard/data/config.yaml,将 Endpoint 配置修改为之前保存的 Issuer 地址,例如 https://xxxxx.cloudflareaccess.com,保存后需重启 Dashboard。

在服务器中安装 Dashboard

在面板服务器中,运行安装脚本:

bash
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

如果你的面板服务器位于中国大陆,可以使用镜像:

bash
curl -L https://gitee.com/naibahq/nezha/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh

等待 Docker 安装完毕后,分别输入以下值:

  • OAuth提供商 - github、cloudflare、gitlab、gitee 中选择一个。
  • Client ID - 之前保存的 Client ID。
  • Client Secret - 之前保存的 Client Secret。
  • 用户名 - OAuth 提供商中的用户名/User ID。
  • 站点标题 - 自定义站点标题。
  • 访问端口 - 公开访问端口,可自定义,默认 8008。
  • Agent的通信端口 - Agent 与 Dashboard 的通信端口,默认 5555。

输入完成后,等待拉取镜像。
安装结束后,如果一切正常,此时你可以访问域名+端口号,如 “http://dashboard.example.com:8008” 来查看面板。

将来如果需要再次运行脚本,可以运行:

bash
./nezha.sh

来打开管理脚本。

配置反向代理

在宝塔面板中新建一个站点,域名填写公开访问域名,如 “http://dashboard.example.com“ ,然后点击“设置”进入站点设置选项,选择“反向代理” - “新建反向代理”。

自定义一个代理名称,在下方“目标 URL”中填入 http://127.0.0.1 然后点击“保存”。

打开刚刚新建的反向代理右边的“配置文件”,将配置文件替换为以下内容:

nginx
#PROXY-START/
+    
Skip to content

安装 Dashboard

准备工作

搭建一个哪吒监控,你需要:

  1. 一台可以连接公网的服务器,防火墙和安全策略需要放行 8008 和 5555 端口,否则会无法访问和无法接收数据。单核 512MB 内存的服务器配置就足以满足大多数使用场景。
  2. 一个已经设置好 A 记录,指向 Dashboard 服务器 IP 的域名。

TIP

如果你想使用 CDN,请准备两个域名,一个配置好 CDN 用作公开访问,CDN 需要支持 WebSocket 协议;另一个域名不要使用 CDN,用作 Agent 端与 Dashboard 的通信。

本文档分别以 "dashboard.example.com" 和 "data.example.com" 两个域名来演示。

  1. 一个 Github 账号(或:Gitlab、Gitee)。

本文档将以宝塔面板反代 Dashboard 的过程作为示范,随着未来版本的变化,部分功能的入口可能会发生改变,本文档仅供参考。

WARNING

本项目并不依赖宝塔,你可以选择使用你喜欢的任何服务器面板,或手动安装 Nginx 或 Caddy 来配置 SSL 和反代。
如果你认为没有必要使用 80、443 端口来访问 Dashboard,你甚至不需要安装 Nginx 就可以直接使用安装脚本安装并运行哪吒监控。

获取 Github 的 Client ID 和密钥

哪吒监控接入 Github、Gitlab、Gitee 作为后台管理员账号。

  1. 首先我们需要新建一个验证应用,以 Github 为例,登录 Github 后,打开 https://github.com/settings/developers,依次选择“OAuth Apps” - “New OAuth App”。
    Application name - 随意填写。
    Homepage URL - 填写面板的访问域名,如:"http://dashboard.example.com"(你的域名)。
    Authorization callback URL - 填写回调地址,如:"http://dashboard.example.com/oauth2/callback"(不要忘记/oauth2/callback)。
  2. 点击 “Register application”。
  3. 保存页面中的 Client ID,然后点击 “Generate a new client secret“,创建一个新的 Client Secret,新建的密钥仅会显示一次,请妥善保存

使用 Cloudflare Access 作为 OAuth2 提供方

位于中国大陆的用户可能无法直接连接 Github,如您在使用 Github、Gitlab、Gitee 作为管理员账户登录时遇到问题,可以优先考虑切换 使用 Cloudflare Access 作为 OAuth2 提供方 作为登录方式。

新建 SaaS-OIDC 应用流程

  1. 前往 Zero Trust Dashboard,使用 Cloudflare 账号登录。
  2. My Team -> Users -> <具体用户> -> 获取 User ID 并保存。
  3. Access -> Application -> Add an Application
  4. 选择 SaaS,在 Application 中输入自定义的应用名称(例如 nezha),选择 OIDC 后点击 Add application
  5. Scopes 选择 openid, email, profile, groups
  6. Redirect URLs 填写你的 callback 地址,例如 https://dashboard.example.com/oauth2/callback
  7. 保存 Client IDClient SecretIssuer 地址中协议与域名的部分,例如 https://xxxxx.cloudflareaccess.com

如使用此方式,安装 Dashboard 完成后,需要修改配置文件 /opt/nezha/dashboard/data/config.yaml,将 Endpoint 配置修改为之前保存的 Issuer 地址,例如 https://xxxxx.cloudflareaccess.com,保存后需重启 Dashboard。

在服务器中安装 Dashboard

在面板服务器中,运行安装脚本:

bash
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

如果你的面板服务器位于中国大陆,可以使用镜像:

bash
curl -L https://gitee.com/naibahq/nezha/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh

等待 Docker 安装完毕后,分别输入以下值:

  • OAuth提供商 - github、cloudflare、gitlab、gitee 中选择一个。
  • Client ID - 之前保存的 Client ID。
  • Client Secret - 之前保存的 Client Secret。
  • 用户名 - OAuth 提供商中的用户名/User ID。
  • 站点标题 - 自定义站点标题。
  • 访问端口 - 公开访问端口,可自定义,默认 8008。
  • Agent的通信端口 - Agent 与 Dashboard 的通信端口,默认 5555。

输入完成后,等待拉取镜像。
安装结束后,如果一切正常,此时你可以访问域名+端口号,如 “http://dashboard.example.com:8008” 来查看面板。

将来如果需要再次运行脚本,可以运行:

bash
./nezha.sh

来打开管理脚本。

配置反向代理

在宝塔面板中新建一个站点,域名填写公开访问域名,如 “http://dashboard.example.com“ ,然后点击“设置”进入站点设置选项,选择“反向代理” - “新建反向代理”。

自定义一个代理名称,在下方“目标 URL”中填入 http://127.0.0.1 然后点击“保存”。

打开刚刚新建的反向代理右边的“配置文件”,将配置文件替换为以下内容:

nginx
#PROXY-START/
 location / {
     proxy_pass http://127.0.0.1:8008;
     proxy_set_header Host $http_host;
@@ -42,8 +42,8 @@
 proxy /terminal/* http://ip:8008 {
     websocket
     header_upstream -Origin
-}

在宝塔面板中配置 SSL

首先,先暂时关闭反向代理。
正如在其他网站中配置 SSL 证书一样,进入站点设置中的 “SSL”,你可以选择自动申请 Let´s Encrypt 证书或手动配置已有的证书。
完成 SSL 的设置后,你需要回到 https://github.com/settings/developers ,编辑之前创建的验证应用程序,将之前我们填入的 "Homepage URL" 和 "Authorization callback URL" 中的域名全部从 http 改为 https,如:"https://dashboard.example.com" 和 "https://dashboard.example.com/oauth2/callback" ,不更改此项可能会导致你无法登录面板后台

更新 Dashboard

运行脚本 ./nezha.sh ,选择重启面板并更新。

- +}

在宝塔面板中配置 SSL

首先,先暂时关闭反向代理。
正如在其他网站中配置 SSL 证书一样,进入站点设置中的 “SSL”,你可以选择自动申请 Let´s Encrypt 证书或手动配置已有的证书。
完成 SSL 的设置后,你需要回到 https://github.com/settings/developers ,编辑之前创建的验证应用程序,将之前我们填入的 "Homepage URL" 和 "Authorization callback URL" 中的域名全部从 http 改为 https,如:"https://dashboard.example.com" 和 "https://dashboard.example.com/oauth2/callback" ,不更改此项可能会导致你无法登录面板后台

更新 Dashboard

运行脚本 ./nezha.sh ,选择重启面板并更新。

+ \ No newline at end of file diff --git a/guide/dashboardq.html b/guide/dashboardq.html index fa3e57a9..618488b1 100644 --- a/guide/dashboardq.html +++ b/guide/dashboardq.html @@ -6,13 +6,13 @@ Dashboard 常见问题 | 哪吒监控 - + - + - - + + @@ -22,7 +22,7 @@ -
Skip to content

Dashboard 常见问题

为什么管理面板中显示的 IP 和 Agent 实际 IP 不一致?

首先解释管理面板中显示的IP是怎么得到的:Agent 会每隔一段时间请求一遍 IP-API,获取到 IP 信息后上报到 Dashboard,目前使用的 IP-API 可在此查看:myip.go
如您发现管理面板中显示的 IP 和服务商提供给您的 IP 不一致,最大的可能是服务商给您的是入口 IP,但 Agent 测试的是您的出口 IP。这个问题也可能会出现在多线服务器和 IPLC 专线中。

TIP

举个简单也十分常见的例子,服务商给您提供的是一台高防服务器,为了同时满足高防和低网络中断率的目标,提供给您的 IP 可能是经过映射后的高防 IP 而并非您服务器的真实出口 IP。

您也可以在 Agent 服务器中运行以下命令测试出口 IP:

shell
curl https://ipapi.co/ip/
+    
Skip to content

Dashboard 常见问题

为什么管理面板中显示的 IP 和 Agent 实际 IP 不一致?

首先解释管理面板中显示的IP是怎么得到的:Agent 会每隔一段时间请求一遍 IP-API,获取到 IP 信息后上报到 Dashboard,目前使用的 IP-API 可在此查看:myip.go
如您发现管理面板中显示的 IP 和服务商提供给您的 IP 不一致,最大的可能是服务商给您的是入口 IP,但 Agent 测试的是您的出口 IP。这个问题也可能会出现在多线服务器和 IPLC 专线中。

TIP

举个简单也十分常见的例子,服务商给您提供的是一台高防服务器,为了同时满足高防和低网络中断率的目标,提供给您的 IP 可能是经过映射后的高防 IP 而并非您服务器的真实出口 IP。

您也可以在 Agent 服务器中运行以下命令测试出口 IP:

shell
curl https://ipapi.co/ip/
 curl ip.sb
 curl ip-api.com

忘记查看密码\删除查看密码

请查看或编辑 /opt/nezha/dashboard/data/config.yaml 文件。
密码位于 site-viewpassword 项中。

面板安装/重启/更新失败: iptables ......

首先尝试重启 Docker 再操作:

shell
systemctl status docker
 systemctl restart docker
@@ -31,8 +31,8 @@
         expires      12h;
         error_log /dev/null;
         access_log /dev/null;
-    }
  • 保存配置,并清空浏览器、Nginx、CDN 中的缓存,此时刷新页面应恢复正常。

  • 面板无法启动:panic: 无法找到配置的 DDNS 提供者...

    填入的 DDNS provider 的值有误,目前仅支持 webhookcloudflaretencentclouddummy

    面板更新 DDNS 崩溃:panic: interface conversion: interface {} is nil, not []interface {}

    填入的 DDNS AccessIDAccessSecret 有误。

    打开网络监控页显示:server monitor history not found

    出现此错误说明没有在服务页中设置 TCP-Ping 和 ICMP-Ping 类型的监控或者监控数据还未生成。
    如已经设置完毕,可以等待一段时间后再查看。

    启用 HTTPS 后 /terminal 或 /ws 不能正常连接

    常常是由于证书不完整造成的,请在 agent 运行参数中添加 -d,若 log 中有 x509:certificate signed by unknown authority,更换完整证书则可解决该问题。

    对面板提供的数据修改/增加功能不满意,想要修改/增加数据

    常见于批量新建 Agent 等需求中,可以直接修改数据库。
    请注意,数据库中并非什么都可以修改,错误的修改会导致数据混乱无法启动 Dashboard,请勿随意修改数据库!

    DANGER

    再重复一遍,请勿随意修改数据库!

    如需要在数据库中修改数据,请先停止面板容器再修改。
    数据库类型是 sqlite3,位于 /opt/nezha/dashboard/data/sqlite.db,修改前请备份。

    Dashboard 会自动更新吗?

    Agent 通常情况下会自动更新,但 Dashboard 并不会,需要手动更新。

    - + }
  • 保存配置,并清空浏览器、Nginx、CDN 中的缓存,此时刷新页面应恢复正常。

  • 面板无法启动:panic: 无法找到配置的 DDNS 提供者...

    填入的 DDNS provider 的值有误,目前仅支持 webhookcloudflaretencentclouddummy

    面板更新 DDNS 崩溃:panic: interface conversion: interface {} is nil, not []interface {}

    填入的 DDNS AccessIDAccessSecret 有误。

    打开网络监控页显示:server monitor history not found

    出现此错误说明没有在服务页中设置 TCP-Ping 和 ICMP-Ping 类型的监控或者监控数据还未生成。
    如已经设置完毕,可以等待一段时间后再查看。

    启用 HTTPS 后 /terminal 或 /ws 不能正常连接

    常常是由于证书不完整造成的,请在 agent 运行参数中添加 -d,若 log 中有 x509:certificate signed by unknown authority,更换完整证书则可解决该问题。

    对面板提供的数据修改/增加功能不满意,想要修改/增加数据

    常见于批量新建 Agent 等需求中,可以直接修改数据库。
    请注意,数据库中并非什么都可以修改,错误的修改会导致数据混乱无法启动 Dashboard,请勿随意修改数据库!

    DANGER

    再重复一遍,请勿随意修改数据库!

    如需要在数据库中修改数据,请先停止面板容器再修改。
    数据库类型是 sqlite3,位于 /opt/nezha/dashboard/data/sqlite.db,修改前请备份。

    Dashboard 会自动更新吗?

    Agent 通常情况下会自动更新,但 Dashboard 并不会,需要手动更新。

    + \ No newline at end of file diff --git a/guide/loginq.html b/guide/loginq.html index bd92d069..f993a832 100644 --- a/guide/loginq.html +++ b/guide/loginq.html @@ -6,13 +6,13 @@ 登录常见问题 | 哪吒监控 - + - + - - + + @@ -22,8 +22,8 @@ -
    Skip to content

    登录常见问题

    登录回调后页面卡住\拒绝连接\响应时间过长

    还有其他一些表现形式,总之登录后浏览器无法正常显示。

    1. 您的服务器无法连接到 Github/Gitee,最常见于国内服务器配置 Github 情况下,可以考虑多尝试几次或者切换到 Cloudflare Access。
    2. 您配置错了回调地址,确保您的回调地址正确且端口与协议均正确!
    3. Dashboard 发生未知错误,您可以使用脚本查看日志。

    TIP

    什么是协议? 在浏览器中,您的域名以 :// 结尾的字符串即为协议,通常为 httphttps 两种。由于正常部署情况下面板可能有多种协议+域名+端口组合均可访问,请务必选一个最合适的作为回调。

    如何检查我的回调地址是否错误?

    请确保登录前浏览器显示的协议+域名+端口和登录后跳转到的协议+域名+端口一致。
    请确保您的路径为 /oauth2/callback全部小写

    登录后面板报错

    1. 清理 cookies 后重新登录,或换个浏览器。
    2. 检查回调地址,确保您的回调地址正确且端口与协议均正确!发起请求的地址需要和回调地址处于同域,端口、协议和域名(或IP)都需要一致。

    lookup xxx

    容器 DNS 解析失败,多数情况下为修改了 iptables 相关配置。
    建议先重启 docker,sudo systemctl restart docker,再使用脚本重启面板。
    仍然出现 lookup 错误建议查看是否有其他控制 iptables 的工具,如宝塔防火墙等。
    这个问题也可能与内核有关系,请尝试更换官方内核。

    授权方式无效,或者登录回调地址无效、过期或已被撤销

    只出现在 Gitee 登录方式中,原因不明,建议更换到 GitHub。

    oauth2: server response missing access_token

    可能由多种因素引起,最大可能性是网络问题,建议检查网络后重试。
    无法解决的话建议更换 Github 等。

    该用户不是本站点管理员,无法登录

    您登陆错了账号或者配置错了用户名,注意用户名不是邮箱,可使用脚本修改。
    Cloudflare Access 用户请注意,您的用户名不是邮箱,而是 User ID。

    dial tcp xxx:443 i/o timeout

    网络问题,可先重启 Docker,sudo systemctl restart docker,再使用脚本重启面板。
    如为国内服务器配置 Github 登陆方式,则建议切换到 Cloudflare Access 以避免网络干扰。

    net/http: TLS handshake timeout

    同上。

    - +
    Skip to content

    登录常见问题

    登录回调后页面卡住\拒绝连接\响应时间过长

    还有其他一些表现形式,总之登录后浏览器无法正常显示。

    1. 您的服务器无法连接到 Github/Gitee,最常见于国内服务器配置 Github 情况下,可以考虑多尝试几次或者切换到 Cloudflare Access。
    2. 您配置错了回调地址,确保您的回调地址正确且端口与协议均正确!
    3. Dashboard 发生未知错误,您可以使用脚本查看日志。

    TIP

    什么是协议? 在浏览器中,您的域名以 :// 结尾的字符串即为协议,通常为 httphttps 两种。由于正常部署情况下面板可能有多种协议+域名+端口组合均可访问,请务必选一个最合适的作为回调。

    如何检查我的回调地址是否错误?

    请确保登录前浏览器显示的协议+域名+端口和登录后跳转到的协议+域名+端口一致。
    请确保您的路径为 /oauth2/callback全部小写

    登录后面板报错

    1. 清理 cookies 后重新登录,或换个浏览器。
    2. 检查回调地址,确保您的回调地址正确且端口与协议均正确!发起请求的地址需要和回调地址处于同域,端口、协议和域名(或IP)都需要一致。

    lookup xxx

    容器 DNS 解析失败,多数情况下为修改了 iptables 相关配置。
    建议先重启 docker,sudo systemctl restart docker,再使用脚本重启面板。
    仍然出现 lookup 错误建议查看是否有其他控制 iptables 的工具,如宝塔防火墙等。
    这个问题也可能与内核有关系,请尝试更换官方内核。

    授权方式无效,或者登录回调地址无效、过期或已被撤销

    只出现在 Gitee 登录方式中,原因不明,建议更换到 GitHub。

    oauth2: server response missing access_token

    可能由多种因素引起,最大可能性是网络问题,建议检查网络后重试。
    无法解决的话建议更换 Github 等。

    该用户不是本站点管理员,无法登录

    您登陆错了账号或者配置错了用户名,注意用户名不是邮箱,可使用脚本修改。
    Cloudflare Access 用户请注意,您的用户名不是邮箱,而是 User ID。

    dial tcp xxx:443 i/o timeout

    网络问题,可先重启 Docker,sudo systemctl restart docker,再使用脚本重启面板。
    如为国内服务器配置 Github 登陆方式,则建议切换到 Cloudflare Access 以避免网络干扰。

    net/http: TLS handshake timeout

    同上。

    + \ No newline at end of file diff --git a/guide/notifications.html b/guide/notifications.html index f7443347..fe8f4948 100644 --- a/guide/notifications.html +++ b/guide/notifications.html @@ -6,13 +6,13 @@ 通知设置 | 哪吒监控 - + - + - - + + @@ -22,7 +22,7 @@ -
    Skip to content

    通知设置

    哪吒监控支持对服务器的负载、CPU、内存、硬盘、流量、月流量、进程数、连接数进行监控,并在达到用户设定的阈值时发送告警通知。

    灵活的通知方式

    • 在面板消息中,占位符 #DATETIME# 代表事件发生的时间戳。当通知被触发时,面板会自动将 #DATETIME# 替换为事件的实际时间。
    • #NEZHA# 是面板消息占位符,面板触发通知时会自动用实际消息替换占位符。
    • Body 内容是 JSON 格式的:当请求类型为 FORM 时,值为 key:value 的形式,value 里面可放置占位符,通知时会自动替换。当请求类型为 JSON 时 只会简单进行字符串替换后直接提交到 URL
    • URL 里面也可放置占位符,请求时会进行简单的字符串替换。

    请参考以下的通知方式示例,也可以根据自己的需求灵活设置推送方式。

    Bark 示例

    点击展开/收起
    • 名称:Bark

    • URL 组成: /:key/:body or /:key/:title/:body or /:key/:category/:title/:body

    • 请求方式: GET

    • 请求类型: 默认

    • Body: 空

    • 名称:Bark

    • URL 组成: /push

    • 请求方式: POST

    • 请求类型: form

    • Body: {"title": "#SERVER.NAME#","device_key":"xxxxxxxxx","body":"#NEZHA#","icon":"https://xxxxxxxx/nz.png"}

    Slack 示例 贡献者:@白歌

    点击展开/收起

    URL 参数获取说明

    请提前准备好 Slack 的 Workspace 并为这个 Workspace 创建一个 App。如果你还没有创建,可以在 Slack API 创建一个 App。

    创建完成 App 后,需要为这个 App 添加一个 Incoming Webhook。在 App 的设置页面中找到 Incoming Webhooks,将 Activate Incoming Webhooks 勾选为 ON,在页面下方找到并点击 Add New Webhook to Workspace,选择一个 Channel,然后点击允许。完成创建后,你会得到一个 Webhook URL,使用这个 URL 替换下方的示例 URL。

    Server 酱示例

    点击展开/收起

    Server 酱进阶

    • 名称:Server 酱

    • URL:https://sc.ftqq.com/SCUrandomkeys.send

    • 请求方式: POST

    • 请求类型: FORM

    • Body:

      json
      {
      +    
      Skip to content

      通知设置

      哪吒监控支持对服务器的负载、CPU、内存、硬盘、流量、月流量、进程数、连接数进行监控,并在达到用户设定的阈值时发送告警通知。

      灵活的通知方式

      • 在面板消息中,占位符 #DATETIME# 代表事件发生的时间戳。当通知被触发时,面板会自动将 #DATETIME# 替换为事件的实际时间。
      • #NEZHA# 是面板消息占位符,面板触发通知时会自动用实际消息替换占位符。
      • Body 内容是 JSON 格式的:当请求类型为 FORM 时,值为 key:value 的形式,value 里面可放置占位符,通知时会自动替换。当请求类型为 JSON 时 只会简单进行字符串替换后直接提交到 URL
      • URL 里面也可放置占位符,请求时会进行简单的字符串替换。

      请参考以下的通知方式示例,也可以根据自己的需求灵活设置推送方式。

      Bark 示例

      点击展开/收起
      • 名称:Bark

      • URL 组成: /:key/:body or /:key/:title/:body or /:key/:category/:title/:body

      • 请求方式: GET

      • 请求类型: 默认

      • Body: 空

      • 名称:Bark

      • URL 组成: /push

      • 请求方式: POST

      • 请求类型: form

      • Body: {"title": "#SERVER.NAME#","device_key":"xxxxxxxxx","body":"#NEZHA#","icon":"https://xxxxxxxx/nz.png"}

      Slack 示例 贡献者:@白歌

      点击展开/收起

      URL 参数获取说明

      请提前准备好 Slack 的 Workspace 并为这个 Workspace 创建一个 App。如果你还没有创建,可以在 Slack API 创建一个 App。

      创建完成 App 后,需要为这个 App 添加一个 Incoming Webhook。在 App 的设置页面中找到 Incoming Webhooks,将 Activate Incoming Webhooks 勾选为 ON,在页面下方找到并点击 Add New Webhook to Workspace,选择一个 Channel,然后点击允许。完成创建后,你会得到一个 Webhook URL,使用这个 URL 替换下方的示例 URL。

      Server 酱示例

      点击展开/收起

      Server 酱进阶

      • 名称:Server 酱

      • URL:https://sc.ftqq.com/SCUrandomkeys.send

      • 请求方式: POST

      • 请求类型: FORM

      • Body:

        json
        {
           "title": "#SERVER.NAME#",
           "desp": "**#NEZHA#\n\n平均负载: \"#SERVER.LOAD1#\",\"#SERVER.LOAD5#\",\"#SERVER.LOAD15#\"\n\n## [点击访问面板](https://你的面板域名)\n\n![logo](https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg)"
         }

        展示

      Telegram 示例 贡献者:@白歌

      点击展开/收起

      URL 参数获取说明

      请提前在 Telegram 中创建一个机器人,获取到机器人的 token 和你的 Telegram 用户 ID。

      机器人的 token 和用户 ID 都是数字和字母的组合,可以在 Telegram 中与 @userinfobot 对话获取自己的用户 ID。与 @BotFather 对话,输入命令 /newbot 创建一个机器人,创建完成后可以获得机器人的 token。

      得到的 token 和用户 ID 都是字符串,可以直接拼接到 URL 中,如下所示,将其中的 botXXXXXX 替换为你的机器人 token,将 YYYYYY 替换为你的用户 ID。注意,你需要先与机器人对话,否则机器人无法发送消息给你。

      wxpusher 示例

      需要提前关注你的应用

      点击展开/收起

      邮件通知示例 - SendCloud 贡献者:@白歌

      点击展开/收起

      注意:SendCloud 有每日免费发送邮件限额限制,这里仅作示例,你可以选择付费服务或其他类似的免费服务,使用方法类似。

      URL 参数获取说明

      该示例使用 SendCloud 作为发信服务,需提前在 SendCloud 注册账号,创建发件邮箱,然后在这里获取 APIUSER 和 APIKEY。

      替换示例 URL 中的 <替换APIUSER><替换APIKEY> 为自己的 APIUSER 和 APIKEY,替换 URL 中的 <自定义发件邮箱><自定义收件邮箱> 为任意的的发件邮箱和收件邮箱。

      • 名称:邮件告警
      • URL:https://api.sendcloud.net/apiv2/mail/send?apiUser=<替换APIUSER>&apiKey=<替换APIKEY>&from=<自定义发件邮箱>&fromName=Nezha&to=<自定义收件邮箱>&subject=Nezha-Notification&html=#NEZHA#
      • 请求方式: POST
      • 请求类型: JSON
      • Header: 留空
      • Body: 留空

      钉钉群机器人配置 示例

      点击展开/收起

      URL 参数获取说明

      请提前在钉钉中创建一个机器人,获取到机器人的 token。

      机器人 URL 在钉钉群 - 管理机器人 - 创建机器人后获取,安全方式选择自定义关键词,Body 中 content 值内需包含该关键词。

      企业微信群机器人 示例 贡献者:@ChowRex

      点击展开/收起

      支持的占位符一览

      json
      {
      @@ -49,8 +49,8 @@
           "markdown": {
               "content": "# 哪吒通知消息\n\n\"#NEZHA#\"\n\n> 名称: \"#SERVER.NAME#\"\n> IP: \"#SERVER.IP#\"\n> IPv4: \"#SERVER.IPV4#\"\n> IPv6: \"#SERVER.IPV6#\"\n> CPU: \"#SERVER.CPU#\"\n> 内存: \"#SERVER.MEM#\"\n> 交换分区: \"#SERVER.SWAP#\"\n> 存储: \"#SERVER.DISK#\"\n> 实时上传速度: \"#SERVER.NETINSPEED#\"\n> 实时下载速度: \"#SERVER.NETOUTSPEED#\"\n> 总上传: \"#SERVER.TRANSFERIN#\"\n> 总下载: \"#SERVER.TRANSFEROUT#\"\n> 1分钟内负载: \"#SERVER.LOAD1#\"\n> 5分钟内负载: \"#SERVER.LOAD5#\"\n> 15分钟内负载: \"#SERVER.LOAD15#\"\n> TCP连接数: \"#SERVER.TCPCONNCOUNT\"\n> UDP连接数: \"#SERVER.UDPCONNCOUNT\"\n\n"
           }
      -}

    根据需求删减相关内容信息即可。

    通知效果

    飞书群机器人配置 示例 贡献者:@eya46

    点击展开/收起

    URL 参数获取说明

    机器人 URL 通过飞书群 - 群机器人 - 添加机器人 - 自定义机器人(webhook)创建后获取。

    告警规则说明

    基本规则

    • type:可选取一个或多个类型,如在一个规则中选择了多个类型,需要同时满足所有选择的类型才会触发通知(可参考后面的示例)
      • cpugpumemoryswapdisk
      • net_in_speed 入站网速、net_out_speed 出站网速、net_all_speed 双向网速、transfer_in 入站流量、transfer_out 出站流量、transfer_all 双向流量
      • offline 离线监控
      • load1load5load15 负载
      • process_count 进程数(目前取线程数占用资源太多,暂时不支持)
      • tcp_conn_countudp_conn_count 连接数
      • temperature_max 最高温度值
    • duration:持续数秒,数秒内采样记录 30% 以上触发阈值才会告警(防数据插针)
    • minmax
      • 流量、网速类单位为字节(1KB=1024B,1MB=1024*1024B)
      • 内存、硬盘、CPU 以占用百分比计数
      • 离线监控无需设置此项
    • cover
      • 0 监控所有服务器,通过 ignore 忽略特定服务器
      • 1 忽略所有服务器,通过 ignore 监控特定服务器
        例如:[{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]
    • ignore:选择忽略特定服务器,搭配 cover 使用,内容为服务器 ID 和布尔值,例如:{"1": true, "2": false}

    完整示例:

    添加一个离线告警:

    • 名称:离线通知
    • 规则:[{"Type":"offline","Duration":10}]
    • 启用:√

    添加一个监控 CPU 持续 10 秒超过 50% 内存持续 20 秒占用低于 20% 的告警:

    • 名称:CPU+内存
    • 规则:[{"Type":"cpu","Min":0,"Max":50,"Duration":10},{"Type":"memory","Min":20,"Max":0,"Duration":20}]
    • 启用:√

    将特定的服务器通知发送到特定的通知分组:

    示例场景:
    有 1、2、3、4 四台服务器和 A、B 两个不同的通知组。
    1、2 这两台服务器掉线十分钟后给通知组 A 发送通知。
    3、4 这两台服务器掉线十分钟后给通知组 B 发送通知。

    首先你需要先设置好 A、B 两个通知组,然后添加两条告警规则:

    规则一:

    • 名称:1、2 离线,发送给通知组 A
    • 规则:[{"type":"offline","duration":600,"cover":1,"ignore":{"1":true,"2":true}}]
    • 通知方式组:A
    • 启用:√

    规则二:

    • 名称:3、4 离线,发送给通知组 B
    • 规则:[{"type":"offline","duration":600,"cover":1,"ignore":{"3":true,"4":true}}]
    • 通知方式组:B
    • 启用:√

    灵活使用参数可以让你的告警功能被充分使用

    特殊:任意周期流量告警

    可以用作月流量监控

    • type
      • transfer_in_cycle 周期内的入站流量
      • transfer_out_cycle 周期内的出站流量
      • transfer_all_cycle 周期内双向流量的和
    • cycle_start:统计周期开始日期(可以是你机器计费周期的开始日期),时间格式为 RFC3339,例如北京时间为 2022-01-11T08:00:00.00+08:00
    • cycle_interval:统计周期单位的数量(例如,周期单位为天,该值为 7,则代表每隔 7 天统计一次)
    • cycle_unit:统计周期单位,默认 hour,可选(hour, day, week, month, year
    • min/maxcoverignore 参考基本规则配置

    示例:

    ID 为 3 和 4 的服务器(ignore 里面定义),以每月 1 号为统计周期,周期内统计的出站月流量达到 1TB 时告警:

    json
    [{"type":"transfer_out_cycle","max":1099511627776,"cycle_start":"2022-01-01T00:00:00+08:00","cycle_interval":1,"cycle_unit":"month","cover":1,"ignore":{"3":true,"4":true}}]

    通知触发模式

    • 始终触发:每当 Agent 上报的状态符合告警的规则时,都会触发一次通知。
    • 单次触发:仅状态改变时触发一次通知,如从正常状态改变为异常状态,或异常状态恢复为正常状态。

    设置告警时执行任务

    如果需要在发出告警消息的同时执行某项任务,可以设置此项目。

    • 告警时触发任务:当告警状态符合从“正常”变更为“事件”时,所要执行的任务,任务应提前在任务页设置。
    • 恢复时触发任务:当告警状态符合从“事件”恢复为“正常”时,所要执行的任务,任务应提前在任务页设置。
    - +}

    根据需求删减相关内容信息即可。

    通知效果

    飞书群机器人配置 示例 贡献者:@eya46

    点击展开/收起

    URL 参数获取说明

    机器人 URL 通过飞书群 - 群机器人 - 添加机器人 - 自定义机器人(webhook)创建后获取。

    告警规则说明

    基本规则

    • type:可选取一个或多个类型,如在一个规则中选择了多个类型,需要同时满足所有选择的类型才会触发通知(可参考后面的示例)
      • cpugpumemoryswapdisk
      • net_in_speed 入站网速、net_out_speed 出站网速、net_all_speed 双向网速、transfer_in 入站流量、transfer_out 出站流量、transfer_all 双向流量
      • offline 离线监控
      • load1load5load15 负载
      • process_count 进程数(目前取线程数占用资源太多,暂时不支持)
      • tcp_conn_countudp_conn_count 连接数
      • temperature_max 最高温度值
    • duration:持续数秒,数秒内采样记录 30% 以上触发阈值才会告警(防数据插针)
    • minmax
      • 流量、网速类单位为字节(1KB=1024B,1MB=1024*1024B)
      • 内存、硬盘、CPU 以占用百分比计数
      • 离线监控无需设置此项
    • cover
      • 0 监控所有服务器,通过 ignore 忽略特定服务器
      • 1 忽略所有服务器,通过 ignore 监控特定服务器
        例如:[{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]
    • ignore:选择忽略特定服务器,搭配 cover 使用,内容为服务器 ID 和布尔值,例如:{"1": true, "2": false}

    完整示例:

    添加一个离线告警:

    • 名称:离线通知
    • 规则:[{"Type":"offline","Duration":10}]
    • 启用:√

    添加一个监控 CPU 持续 10 秒超过 50% 内存持续 20 秒占用低于 20% 的告警:

    • 名称:CPU+内存
    • 规则:[{"Type":"cpu","Min":0,"Max":50,"Duration":10},{"Type":"memory","Min":20,"Max":0,"Duration":20}]
    • 启用:√

    将特定的服务器通知发送到特定的通知分组:

    示例场景:
    有 1、2、3、4 四台服务器和 A、B 两个不同的通知组。
    1、2 这两台服务器掉线十分钟后给通知组 A 发送通知。
    3、4 这两台服务器掉线十分钟后给通知组 B 发送通知。

    首先你需要先设置好 A、B 两个通知组,然后添加两条告警规则:

    规则一:

    • 名称:1、2 离线,发送给通知组 A
    • 规则:[{"type":"offline","duration":600,"cover":1,"ignore":{"1":true,"2":true}}]
    • 通知方式组:A
    • 启用:√

    规则二:

    • 名称:3、4 离线,发送给通知组 B
    • 规则:[{"type":"offline","duration":600,"cover":1,"ignore":{"3":true,"4":true}}]
    • 通知方式组:B
    • 启用:√

    灵活使用参数可以让你的告警功能被充分使用

    特殊:任意周期流量告警

    可以用作月流量监控

    • type
      • transfer_in_cycle 周期内的入站流量
      • transfer_out_cycle 周期内的出站流量
      • transfer_all_cycle 周期内双向流量的和
    • cycle_start:统计周期开始日期(可以是你机器计费周期的开始日期),时间格式为 RFC3339,例如北京时间为 2022-01-11T08:00:00.00+08:00
    • cycle_interval:统计周期单位的数量(例如,周期单位为天,该值为 7,则代表每隔 7 天统计一次)
    • cycle_unit:统计周期单位,默认 hour,可选(hour, day, week, month, year
    • min/maxcoverignore 参考基本规则配置

    示例:

    ID 为 3 和 4 的服务器(ignore 里面定义),以每月 1 号为统计周期,周期内统计的出站月流量达到 1TB 时告警:

    json
    [{"type":"transfer_out_cycle","max":1099511627776,"cycle_start":"2022-01-01T00:00:00+08:00","cycle_interval":1,"cycle_unit":"month","cover":1,"ignore":{"3":true,"4":true}}]

    通知触发模式

    • 始终触发:每当 Agent 上报的状态符合告警的规则时,都会触发一次通知。
    • 单次触发:仅状态改变时触发一次通知,如从正常状态改变为异常状态,或异常状态恢复为正常状态。

    设置告警时执行任务

    如果需要在发出告警消息的同时执行某项任务,可以设置此项目。

    • 告警时触发任务:当告警状态符合从“正常”变更为“事件”时,所要执行的任务,任务应提前在任务页设置。
    • 恢复时触发任务:当告警状态符合从“事件”恢复为“正常”时,所要执行的任务,任务应提前在任务页设置。
    + \ No newline at end of file diff --git a/guide/q1.html b/guide/q1.html index f5958432..ab97f2c9 100644 --- a/guide/q1.html +++ b/guide/q1.html @@ -6,13 +6,13 @@ 反向代理 Telegram Bot API | 哪吒监控 - + - + - - + + @@ -22,7 +22,7 @@ -
    Skip to content

    反向代理 Telegram Bot API

    如果你的 Dashboard 服务器无法访问 Telegram Bot API,但你依然想使用 Telegram 来推送通知,你可以尝试使用反向代理的方式解决这个问题。

    准备工作

    这里介绍使用你自己的服务器进行反代的方法。你也可以选择使用 Cloudflare 的 Workers 进行反代,但可能对于中国大陆的用户来说网络连通性依然不佳。

    要搭建一个 Telegram Bot API 反代,你需要准备以下内容:

    1. 一个可以连接 Telegram Bot API 服务器(并安装好 Nginx)。
    2. 一个域名(提前申请 SSL 证书)。

    NGINX 配置

    编辑 Nginx 配置文件,在 http{} 中添加如下配置:

    nginx
    # HTTP 强制跳转到 HTTPS
    +    
    Skip to content

    反向代理 Telegram Bot API

    如果你的 Dashboard 服务器无法访问 Telegram Bot API,但你依然想使用 Telegram 来推送通知,你可以尝试使用反向代理的方式解决这个问题。

    准备工作

    这里介绍使用你自己的服务器进行反代的方法。你也可以选择使用 Cloudflare 的 Workers 进行反代,但可能对于中国大陆的用户来说网络连通性依然不佳。

    要搭建一个 Telegram Bot API 反代,你需要准备以下内容:

    1. 一个可以连接 Telegram Bot API 服务器(并安装好 Nginx)。
    2. 一个域名(提前申请 SSL 证书)。

    NGINX 配置

    编辑 Nginx 配置文件,在 http{} 中添加如下配置:

    nginx
    # HTTP 强制跳转到 HTTPS
     server {
         listen 80;
         listen [::]:80;
    @@ -67,8 +67,8 @@
     
     # CentOS
     iptables -I INPUT -p tcp --dport 443 -j DROP
    -iptables -I INPUT -s <serverIp> -p tcp --dport 443 -j ACCEPT

    通过以上配置,可以有效防止未经授权的访问。

    - +iptables -I INPUT -s <serverIp> -p tcp --dport 443 -j ACCEPT

    通过以上配置,可以有效防止未经授权的访问。

    + \ No newline at end of file diff --git a/guide/q2.html b/guide/q2.html index 43892dc2..640cdbe2 100644 --- a/guide/q2.html +++ b/guide/q2.html @@ -6,13 +6,13 @@ Agent 启动/上线 问题自检流程 | 哪吒监控 - + - + - - + + @@ -22,8 +22,8 @@ -
    Skip to content

    Agent 启动/上线 问题自检流程

    1. 直接执行 /opt/nezha/agent/nezha-agent -s 面板IP或非CDN域名:面板RPC端口 -p Agent密钥 -d 查看日志是否是因为 DNS、网络不佳导致超时(timeout)
    2. nc -v 域名/IP 面板RPC端口 或者 telnet 域名/IP 面板RPC端口 来检验是否是网络问题,检查本机与面板服务器的出入站防火墙,如果无法判断问题可借助 https://port.ping.pe/ 提供的端口检查工具进行检测。
    3. 如果上面步骤检测正常,Agent 依然没有正常上线,请尝试关闭 SELinux,如何关闭 SELinux?
    - +
    Skip to content

    Agent 启动/上线 问题自检流程

    1. 直接执行 /opt/nezha/agent/nezha-agent -s 面板IP或非CDN域名:面板RPC端口 -p Agent密钥 -d 查看日志是否是因为 DNS、网络不佳导致超时(timeout)
    2. nc -v 域名/IP 面板RPC端口 或者 telnet 域名/IP 面板RPC端口 来检验是否是网络问题,检查本机与面板服务器的出入站防火墙,如果无法判断问题可借助 https://port.ping.pe/ 提供的端口检查工具进行检测。
    3. 如果上面步骤检测正常,Agent 依然没有正常上线,请尝试关闭 SELinux,如何关闭 SELinux?
    + \ No newline at end of file diff --git a/guide/q3.html b/guide/q3.html index e91198ae..8726e3a6 100644 --- a/guide/q3.html +++ b/guide/q3.html @@ -6,13 +6,13 @@ 反向代理 gRPC 端口(支持 Cloudflare CDN) | 哪吒监控 - + - + - - + + @@ -22,7 +22,7 @@ -
    Skip to content

    反向代理 gRPC 端口(支持 Cloudflare CDN)

    使用 Nginx 或者 Caddy 反向代理 gRPC

    • Nginx 配置
    nginx
    server {
    +    
    Skip to content

    反向代理 gRPC 端口(支持 Cloudflare CDN)

    使用 Nginx 或者 Caddy 反向代理 gRPC

    • Nginx 配置
    nginx
    server {
         listen 443 ssl http2;
         listen [::]:443 ssl http2;
         server_name data.example.com; # 你的 Agent 连接 Dashboard 的域名
    @@ -95,8 +95,8 @@
     localhost:~/agent# /opt/nezha/agent/nezha-agent -s nezha.xxx.xxx:443 -p YOUR_KEY --tls -d
     NEZHA@2023-12-20 05:14:00>> 检查更新: 0.15.14
     NEZHA@2023-12-20 05:14:01>> 上报系统信息失败: rpc error: code = Unknown desc = EOF # 需要修改主控端 /opt/nezha/dashboard/data/config.yaml的 GRPCHost 和 TLS 选项
    -NEZHA@2023-12-20 05:14:01>> Error to close connection ...
    - +NEZHA@2023-12-20 05:14:01>> Error to close connection ...
    + \ No newline at end of file diff --git a/guide/q4.html b/guide/q4.html index a35cfe05..787bfe08 100644 --- a/guide/q4.html +++ b/guide/q4.html @@ -6,13 +6,13 @@ 实时通道断开/在线终端连接失败 | 哪吒监控 - + - + - - + + @@ -22,8 +22,8 @@ -
    Skip to content

    实时通道断开/在线终端连接失败

    • 如果你使用了 CDN,请确认 CDN 服务商提供 WebSocket 服务,并且已开启 WebSocket。
    • 确认你的反代规则中针对 /ws, /terminal 路径的 WebSocket 进行了特别配置,你可以 点击这里 查看反向代理配置。
    - +
    Skip to content

    实时通道断开/在线终端连接失败

    • 如果你使用了 CDN,请确认 CDN 服务商提供 WebSocket 服务,并且已开启 WebSocket。
    • 确认你的反代规则中针对 /ws, /terminal 路径的 WebSocket 进行了特别配置,你可以 点击这里 查看反向代理配置。
    + \ No newline at end of file diff --git a/guide/q5.html b/guide/q5.html index 965369b7..bfa16a60 100644 --- a/guide/q5.html +++ b/guide/q5.html @@ -6,13 +6,13 @@ 如何进行数据迁移、备份恢复? | 哪吒监控 - + - + - - + + @@ -22,8 +22,8 @@ -
    - +
    + \ No newline at end of file diff --git a/guide/q6.html b/guide/q6.html index d64243ac..15738df7 100644 --- a/guide/q6.html +++ b/guide/q6.html @@ -6,13 +6,13 @@ 如何每月重置流量统计? | 哪吒监控 - + - + - - + + @@ -22,8 +22,8 @@ -
    Skip to content

    如何每月重置流量统计?

    主页中的流量统计每次服务器重启时都会重置,如果要实现每月重置一次流量计数,可以这样实现:

    1. 进入管理面板的 告警
    2. 参考这篇文档,创建一个月流量告警
    3. 返回主页,在 服务 页中就可以看到月流量统计了,这里的统计数据不会因为服务器重启而重置

    TIP

    此方式可以设置任何周期,包括且不限于每小时/每天/每周/每月/每年重置流量统计,非常灵活!

    - +
    Skip to content

    如何每月重置流量统计?

    主页中的流量统计每次服务器重启时都会重置,如果要实现每月重置一次流量计数,可以这样实现:

    1. 进入管理面板的 告警
    2. 参考这篇文档,创建一个月流量告警
    3. 返回主页,在 服务 页中就可以看到月流量统计了,这里的统计数据不会因为服务器重启而重置

    TIP

    此方式可以设置任何周期,包括且不限于每小时/每天/每周/每月/每年重置流量统计,非常灵活!

    + \ No newline at end of file diff --git a/guide/q7.html b/guide/q7.html index 65ea2832..bbd98365 100644 --- a/guide/q7.html +++ b/guide/q7.html @@ -6,13 +6,13 @@ 自定义 Agent 监控项目 | 哪吒监控 - + - + - - + + @@ -22,8 +22,8 @@ -
    Skip to content

    自定义 Agent 监控项目

    自定义监控的网卡和硬盘分区

    执行以下命令来选择自定义的网卡和分区,然后重启 Agent 即可生效:

    bash
    /opt/nezha/agent/nezha-agent edit

    其他运行参数

    通过执行以下命令查看支持的参数:

    bash
    ./nezha-agent --help

    如果你使用了一键脚本安装 Agent,可以编辑 /etc/systemd/system/nezha-agent.service,在 ExecStart= 这一行的末尾加上以下参数:

    • --report-delay:控制系统信息上报的间隔,默认为 1 秒,可以设置为 3 来进一步降低 agent 端系统资源占用(配置区间 1-4)。
    • --skip-conn:不监控连接数,推荐在机场/连接密集型服务器或CPU占用较高的服务器上设置。
    • --skip-procs:不监控进程数,也可以降低 Agent 占用。
    • --disable-auto-update:禁止 自动更新 Agent(安全特性)。
    • --disable-force-update:禁止 强制更新 Agent(安全特性)。
    • --disable-command-execute:禁止在 Agent 上执行定时任务、打开在线终端(安全特性)。
    • --tls:启用 SSL/TLS 加密(使用 nginx 反向代理 Agent 的 grpc 连接,并且 nginx 开启 SSL/TLS 时,需要启用该项配置)。
    • --gpu: 启用 GPU 监控(其中 GPU 使用率监控可能需要安装额外依赖。相关问题请参见常见问题 - 启用 GPU 监控。)
    - +
    Skip to content

    自定义 Agent 监控项目

    自定义监控的网卡和硬盘分区

    执行以下命令来选择自定义的网卡和分区,然后重启 Agent 即可生效:

    bash
    /opt/nezha/agent/nezha-agent edit

    其他运行参数

    通过执行以下命令查看支持的参数:

    bash
    ./nezha-agent --help

    如果你使用了一键脚本安装 Agent,可以编辑 /etc/systemd/system/nezha-agent.service,在 ExecStart= 这一行的末尾加上以下参数:

    • --report-delay:控制系统信息上报的间隔,默认为 1 秒,可以设置为 3 来进一步降低 agent 端系统资源占用(配置区间 1-4)。
    • --skip-conn:不监控连接数,推荐在机场/连接密集型服务器或CPU占用较高的服务器上设置。
    • --skip-procs:不监控进程数,也可以降低 Agent 占用。
    • --disable-auto-update:禁止 自动更新 Agent(安全特性)。
    • --disable-force-update:禁止 强制更新 Agent(安全特性)。
    • --disable-command-execute:禁止在 Agent 上执行定时任务、打开在线终端(安全特性)。
    • --tls:启用 SSL/TLS 加密(使用 nginx 反向代理 Agent 的 grpc 连接,并且 nginx 开启 SSL/TLS 时,需要启用该项配置)。
    • --gpu: 启用 GPU 监控(其中 GPU 使用率监控可能需要安装额外依赖。相关问题请参见常见问题 - 启用 GPU 监控。)
    + \ No newline at end of file diff --git a/guide/q8.html b/guide/q8.html index eeaa56fc..8d329bc8 100644 --- a/guide/q8.html +++ b/guide/q8.html @@ -6,13 +6,13 @@ 使用 Cloudflare Access 作为 OAuth2 提供方 | 哪吒监控 - + - + - - + + @@ -22,13 +22,13 @@ -
    Skip to content

    使用 Cloudflare Access 作为 OAuth2 提供方

    相较于 Github,Cloudflare Access 对于中国大陆用户更加友好。如您当前使用 Github、Gitlab、Gitee 作为管理员账户登录时遇到问题,您可以考虑切换 Cloudflare Access 作为 OAuth2 提供方

    示例配置:

    yaml
    Oauth2:
    +    
    Skip to content

    使用 Cloudflare Access 作为 OAuth2 提供方

    相较于 Github,Cloudflare Access 对于中国大陆用户更加友好。如您当前使用 Github、Gitlab、Gitee 作为管理员账户登录时遇到问题,您可以考虑切换 Cloudflare Access 作为 OAuth2 提供方

    示例配置:

    yaml
    Oauth2:
       Admin: 701b9ea6-9f56-48cd-af3e-cbb4bfc1475c
       ClientID: 3516291f53eca9b4901a01337e41be7dc52f565c8657d08a3fddb2178d13c5bf
       ClientSecret: 0568b67c7b6d0ed51c663e2fe935683007c28f947a27b7bd47a5ad3d8b56fb67
       Endpoint: "https://xxxxx.cloudflareaccess.com"
    -  Type: cloudflare

    配置说明:

    参数获取方式
    AdminMy Team -> Users -> <具体用户> -> User ID
    ClientID/ClientSecretAccess -> Application -> Add an Application
    -> SaaS -> OIDC
    EndpointAccess -> Application -> Application URL -> 只保留协议+域名的部分,路径不需要

    新建 SaaS-OIDC 应用流程

    前往 Zero Trust Dashboard: https://one.dash.cloudflare.com

    1. My Team -> Users -> <具体用户> -> 获取 User ID 并保存;
    2. Access -> Application -> Add an Application;
    3. 选择 SaaS,在 Application 中输入自定义的应用名称(例如 nezha),选择 OIDC后点击 Add application;
    4. Scopes 选择 openid, email, profile, groups;
    5. Redirect URLs 填写你的 CallBack 地址,例如 https://dashboard.example.com/oauth2/callback;
    6. 记录 Client IDClient SecretIssuer 地址中协议与域名的部分,例如 https://xxxxx.cloudflareaccess.com
    7. 编辑 Dashboard 配置文件(通常在/opt/nezha/dashboard/data/config.yaml),参考示例配置修改 Oauth2 配置,并重启 Dashboard 服务

    身份验证策略配置

    在完成 Dashboard 的设置后,您还需要在 Zero Trust Dashboard 中 Access-> Applications -> <应用名> -> Policies 配置验证策略。您可以选择包括邮件OTP验证、硬件密钥验证、等十多种 SSO 验证方式,详细配置请参考 Cloudflare Zero Trust 文档

    - + Type: cloudflare

    配置说明:

    参数获取方式
    AdminMy Team -> Users -> <具体用户> -> User ID
    ClientID/ClientSecretAccess -> Application -> Add an Application
    -> SaaS -> OIDC
    EndpointAccess -> Application -> Application URL -> 只保留协议+域名的部分,路径不需要

    新建 SaaS-OIDC 应用流程

    前往 Zero Trust Dashboard: https://one.dash.cloudflare.com

    1. My Team -> Users -> <具体用户> -> 获取 User ID 并保存;
    2. Access -> Application -> Add an Application;
    3. 选择 SaaS,在 Application 中输入自定义的应用名称(例如 nezha),选择 OIDC后点击 Add application;
    4. Scopes 选择 openid, email, profile, groups;
    5. Redirect URLs 填写你的 CallBack 地址,例如 https://dashboard.example.com/oauth2/callback;
    6. 记录 Client IDClient SecretIssuer 地址中协议与域名的部分,例如 https://xxxxx.cloudflareaccess.com
    7. 编辑 Dashboard 配置文件(通常在/opt/nezha/dashboard/data/config.yaml),参考示例配置修改 Oauth2 配置,并重启 Dashboard 服务

    身份验证策略配置

    在完成 Dashboard 的设置后,您还需要在 Zero Trust Dashboard 中 Access-> Applications -> <应用名> -> Policies 配置验证策略。您可以选择包括邮件OTP验证、硬件密钥验证、等十多种 SSO 验证方式,详细配置请参考 Cloudflare Zero Trust 文档

    + \ No newline at end of file diff --git a/guide/q9.html b/guide/q9.html index af26e816..946b101f 100644 --- a/guide/q9.html +++ b/guide/q9.html @@ -6,13 +6,13 @@ 启用 GPU 监控 | 哪吒监控 - + - + - - + + @@ -22,7 +22,7 @@ -
    Skip to content

    启用 GPU 监控

    GPU 监控是哪吒监控 v0.17.x 引入的新功能,使用前请检查您的 Dashboard 版本是否为 v0.17.2+ / Agent 版本是否为 v0.17.0+。

    启用

    通过启动参数

    在 Agent 运行参数后添加 --gpu 即可。例如:

    bash
    /opt/nezha/agent/nezha-agent -s example.com:5555 -p example --gpu

    通过配置文件

    执行以下命令修改 Agent 配置文件以启用 GPU 监控:

    bash
    /opt/nezha/agent/nezha-agent edit

    在返回的互动菜单中选择启用 GPU 功能即可。

    打开 GPU 占用率监控支持

    GPU 型号与 GPU 使用率为两个不同的监控项目,使用了不同实现获取。

    其中 Windows 和 macOS 支持无依赖获取 GPU 使用率,并支持多个品牌显卡;

    Linux 平台则仅支持 NVIDIA / AMD 显卡,且需要安装额外依赖。

    以下将介绍如何在 Linux 上为 NVIDIA / AMD 显卡启用 GPU 使用率监控。

    NVIDIA

    NVIDIA 显卡获取 GPU 使用率需要用到 nvidia-smi 工具,一般为官方驱动自带。

    如果您使用的是非官方驱动,例如 nouveau,那么将无法获取 GPU 使用率。

    AMD

    AMD 显卡获取 GPU 使用率需要安装官方 amdgpu 驱动和 rocm-smi 工具。

    主流系统均已打包 rocm-smi ,以下是部分系统的安装命令:

    bash
    # Arch Linux
    +    
    Skip to content

    启用 GPU 监控

    GPU 监控是哪吒监控 v0.17.x 引入的新功能,使用前请检查您的 Dashboard 版本是否为 v0.17.2+ / Agent 版本是否为 v0.17.0+。

    启用

    通过启动参数

    在 Agent 运行参数后添加 --gpu 即可。例如:

    bash
    /opt/nezha/agent/nezha-agent -s example.com:5555 -p example --gpu

    通过配置文件

    执行以下命令修改 Agent 配置文件以启用 GPU 监控:

    bash
    /opt/nezha/agent/nezha-agent edit

    在返回的互动菜单中选择启用 GPU 功能即可。

    打开 GPU 占用率监控支持

    GPU 型号与 GPU 使用率为两个不同的监控项目,使用了不同实现获取。

    其中 Windows 和 macOS 支持无依赖获取 GPU 使用率,并支持多个品牌显卡;

    Linux 平台则仅支持 NVIDIA / AMD 显卡,且需要安装额外依赖。

    以下将介绍如何在 Linux 上为 NVIDIA / AMD 显卡启用 GPU 使用率监控。

    NVIDIA

    NVIDIA 显卡获取 GPU 使用率需要用到 nvidia-smi 工具,一般为官方驱动自带。

    如果您使用的是非官方驱动,例如 nouveau,那么将无法获取 GPU 使用率。

    AMD

    AMD 显卡获取 GPU 使用率需要安装官方 amdgpu 驱动和 rocm-smi 工具。

    主流系统均已打包 rocm-smi ,以下是部分系统的安装命令:

    bash
    # Arch Linux
     pacman -Sy rocm-smi-lib
     
     # Debian / Ubuntu
    @@ -35,8 +35,8 @@
     cmake ..
     make -j $(nproc)
     # Install library file and header; default location is /opt/rocm
    -make install
    - +make install
    + \ No newline at end of file diff --git a/guide/servers.html b/guide/servers.html index 0836f1db..537e6777 100644 --- a/guide/servers.html +++ b/guide/servers.html @@ -6,13 +6,13 @@ 服务器 | 哪吒监控 - + - + - - + + @@ -22,7 +22,7 @@ -
    Skip to content

    服务器

    介绍

    服务器区域负责管理 Agent,是哪吒探针中最基础的区域,也是其他功能的基础。

    新增服务器

    第一步是新增服务器,可以自定义名称、分组、排序和备注。
    拥有相同分组的服务器会在受支持的主题中划分到一起进行显示,备注仅会在后台显示,无需担心泄露信息。

    安装 Agent

    请参考前文安装 Agent
    推荐使用一键安装,即配置好参数后,点击服务器一键安装列上的对应的系统图标即可复制安装命令,在相应服务器上进行安装。

    强制更新

    Agent 更新相关的参数是 自定义 Agent 监控项目 中的 --disable-auto-update--disable-force-update
    默认情况下,Agent 会自动更新,无需干预。但当用户关闭自动更新后,也可以选中指定服务器进行强制更新。
    disable-force-update 开启时此功能不生效。

    数据列

    • 版本号:记录 Agent 当前版本。
    • 对游客隐藏:为 True 时,游客在面板中无法查看到此服务器。
    • 启用 DDNS:为 True 时,当该服务器 IP 发生变化,Dashboard 会自动更新 DNS 记录。
    • DDNS 域名:为该服务器配置的 DDNS 域名。
    • 密钥:即 secret/key,配置 Agent 时会用到,用于验证 Agent 与 Dashboard 的通信。
    • 一键安装:点击相应的系统按钮,复制命令到服务器执行即可一键安装。
    • 管理:分别为连接 WebShell,修改服务器配置,删除服务器。

    在线终端

    即 WebShell,disable-command-execute 开启时此功能不生效。
    Linux 和 Windows 均可用,可使用 Ctrl+Shift+V 粘贴。
    连接失败请参考实时通道断开/在线终端连接失败
    注意在线终端功能中,Agent 也是通过 WebSocket 连接到公开访问域名,而非通过 gRPC 交互。

    DDNS 功能

    DDNS 功能适用于使用动态 IP 的服务器,当 Agent 上报了一个新的 IP,Dashboard 会根据配置自动更新 DNS 记录。

    为什么我要使用哪吒监控的 DDNS 功能?

    • 方便集中管理 DDNS 设置,而不是在每台服务器上都部署一个 DDNS 服务。
    • 仅在面板服务器上保存您的机密信息,防止外泄。

    配置说明

    目前 DDNS 功能支持两种形式的配置:单配置和多配置。如使用单配置,则所有 Agent 服务器都使用相同的配置更新 DDNS;如使用多配置,则可为每台服务器指定一个配置更新 DDNS,灵活性更强。

    单配置

    yaml
    DDNS:
    +    
    Skip to content

    服务器

    介绍

    服务器区域负责管理 Agent,是哪吒探针中最基础的区域,也是其他功能的基础。

    新增服务器

    第一步是新增服务器,可以自定义名称、分组、排序和备注。
    拥有相同分组的服务器会在受支持的主题中划分到一起进行显示,备注仅会在后台显示,无需担心泄露信息。

    安装 Agent

    请参考前文安装 Agent
    推荐使用一键安装,即配置好参数后,点击服务器一键安装列上的对应的系统图标即可复制安装命令,在相应服务器上进行安装。

    强制更新

    Agent 更新相关的参数是 自定义 Agent 监控项目 中的 --disable-auto-update--disable-force-update
    默认情况下,Agent 会自动更新,无需干预。但当用户关闭自动更新后,也可以选中指定服务器进行强制更新。
    disable-force-update 开启时此功能不生效。

    数据列

    • 版本号:记录 Agent 当前版本。
    • 对游客隐藏:为 True 时,游客在面板中无法查看到此服务器。
    • 启用 DDNS:为 True 时,当该服务器 IP 发生变化,Dashboard 会自动更新 DNS 记录。
    • DDNS 域名:为该服务器配置的 DDNS 域名。
    • 密钥:即 secret/key,配置 Agent 时会用到,用于验证 Agent 与 Dashboard 的通信。
    • 一键安装:点击相应的系统按钮,复制命令到服务器执行即可一键安装。
    • 管理:分别为连接 WebShell,修改服务器配置,删除服务器。

    在线终端

    即 WebShell,disable-command-execute 开启时此功能不生效。
    Linux 和 Windows 均可用,可使用 Ctrl+Shift+V 粘贴。
    连接失败请参考实时通道断开/在线终端连接失败
    注意在线终端功能中,Agent 也是通过 WebSocket 连接到公开访问域名,而非通过 gRPC 交互。

    DDNS 功能

    DDNS 功能适用于使用动态 IP 的服务器,当 Agent 上报了一个新的 IP,Dashboard 会根据配置自动更新 DNS 记录。

    为什么我要使用哪吒监控的 DDNS 功能?

    • 方便集中管理 DDNS 设置,而不是在每台服务器上都部署一个 DDNS 服务。
    • 仅在面板服务器上保存您的机密信息,防止外泄。

    配置说明

    目前 DDNS 功能支持两种形式的配置:单配置和多配置。如使用单配置,则所有 Agent 服务器都使用相同的配置更新 DDNS;如使用多配置,则可为每台服务器指定一个配置更新 DDNS,灵活性更强。

    单配置

    yaml
    DDNS:
       Enable: true
       Provider: "webhook"
       AccessID: ""
    @@ -47,8 +47,8 @@
           WebhookURL: ""
           WebhookRequestBody: ""
           WebhookHeaders: ""
    • Profiles:多配置设定。
    • example:可替换为 DDNS 配置名,可填任意字符串。

    其它选项请参考单配置段。

    Dashboard 配置

    修改配置文件后,还需要在 Dashboard 中修改服务器设置才能使 DDNS 生效。

    DDNS 相关选项说明:

    • 启用 DDNS:为此服务器启用 DDNS 功能。
    • 启用 DDNS IPv4:更新 DDNS 记录时,启用 IPv4 解析。
    • 启用 DDNS IPv6:更新 DDNS 记录时,启用 IPv6 解析。
    • DDNS 域名:记录指向的域名。
    • DDNS 配置:在多配置情况下,要使用的 DDNS 配置名。

    WARNING

    在 Dashboard 设置中修改配置并保存时,会在 config.yaml 中填入默认配置选项,此时 DDNS 段中会同时存在单配置和多配置。

    • 如需使用单配置,请配置 DDNS.Provider,并忽略 Profiles 选项相关内容。
    • 如需使用多配置,请将 DDNS.Provider 留空。如 DDNS.Provider 的值不为空,多配置设定将被忽略。

    查看日志

    在 Dashboard 的日志中,可以看到 DDNS 功能的相关日志,配置正确时,更新 DNS 记录时会有相应的日志记录。

    shell
    dashboard_1  | 2024/03/16 23:16:25 NEZHA>> 正在尝试更新域名(ddns.example.com)DDNS(1/3)
    -dashboard_1  | 2024/03/16 23:16:28 NEZHA>> 尝试更新域名(ddns.example.com)DDNS成功
    - +dashboard_1 | 2024/03/16 23:16:28 NEZHA>> 尝试更新域名(ddns.example.com)DDNS成功
    + \ No newline at end of file diff --git a/guide/services.html b/guide/services.html index 1fd2239e..0faa89be 100644 --- a/guide/services.html +++ b/guide/services.html @@ -6,13 +6,13 @@ 服务监控 | 哪吒监控 - + - + - - + + @@ -22,8 +22,8 @@ -
    Skip to content

    服务监控

    服务区域是设置 Agent 监控外部网站或服务器的功能设置区
    设置好的服务监控可以在主页中的“服务”页查看过去 30 天的可用性监控结果

    使用方法

    如需新增一个监控,可以进入管理面板中的“服务”页,点击“添加监控”。

    新增一个服务监控时,你需要设置以下参数:

    • 名称:自定义一个名称。

    • 类型:选择一个监控类型。目前哪吒监控支持三种监控类型,分别是“HTTP-GET”、“ICMP-Ping”和“TCP-Ping”。

    • 目标:根据你选择的类型不同,目标的设置方法也不同:

      • HTTP-GET:选择此类型时,你应输入一个 URL 作为目标,URL 需添加 http://https://如果你的目标 URL 是 https://,将会同时监控该 URL 的 SSL 证书,当 SSL 证书到期或发生变更,会触发提醒。例如:https://example.com
      • ICMP-Ping:选择此类型时,你应输入一个域名或 IP,不含端口号。例如:1.1.1.1 或 example.com。
      • TCP-Ping:选择此类型时,你应输入一个域名或 IP 并包含端口号。例如:1.1.1.1:80 或 example.com:22。
    • 请求间隔:设定 Agent 每次请求目标的时间间隔,以秒为单位。

    • 覆盖范围:选择一条规则来确定要使用哪些 Agent 来请求目标。

    • 特定服务器:配合覆盖范围使用,选择规则内需要排除的 Agent。

    • 通知方式组:选择你已经在“告警”页设置好的通知方式,点击这里了解详情。

    • 启用故障通知:根据需要选择是否接收目标故障通知,默认为不勾选。

    设置完成后,点击“添加”即可。稍等片刻前往主页的“服务”页查看监控结果。

    延迟变化告警

    哪吒监控可以监测并统计 Agent 到目标服务器之间的延迟,在发生较大变化的情况下发送通知。利用此功能可以帮助你监控服务器的线路是否发生了变化。

    • 启用延迟通知:开启时,当 Agent 至目标服务器的延迟大于最高延迟或小于最低延迟时,将会发送告警通知。

    告警时触发任务

    如果你需要在服务监控告警触发时执行一些任务,可以勾选“启用触发任务”,并在“告警时触发任务”和“恢复时触发任务”中选择你已经提前设置好的触发任务。

    网络延迟图表

    在服务页中设置的 TCP-Ping 和 ICMP-Ping 类型的监控都会自动启用监控图表功能。在主页的“网络”页中,你可以查看历史网络延迟监控图表。图表中的数据是根据 Agent 到目标服务器的延迟统计而来,你可以点击 Agent 的名称来切换图表。在图表中,可以取消勾选目标服务器的名称来隐藏或显示对应的数据。

    管理监控

    如需对已有的服务监控进行管理,可以前往管理面板中的“服务”页。选择一条监控配置,点击右侧的图标进行编辑或删除。

    - +
    Skip to content

    服务监控

    服务区域是设置 Agent 监控外部网站或服务器的功能设置区
    设置好的服务监控可以在主页中的“服务”页查看过去 30 天的可用性监控结果

    使用方法

    如需新增一个监控,可以进入管理面板中的“服务”页,点击“添加监控”。

    新增一个服务监控时,你需要设置以下参数:

    • 名称:自定义一个名称。

    • 类型:选择一个监控类型。目前哪吒监控支持三种监控类型,分别是“HTTP-GET”、“ICMP-Ping”和“TCP-Ping”。

    • 目标:根据你选择的类型不同,目标的设置方法也不同:

      • HTTP-GET:选择此类型时,你应输入一个 URL 作为目标,URL 需添加 http://https://如果你的目标 URL 是 https://,将会同时监控该 URL 的 SSL 证书,当 SSL 证书到期或发生变更,会触发提醒。例如:https://example.com
      • ICMP-Ping:选择此类型时,你应输入一个域名或 IP,不含端口号。例如:1.1.1.1 或 example.com。
      • TCP-Ping:选择此类型时,你应输入一个域名或 IP 并包含端口号。例如:1.1.1.1:80 或 example.com:22。
    • 请求间隔:设定 Agent 每次请求目标的时间间隔,以秒为单位。

    • 覆盖范围:选择一条规则来确定要使用哪些 Agent 来请求目标。

    • 特定服务器:配合覆盖范围使用,选择规则内需要排除的 Agent。

    • 通知方式组:选择你已经在“告警”页设置好的通知方式,点击这里了解详情。

    • 启用故障通知:根据需要选择是否接收目标故障通知,默认为不勾选。

    设置完成后,点击“添加”即可。稍等片刻前往主页的“服务”页查看监控结果。

    延迟变化告警

    哪吒监控可以监测并统计 Agent 到目标服务器之间的延迟,在发生较大变化的情况下发送通知。利用此功能可以帮助你监控服务器的线路是否发生了变化。

    • 启用延迟通知:开启时,当 Agent 至目标服务器的延迟大于最高延迟或小于最低延迟时,将会发送告警通知。

    告警时触发任务

    如果你需要在服务监控告警触发时执行一些任务,可以勾选“启用触发任务”,并在“告警时触发任务”和“恢复时触发任务”中选择你已经提前设置好的触发任务。

    网络延迟图表

    在服务页中设置的 TCP-Ping 和 ICMP-Ping 类型的监控都会自动启用监控图表功能。在主页的“网络”页中,你可以查看历史网络延迟监控图表。图表中的数据是根据 Agent 到目标服务器的延迟统计而来,你可以点击 Agent 的名称来切换图表。在图表中,可以取消勾选目标服务器的名称来隐藏或显示对应的数据。

    管理监控

    如需对已有的服务监控进行管理,可以前往管理面板中的“服务”页。选择一条监控配置,点击右侧的图标进行编辑或删除。

    + \ No newline at end of file diff --git a/guide/settings.html b/guide/settings.html index f8b16561..6eed5733 100644 --- a/guide/settings.html +++ b/guide/settings.html @@ -6,13 +6,13 @@ 设置 | 哪吒监控 - + - + - - + + @@ -22,7 +22,7 @@ -
    Skip to content

    设置

    站点标题

    你可以在此项中自定义站点标题。

    管理员列表

    • 如果你修改了自己的 Github、Gitlab 或 Gitee 的用户名,需要在此项中同步修改,否则无法登录。多个用户请用逗号隔开:user1,user2
    • 如需更改管理员账户,请前往 /opt/nezha/dashboard/data/config.yaml,重新设置新的管理员 Client IDClient Secret

    界面主题

    在这里选择主页和管理界面主题,如果选项中没有某个已存在的主题,请更新面板。
    启用 Custom 主题前,你需要提前安装自定义主题,否则启用该项后,面板将无法正常显示。

    Language

    哪吒监控目前支持以下语言:

    • 简体中文
    • 繁體中文
    • English
    • Español

    我们欢迎您对翻译进行勘误或贡献更多语言。

    自定义代码 (style, script)

    可以在此修改 LOGO、修改色调、添加美化代码和统计代码等。

    WARNING

    自定义代码仅在游客首页生效,管理面板不生效。由于不同主题的代码不同,如确需修改管理面板中的内容,请修改 Docker 中的主题文件。

    默认主题更改进度条颜色、背景图片、导航栏等效果示例

    点击展开/收起
    html
    <style>
    +    
    Skip to content

    设置

    站点标题

    你可以在此项中自定义站点标题。

    管理员列表

    • 如果你修改了自己的 Github、Gitlab 或 Gitee 的用户名,需要在此项中同步修改,否则无法登录。多个用户请用逗号隔开:user1,user2
    • 如需更改管理员账户,请前往 /opt/nezha/dashboard/data/config.yaml,重新设置新的管理员 Client IDClient Secret

    界面主题

    在这里选择主页和管理界面主题,如果选项中没有某个已存在的主题,请更新面板。
    启用 Custom 主题前,你需要提前安装自定义主题,否则启用该项后,面板将无法正常显示。

    Language

    哪吒监控目前支持以下语言:

    • 简体中文
    • 繁體中文
    • English
    • Español

    我们欢迎您对翻译进行勘误或贡献更多语言。

    自定义代码 (style, script)

    可以在此修改 LOGO、修改色调、添加美化代码和统计代码等。

    WARNING

    自定义代码仅在游客首页生效,管理面板不生效。由于不同主题的代码不同,如确需修改管理面板中的内容,请修改 Docker 中的主题文件。

    默认主题更改进度条颜色、背景图片、导航栏等效果示例

    点击展开/收起
    html
    <style>
     /* 屏幕适配 */
     @media only screen and (min-width: 1200px) {
         .ui.container {
    @@ -330,8 +330,8 @@
     .hotaru-cover {
        background: url(https://s3.ax1x.com/2020/12/08/DzHv6A.jpg) center;
     }
    -</style>

    前台查看密码

    如果你不想向游客直接展示你的 Dashboard,可以在这里设置一个查看密码。设置密码后,需要输入密码才可以访问主页。

    未接入 CDN 的面板服务器域名/IP

    此项设置是使用一键脚本安装 Agent 的前提,详情请查看这里

    IP 变更提醒

    如果你希望当某个服务器的 IP 发生变更时收到通知,可以在这里进行设置。

    覆盖范围

    在这里选择一条规则,来确定需要监控哪些服务器,可以根据自己的需求进行选择。

    特定服务器

    配合覆盖范围的设置,在这里设置选定规则的排除项。

    提醒发送至指定的通知分组

    选择通知方式,通知方式请提前在“告警”页内设置。

    WARNING

    设置完成后,勾选启用时,通知生效

    通知中显示完整 IP 地址

    IP 变更通知默认隐藏完整 IP,如果你不希望隐藏,可以勾选“通知信息中显示完整 IP 地址”。

    禁止主页切换主题

    Dashboard 默认启用允许访客修改显示主题的功能,此功能只会影响单一访客,不会影响管理员在后台设置的启用主题。如果你不希望访客切换主题,可以勾选此项。

    - +</style>

    前台查看密码

    如果你不想向游客直接展示你的 Dashboard,可以在这里设置一个查看密码。设置密码后,需要输入密码才可以访问主页。

    未接入 CDN 的面板服务器域名/IP

    此项设置是使用一键脚本安装 Agent 的前提,详情请查看这里

    IP 变更提醒

    如果你希望当某个服务器的 IP 发生变更时收到通知,可以在这里进行设置。

    覆盖范围

    在这里选择一条规则,来确定需要监控哪些服务器,可以根据自己的需求进行选择。

    特定服务器

    配合覆盖范围的设置,在这里设置选定规则的排除项。

    提醒发送至指定的通知分组

    选择通知方式,通知方式请提前在“告警”页内设置。

    WARNING

    设置完成后,勾选启用时,通知生效

    通知中显示完整 IP 地址

    IP 变更通知默认隐藏完整 IP,如果你不希望隐藏,可以勾选“通知信息中显示完整 IP 地址”。

    禁止主页切换主题

    Dashboard 默认启用允许访客修改显示主题的功能,此功能只会影响单一访客,不会影响管理员在后台设置的启用主题。如果你不希望访客切换主题,可以勾选此项。

    + \ No newline at end of file diff --git a/guide/tasks.html b/guide/tasks.html index 8f4ec594..f4bae12b 100644 --- a/guide/tasks.html +++ b/guide/tasks.html @@ -6,13 +6,13 @@ 任务管理 | 哪吒监控 - + - + - - + + @@ -22,8 +22,8 @@ -
    Skip to content

    任务管理

    在任务区域中,可以设置计划任务,触发任务,多服务器批量执行任务

    哪吒监控支持推送命令到 Agent 执行,此功能非常灵活。使用此功能可以定期结合 restic、rclone 给服务器备份,定期重启某项服务来重置网络连接。也可以配合告警通知,在触发告警时执行某项任务,例如在 CPU 长时间高占用的情况下运行某个脚本。

    使用方法

    进入管理面板的“任务”页,点击“添加计划任务”。添加计划任务时,你需要填入以下参数:

    • 名称:自定义一个任务名称。

    • 任务类型:选择任务的类型。

      • 计划任务:按下方设置的计划时间,周期性执行任务。
      • 触发任务:仅被 API 或告警规则触发的任务,每次触发执行一次。
    • 计划:设置计划时间(使用触发任务类型时不生效),时间格式为:* * * * * *,分别对应秒 分 时 天 月 星期,详情见计划表达式格式
      例如:0 0 3 * * * 对应为“每天 3 点”。

    • 命令:设置需要执行的命令,就像写 Shell/Bat 脚本一样,但不推荐换行,多个命令使用 &&/& 连接。
      例如执行定期重启命令,可以在这里输入 reboot

    • 覆盖范围特定服务器:选择规则来确定哪些 Agent 执行计划任务,类似于“服务”页中的设置。使用触发任务类型时,可选择“由触发的服务器执行”。

    • 通知方式组:选择你已经在“告警”页设置好的通知方式,点击这里了解详情。

    • 推送成功的消息:勾选此项,任务执行成功后会触发消息通知。

    管理任务

    如需对已有的计划任务进行管理,可以前往管理面板中的“任务”页。选择一条任务配置,右侧的三个图标分别是:

    • 立即执行:点击后将忽略计划时间,立刻执行任务。
    • 编辑:点击可以修改任务配置。
    • 删除:删除这条计划任务。

    常见问题

    1. xxx 命令找不到
      如果运行失败,提示 xxx 命令找不到,可能是 PATH 环境变量的问题。在 Linux 服务器上,可以在命令开头加入 source ~/.bashrc,或者使用绝对路径执行命令。
    - +
    Skip to content

    任务管理

    在任务区域中,可以设置计划任务,触发任务,多服务器批量执行任务

    哪吒监控支持推送命令到 Agent 执行,此功能非常灵活。使用此功能可以定期结合 restic、rclone 给服务器备份,定期重启某项服务来重置网络连接。也可以配合告警通知,在触发告警时执行某项任务,例如在 CPU 长时间高占用的情况下运行某个脚本。

    使用方法

    进入管理面板的“任务”页,点击“添加计划任务”。添加计划任务时,你需要填入以下参数:

    • 名称:自定义一个任务名称。

    • 任务类型:选择任务的类型。

      • 计划任务:按下方设置的计划时间,周期性执行任务。
      • 触发任务:仅被 API 或告警规则触发的任务,每次触发执行一次。
    • 计划:设置计划时间(使用触发任务类型时不生效),时间格式为:* * * * * *,分别对应秒 分 时 天 月 星期,详情见计划表达式格式
      例如:0 0 3 * * * 对应为“每天 3 点”。

    • 命令:设置需要执行的命令,就像写 Shell/Bat 脚本一样,但不推荐换行,多个命令使用 &&/& 连接。
      例如执行定期重启命令,可以在这里输入 reboot

    • 覆盖范围特定服务器:选择规则来确定哪些 Agent 执行计划任务,类似于“服务”页中的设置。使用触发任务类型时,可选择“由触发的服务器执行”。

    • 通知方式组:选择你已经在“告警”页设置好的通知方式,点击这里了解详情。

    • 推送成功的消息:勾选此项,任务执行成功后会触发消息通知。

    管理任务

    如需对已有的计划任务进行管理,可以前往管理面板中的“任务”页。选择一条任务配置,右侧的三个图标分别是:

    • 立即执行:点击后将忽略计划时间,立刻执行任务。
    • 编辑:点击可以修改任务配置。
    • 删除:删除这条计划任务。

    常见问题

    1. xxx 命令找不到
      如果运行失败,提示 xxx 命令找不到,可能是 PATH 环境变量的问题。在 Linux 服务器上,可以在命令开头加入 source ~/.bashrc,或者使用绝对路径执行命令。
    + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 5734e4b8..f37073ad 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"en_us_case_case1.md":"CfKPbLY-","developer_index.md":"C1uE1zam","case_case2.md":"DXaI1-3R","en_us_guide_loginq.md":"BfbDl9No","en_us_guide_api.md":"Dhadt2Zn","en_us_case_case5.md":"jDhulcN5","en_us_guide_dashboardq.md":"Bz9jAGWH","guide_q1.md":"BUSO9id4","guide_q2.md":"BBAbRpo6","guide_q3.md":"CagGMPH_","guide_q5.md":"BUUiK4nq","en_us_guide_dashboard.md":"B7gz4EbR","case_case3.md":"PCpb7OZi","en_us_case_case3.md":"D2raU_Cg","case_case4.md":"BFMPRm8X","en_us_guide_q6.md":"DT7dOcsk","en_us_developer_index.md":"Da3SWKRC","case_case1.md":"7flQRwLq","guide_q4.md":"BL-FMeHE","en_us_case_case4.md":"DF1C-LPs","en_us_guide_q9.md":"PjlMz0sj","en_us_guide_notifications.md":"CUwq37az","en_us_case_index.md":"C5f8EIzi","en_us_guide_tasks.md":"DyZBtwTx","en_us_index.md":"CjA_EgyA","developer_theme.md":"ByIT4E3T","en_us_guide_q7.md":"D80IzPit","guide_agent.md":"3iJcRo-9","en_us_guide_settings.md":"CncAfweZ","en_us_guide_q5.md":"DeqM5j9_","developer_l10n.md":"BsVWQGr8","case_case5.md":"D6eVPDG0","en_us_developer_theme.md":"DgTf4kKp","en_us_guide_services.md":"DC8r5ABu","en_us_guide_q8.md":"BLI3Lh1m","en_us_developer_l10n.md":"3p8g9UEX","guide_notifications.md":"CXwE4fUQ","en_us_guide_q4.md":"CRmTk7RK","guide_tasks.md":"kkdtrBUw","guide_q6.md":"C_npCMzF","guide_q8.md":"BVdnUrYq","guide_q9.md":"zAYyd9tp","guide_servers.md":"hiKkZifO","en_us_guide_q2.md":"BsxDZ5g8","guide_services.md":"8cV6m5rQ","guide_settings.md":"ByGprVT6","en_us_guide_agentq.md":"D9qP08yH","index.md":"By99gOIN","guide_q7.md":"Bv5VXTwr","guide_dashboard.md":"Cp4jw4yd","guide_agentq.md":"CgyvfCYF","case_index.md":"DZlYHXzy","guide_dashboardq.md":"Co4eG-mb","guide_loginq.md":"CPRjXpJA","en_us_guide_q3.md":"Cdcnf_ee","en_us_guide_servers.md":"DVck-4a9","en_us_case_case2.md":"Dizq10SC","guide_api.md":"DkDrL-5p","en_us_guide_agent.md":"DFQk0ra6"} +{"case_case4.md":"CLv80UVh","case_case2.md":"4uyAHfsD","en_us_guide_agentq.md":"SuWMBkvJ","en_us_case_case3.md":"QFdIbPHW","developer_l10n.md":"CITBGPQ_","en_us_developer_index.md":"D7EjJwMx","developer_theme.md":"C7nIvTQY","en_us_guide_api.md":"Bcy523WL","en_us_developer_theme.md":"DHd3T-33","en_us_case_case2.md":"Dk5IBR67","en_us_guide_loginq.md":"CjimSdcs","en_us_case_index.md":"BvfYKeVX","en_us_case_case4.md":"eqL_yAps","en_us_case_case5.md":"DvQ5ulUH","case_case5.md":"CSW6RNTM","case_case3.md":"lZFAVPrS","developer_index.md":"Dj_O2aWk","guide_notifications.md":"DsP1kNmw","en_us_guide_dashboardq.md":"DSAC3eQ-","case_case1.md":"ik9QZ-1U","en_us_guide_q5.md":"BZSiv4Hq","en_us_guide_q4.md":"DevMMvgb","en_us_guide_agent.md":"BTcznE0X","en_us_guide_q6.md":"DGkqv3VF","en_us_guide_q2.md":"D5Ji7OZK","en_us_guide_q7.md":"DOn9EZF9","en_us_guide_notifications.md":"CL-PJ2A6","en_us_guide_servers.md":"CyIUroPx","en_us_guide_services.md":"Cj4pmBpZ","en_us_guide_q9.md":"B5R9jSOS","en_us_developer_l10n.md":"dRK4u8v8","en_us_guide_dashboard.md":"C5urJ5RO","en_us_case_case1.md":"BOjhq4Ov","case_index.md":"BII5D-PJ","guide_dashboard.md":"BogiLa2a","guide_loginq.md":"CtGwhKOR","guide_dashboardq.md":"Czt6F1H_","en_us_guide_settings.md":"D5wX62N_","guide_q6.md":"Bhp3UNn9","guide_q7.md":"DM1P_MdL","guide_q5.md":"BqUuEHdS","guide_q1.md":"aPThi2_Q","guide_q2.md":"hyWko7HR","guide_q3.md":"BXvXI6yl","guide_q4.md":"TH0LwwnV","en_us_guide_q8.md":"CTwNZRFI","en_us_index.md":"CWTAA0Zy","guide_agentq.md":"B5fwpWAq","guide_tasks.md":"DT7CPKIY","en_us_guide_tasks.md":"DhrHRxUc","guide_q9.md":"Dpc8e-wG","guide_q8.md":"gN0iDq6y","guide_services.md":"DcuJuPQ3","guide_agent.md":"BRhK2GFq","guide_api.md":"CBiBrYtm","guide_servers.md":"C5iJs4sd","index.md":"7JaFOP8N","guide_settings.md":"Dh5_uT5_","en_us_guide_q3.md":"DOD5Khax"} diff --git a/index.html b/index.html index 4390bba2..4067490c 100644 --- a/index.html +++ b/index.html @@ -6,13 +6,13 @@ 哪吒监控 | 使用文档 - + - + - - + + @@ -22,8 +22,8 @@ -
    Skip to content

    哪吒监控

    开源、轻量、易用的服务器监控与运维工具

    - +
    Skip to content

    哪吒监控

    开源、轻量、易用的服务器监控与运维工具

    + \ No newline at end of file