mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Compare commits
5 Commits
239f44aac6
...
c9107a1469
Author | SHA1 | Date | |
---|---|---|---|
|
c9107a1469 | ||
|
a8cbf9589a | ||
|
81c6f2ef32 | ||
|
64814fcf40 | ||
|
e485eeda0c |
38
README.md
38
README.md
@ -5,35 +5,23 @@
|
||||
|
||||
</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 部署所需环境变量
|
||||
支持部署环境:
|
||||
|
||||
NODE_VERSION 22.9.0
|
||||
<br>
|
||||
BUN_VERSION 1.1.29
|
||||
- Vercel
|
||||
- Cloudflare
|
||||
- Docker
|
||||
|
||||
#### 环境变量
|
||||
[说明文档](https://nezhadash-docs.vercel.app)
|
||||
|
||||
| 变量名 | 含义 | 示例 |
|
||||
| ------------------------------ | ------------------------------ | ------------------------------------------------------------- |
|
||||
| NezhaBaseUrl | nezha 面板地址 | http://120.x.x.x:8008 |
|
||||
| NezhaAuth | nezha 面板 API Token | 5hAY3QX6Nl9B3Uxxxx26KMvOMyXS1Udi |
|
||||
| SitePassword | 页面密码 | **默认**:无密码 |
|
||||
| DefaultLocale | 面板默认显示语言 | **默认**:en [简中:zh 繁中:zh-t 英语:en 日语:ja] |
|
||||
| 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 | 自定义描述(无多语言支持) | |
|
||||
### 如何更新
|
||||
|
||||
[更新教程](https://buycoffee.top/blog/tech/nezha-upgrade)
|
||||
|
||||
### 环境变量
|
||||
|
||||
[环境变量介绍](https://nezhadash-docs.vercel.app/environment)
|
||||
|
||||

|
||||

|
||||
|
@ -110,11 +110,11 @@ export default function ServerOverviewClient() {
|
||||
{t("p_3463-3530_Totalbandwidth")}
|
||||
</p>
|
||||
{data?.result ? (
|
||||
<section className="flex flex-col sm:flex-row pt-[4px] sm:items-center items-start gap-2">
|
||||
<p className="text-[13px] font-semibold">
|
||||
<section className="flex flex-col sm:flex-row pt-[8px] sm:items-center items-start gap-1">
|
||||
<p className="text-[12px] text-nowrap font-semibold">
|
||||
↑{formatBytes(data?.total_out_bandwidth)}
|
||||
</p>
|
||||
<p className="text-[13px] font-semibold">
|
||||
<p className="text-[12px] text-nowrap font-semibold">
|
||||
↓{formatBytes(data?.total_in_bandwidth)}
|
||||
</p>
|
||||
</section>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nezha-dash",
|
||||
"version": "1.2.3",
|
||||
"version": "1.2.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -p 3020",
|
||||
|
Loading…
Reference in New Issue
Block a user