Compare commits

..

No commits in common. "c9107a146936f7b5f0f40785f33c62134373da6b" and "239f44aac688149ff910b6b56ebecef1c8d234f7" have entirely different histories.

3 changed files with 29 additions and 17 deletions

View File

@ -5,23 +5,35 @@
</div> </div>
### 部署 | 一键部署到 Vercel-推荐 | Docker部署 | Cloudflare部署 | 如何更新? |
| ----------------------------------------------------- | --------------------------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------- |
| [部署简易教程](https://buycoffee.top/blog/tech/nezha) | [Docker 部署教程](https://buycoffee.top/blog/tech/nezha-docker) | [Cloudflare 部署教程](https://buycoffee.top/blog/tech/nezha-cloudflare) | [更新教程](https://buycoffee.top/blog/tech/nezha-upgrade) |
支持部署环境: #### Cloudflare 部署所需环境变量
- Vercel NODE_VERSION 22.9.0
- Cloudflare <br>
- Docker BUN_VERSION 1.1.29
[说明文档](https://nezhadash-docs.vercel.app) #### 环境变量
### 如何更新 | 变量名 | 含义 | 示例 |
| ------------------------------ | ------------------------------ | ------------------------------------------------------------- |
[更新教程](https://buycoffee.top/blog/tech/nezha-upgrade) | NezhaBaseUrl | nezha 面板地址 | http://120.x.x.x:8008 |
| NezhaAuth | nezha 面板 API Token | 5hAY3QX6Nl9B3Uxxxx26KMvOMyXS1Udi |
### 环境变量 | SitePassword | 页面密码 | **默认**:无密码 |
| DefaultLocale | 面板默认显示语言 | **默认**en [简中:zh 繁中:zh-t 英语:en 日语:ja] |
[环境变量介绍](https://nezhadash-docs.vercel.app/environment) | ForceShowAllServers | 是否强制显示所有服务器 | **默认**false |
| NEXT_PUBLIC_NezhaFetchInterval | 获取数据间隔(毫秒) | **默认**2000 |
| NEXT_PUBLIC_ShowFlag | 是否显示旗帜 | **默认**false |
| NEXT_PUBLIC_DisableCartoon | 是否禁用卡通人物 | **默认**false |
| NEXT_PUBLIC_ShowTag | 是否显示标签 | **默认**false |
| NEXT_PUBLIC_ShowNetTransfer | 是否显示流量信息 | **默认**false |
| NEXT_PUBLIC_ForceUseSvgFlag | 是否强制使用SVG旗帜 | **默认**false |
| NEXT_PUBLIC_FixedTopServerName | 是否固定卡片顶部显示服务器名称 | **默认**false |
| NEXT_PUBLIC_CustomLogo | 自定义Logo | **示例**https://nezha-cf.buycoffee.top/apple-touch-icon.png |
| NEXT_PUBLIC_CustomTitle | 自定义标题 | |
| NEXT_PUBLIC_CustomDescription | 自定义描述(无多语言支持) | |
![screen](/.github/shot-1.png) ![screen](/.github/shot-1.png)
![screen](/.github/shot-2.png) ![screen](/.github/shot-2.png)

View File

@ -110,11 +110,11 @@ export default function ServerOverviewClient() {
{t("p_3463-3530_Totalbandwidth")} {t("p_3463-3530_Totalbandwidth")}
</p> </p>
{data?.result ? ( {data?.result ? (
<section className="flex flex-col sm:flex-row pt-[8px] sm:items-center items-start gap-1"> <section className="flex flex-col sm:flex-row pt-[4px] sm:items-center items-start gap-2">
<p className="text-[12px] text-nowrap font-semibold"> <p className="text-[13px] font-semibold">
{formatBytes(data?.total_out_bandwidth)} {formatBytes(data?.total_out_bandwidth)}
</p> </p>
<p className="text-[12px] text-nowrap font-semibold"> <p className="text-[13px] font-semibold">
{formatBytes(data?.total_in_bandwidth)} {formatBytes(data?.total_in_bandwidth)}
</p> </p>
</section> </section>

View File

@ -1,6 +1,6 @@
{ {
"name": "nezha-dash", "name": "nezha-dash",
"version": "1.2.4", "version": "1.2.3",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 3020", "dev": "next dev -p 3020",