Skip to content

Commit

Permalink
更新文档:
Browse files Browse the repository at this point in the history
1. 增加宝塔应用商店部署方式
2. 增加捐赠版交流群入口
  • Loading branch information
zhaojun1998 committed Oct 24, 2024
1 parent 8ad738d commit 1de7034
Show file tree
Hide file tree
Showing 15 changed files with 80 additions and 8 deletions.
4 changes: 3 additions & 1 deletion docs/config/config-path.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import TabItem from '@theme/TabItem';
- [Windows](/install/os-windows#config)
- [Docker](/install/os-docker#config)
- [Docker Compose](/install/os-docker#config2)
- [宝塔](/install/os-baota#config)
- [宝塔应用商店](/install/os-baota-new#config)
- [宝塔传统方式](/install/os-baota#config)



</TabItem>
Expand Down
61 changes: 61 additions & 0 deletions docs/install/os-baota-new.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 宝塔应用商店

:::tip 提示

宝塔应用商店需宝塔版本为 9.2.0 及以上版本,如果低于此版本请先升级宝塔或用[传统的宝塔安装方式](os-baota)

:::

## 运行

1. 登录宝塔面板,点击左侧菜单的 `Docker`,在应用商店搜索 `ZFile`,点击**安装**

<img className={'sm:w-6/12 '} src="/img/2024/10/24/baota-new-1.png"></img>


2. 填写**基本信息**,点击**确定**

<img className={'sm:w-6/12 '} src="/img/2024/10/24/baota-new-2.png"></img>

3. 运行起来后访问即可。


## 数据目录

可通过以下方式进入数据目录,包含数据库、日志等:

<img className={'sm:w-6/12 '} src="/img/2024/10/24/baota-new-3.png"></img>


### 在 ZFile 中访问宿主机文件

宝塔默认将上面的数据目录下的 `mnt` 目录映射到容器的 `/data/zfile` 目录,在 ZFile 本地存储填写路径时,填写 `/data/zfile` 即可。

<img className={'sm:w-8/12 '} src="/img/2024/10/24/baota-new-4.png"></img>
<img className={'sm:w-8/12 '} src="/img/2024/10/24/baota-new-5.png"></img>

如想映射宿主机的其他目录,可编辑数据目录下的 `docker-compose.yml` 文件,如我想在容器内用 `/www/wwwroot/xxx.com`

<img className={'sm:w-8/12 '} src="/img/2024/10/24/baota-new-6.png"></img>
<img className={'sm:w-8/12 '} src="/img/2024/10/24/baota-new-7.png"></img>


### 配置文件 {#config}

**如需修改配置文件**则需要先在宿主机下载配置文件,然后映射到容器内:
下载`https://c.jun6.net/ZFILE-PRO/application.properties`文件到数据目录下,然后编辑 `docker-compose.yml` 文件,
添加 `- ${APP_PATH}/application.properties:/root/application.properties`,如下图:

<img className={'sm:w-8/12 '} src="/img/2024/10/24/baota-new-8.png"></img>
<img className={'sm:w-8/12 '} src="/img/2024/10/24/baota-new-9.png"></img>
<img className={'sm:w-8/12 '} src="/img/2024/10/24/baota-new-10.png"></img>

第一次配置需重建容器后生效,之后修改配置文件 `application.properties` 的话,重启容器即可生效。


## 其他设置

宝塔 `nginx` 默认只支持上传最大 `50MB` 的文件,可去以下页面进行设置:

<img className={'sm:w-10/12 '} src="/img/2022/08/16/uxPAXY.png"></img>
<img className={'sm:w-6/12 '} src="/img/2022/08/16/Jx2P2s.png"></img>
2 changes: 1 addition & 1 deletion docs/install/os-baota.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ apt install -y openjdk-8-jre-headless unzip
宝塔 `nginx` 默认只支持上传最大 `50MB` 的文件,可去以下页面进行设置:

<img className={'sm:w-10/12 '} src="/img/2022/08/16/uxPAXY.png"></img>
<img className={'sm:w-10/12 '} src="/img/2022/08/16/Jx2P2s.png"></img>
<img className={'sm:w-6/12 '} src="/img/2022/08/16/Jx2P2s.png"></img>

## 帮我安装🔍
[技术支持](/support/)
4 changes: 4 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ const config = {
"label": "QQ 交流群(2群)",
"href": "https://qm.qq.com/cgi-bin/qm/qr?k=JJcfuIVYiPJ5GDa5_gm8UFLrgWwC9ptD&jump_from=webapi&authKey=dSdYtP2MZxQuTF+Z0+XhWuARuVFUhmoRWWUYRa8/JHLZ8H8bqPzLdabkOc7l5eO8"
},
{
"label": "捐赠版交流群(授权后台查看)",
"href": "https://www.zfile.vip/login"
},
]
},
{
Expand Down
17 changes: 11 additions & 6 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ const sidebars = {
slug: '/install-os'
},
items: [
{
id: 'install/os-baota-new',
type: 'doc',
label: '宝塔应用商店'
},
{
id: 'install/os-baota',
type: 'doc',
label: '宝塔传统方式'
},
{
id: 'install/os-linux',
type: 'doc',
Expand All @@ -54,12 +64,7 @@ const sidebars = {
id: 'install/os-docker',
type: 'doc',
label: 'Docker'
},
{
id: 'install/os-baota',
type: 'doc',
label: '宝塔'
},
}
]
},
{
Expand Down
Binary file added static/img/2024/10/24/baota-new-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/2024/10/24/baota-new-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/2024/10/24/baota-new-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/2024/10/24/baota-new-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/2024/10/24/baota-new-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/2024/10/24/baota-new-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/2024/10/24/baota-new-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/2024/10/24/baota-new-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/2024/10/24/baota-new-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/2024/10/24/baota-new-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1de7034

Please sign in to comment.