Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit bceac4a

Browse files
authored
Merge pull request #37 from wanghe-fit2cloud/pr@main@1panel
docs: Install New API documentation via 1Panel
2 parents b81b2fb + 6fbf825 commit bceac4a

File tree

10 files changed

+77
-4
lines changed

10 files changed

+77
-4
lines changed
226 KB
Loading

docs/assets/1panel/1panel.jpg

195 KB
Loading
148 KB
Loading
188 KB
Loading
189 KB
Loading

docs/getting-started.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,23 @@ hide:
8989
background: linear-gradient(135deg, #2457c5 0%, #2b88d9 100%);
9090
}
9191

92-
/* 宝塔面板卡片 */
92+
/* 1Panel 面板卡片 */
9393
.md-typeset .grid.cards:nth-of-type(1) > ul > li:nth-child(3) {
94+
background: linear-gradient(135deg, #7303c0 0%, #ec38bc 100%);
95+
}
96+
97+
/* 宝塔面板卡片 */
98+
.md-typeset .grid.cards:nth-of-type(1) > ul > li:nth-child(4) {
9499
background: linear-gradient(135deg, #f27121 0%, #e94057 100%);
95100
}
96101

97102
/* 集群部署卡片 */
98-
.md-typeset .grid.cards:nth-of-type(1) > ul > li:nth-child(4) {
103+
.md-typeset .grid.cards:nth-of-type(1) > ul > li:nth-child(5) {
99104
background: linear-gradient(135deg, #654ea3 0%, #8862cf 100%);
100105
}
101106

102107
/* 本地开发部署卡片 */
103-
.md-typeset .grid.cards:nth-of-type(1) > ul > li:nth-child(5) {
108+
.md-typeset .grid.cards:nth-of-type(1) > ul > li:nth-child(6) {
104109
background: linear-gradient(135deg, #1e6e42 0%, #28a745 100%);
105110
}
106111

@@ -284,6 +289,16 @@ hide:
284289

285290
[了解更多 →](installation/docker-installation.md){ .more-link }
286291

292+
- :material-server:{ .twemoji }
293+
294+
**1Panel 面板部署**
295+
296+
---
297+
298+
通过 1Panel 面板图形化界面快速部署,适合不熟悉命令行的用户
299+
300+
[了解更多 →](installation/1panel-installation.md){ .more-link }
301+
287302
- :material-server:{ .twemoji }
288303

289304
**宝塔面板部署**
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## 安装 1Panel 面板
2+
3+
!!! tip "安装 1Panel 面板"
4+
- 关于 1Panel 的安装部署与基础功能介绍,请参考 [1Panel 官方文档](https://1panel.cn/docs/)
5+
- 在完成了 1Panel 的安装部署后,根据提示网址打开浏览器进入 1Panel 面板
6+
7+
![1panel](../assets/1panel/1panel.jpg)
8+
9+
## 安装 New API
10+
11+
!!! tip "搜索应用"
12+
进入应用商店应用列表,在【AI】分类下找到 New API 应用进行安装
13+
14+
![1panel-newapi](../assets/1panel/1panel-newapi.jpg)
15+
16+
!!! tip "安装应用"
17+
在安装页面配置 New API 应用参数:
18+
19+
- 名称:要创建的 New API 应用的名称
20+
- 版本:选择 New API 的版本
21+
- 端口:New API 应用的服务端口
22+
- 时区:输入服务器所在时区(默认 Asia/Shanghai)
23+
- 高级设置:务必勾选端口外部访问
24+
25+
![newapi-setting](../assets/1panel/newapi-setting.jpg)
26+
27+
!!! tip "确认安装"
28+
点击确认开始安装,页面自将动跳转到已安装应用列表,等待 New API 应用状态变为已启动
29+
30+
![newapi-start](../assets/1panel/newapi-start.jpg)
31+
32+
## 访问 New API
33+
34+
!!! tip "访问应用"
35+
- 在 `已安装` 页面,点击 `跳转` 即可进入 New API 的 WebUI 页面
36+
- 使用前建议在 `面板设置` 页面设置好 `默认访问地址`
37+
38+
![newapi-visit](../assets/1panel/newapi-visit.jpg)

docs/installation/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ hide:
113113

114114
[查看教程 →](docker-installation.md)
115115

116+
- :material-server:{ .twemoji }
117+
118+
**1Panel 面板部署**
119+
120+
---
121+
122+
使用 1Panel 面板进行可视化部署:
123+
124+
[查看教程 →](1panel-installation.md)
125+
116126
- :material-server:{ .twemoji }
117127

118128
**宝塔面板部署**

docs/installation/system-update.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,16 @@ docker compose up -d
5858
docker compose pull && docker compose down && docker compose up -d
5959
```
6060

61-
### 方法三:使用宝塔面板更新
61+
### 方法三:使用 1Panel 面板更新
62+
63+
如果您使用 1Panel 面板部署,可以按照以下步骤更新:
64+
65+
1. 登录 1Panel 面板,进入 **应用商店** -> **可升级页面**
66+
2. 找到 New API 应用,点击 **升级** 按钮
67+
3. 选择 **要升级到的目标版本**
68+
4. 点击 **确认** 按钮,系统将自动拉取最新镜像升级应用
69+
70+
### 方法四:使用宝塔面板更新
6271

6372
如果您使用宝塔面板部署,可以按照以下步骤更新:
6473

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ nav:
136136
- 🔧 部署方式:
137137
- Docker 部署: installation/docker-installation.md
138138
- Docker Compose 部署: installation/docker-compose-installation.md
139+
- 1Panel 面板部署: installation/1panel-installation.md
139140
- 宝塔面板部署: installation/bt-docker-installation.md
140141
- 集群部署: installation/cluster-deployment.md
141142
- 本地开发部署: installation/local-development.md

0 commit comments

Comments
 (0)