diff --git a/apps/filecodebox/README.md b/apps/filecodebox/README.md index c34be7835..2cb83d0ff 100644 --- a/apps/filecodebox/README.md +++ b/apps/filecodebox/README.md @@ -1,5 +1,24 @@ # FileCodeBox +## 产品介绍 +FileCodeBox 是一个用于匿名口令分享文本和文件的轻量文件快递柜。 + +## 主要功能 +- 通过匿名口令分享文本和文件。 +- 使用 `/app/data` 持久化应用数据。 +- 提供后台入口用于管理文件分享,首次启动后在初始化页面设置管理员密码。 + +## 访问说明 +安装完成后,通过应用表单中的 HTTP 端口访问 Web UI,并按初始化页面设置管理员密码;后台入口为 `/#/admin`。 + +## Introduction +FileCodeBox is a lightweight file locker for sharing text and files with anonymous passcodes. + +## Features +- Share text and files with anonymous passcodes. +- Persist application data under `/app/data`. +- Provide an admin entrypoint for managing shared files. Set the admin password on the initialization page after first launch. + ## 应用简介 文件快递柜-匿名口令分享文本,文件,像拿快递一样取文件。 @@ -8,8 +27,8 @@ ## 部署说明 - 本应用使用 Docker Compose 在 1Panel 中部署。 - 应用分类:工具。 -- 支持架构:amd64。 -- 可选版本:`beta`。 +- 支持架构:amd64、arm64。 +- 可选版本:`latest`。 - 安装后按应用表单中的端口访问 Web UI、SSH 或对应服务。 ## 端口 @@ -25,9 +44,8 @@ 升级或迁移前,请在 1Panel 中备份上述数据目录。 ## 使用说明 -- 后端地址:`/#/admin` - -- 后台密码:`FileCodeBox2023` +- 首次访问时按初始化页面设置管理员密码。 +- 后台入口:`/#/admin` ## 参考资料 - 官网: diff --git a/apps/filecodebox/data.yml b/apps/filecodebox/data.yml index ed419421a..4f2553bbc 100644 --- a/apps/filecodebox/data.yml +++ b/apps/filecodebox/data.yml @@ -28,3 +28,4 @@ additionalProperties: document: https://github.com/vastsa/FileCodeBox architectures: - amd64 + - arm64 diff --git a/apps/filecodebox/beta/.env.sample b/apps/filecodebox/latest/.env.sample similarity index 100% rename from apps/filecodebox/beta/.env.sample rename to apps/filecodebox/latest/.env.sample diff --git a/apps/filecodebox/beta/data.yml b/apps/filecodebox/latest/data.yml similarity index 100% rename from apps/filecodebox/beta/data.yml rename to apps/filecodebox/latest/data.yml diff --git a/apps/filecodebox/beta/docker-compose.yml b/apps/filecodebox/latest/docker-compose.yml similarity index 76% rename from apps/filecodebox/beta/docker-compose.yml rename to apps/filecodebox/latest/docker-compose.yml index 3f667b47a..ae25abe8b 100644 --- a/apps/filecodebox/beta/docker-compose.yml +++ b/apps/filecodebox/latest/docker-compose.yml @@ -8,10 +8,10 @@ services: - "${PANEL_APP_PORT_HTTP}:12345" volumes: - "${DATA_PATH}:/app/data" - image: lanol/filecodebox:beta - labels: + image: "lanol/filecodebox:latest" + labels: createdBy: "Apps" -networks: - 1panel-network: +networks: + 1panel-network: external: true diff --git a/apps/filecodebox/latest/scripts/init.sh b/apps/filecodebox/latest/scripts/init.sh new file mode 100755 index 000000000..5f589b708 --- /dev/null +++ b/apps/filecodebox/latest/scripts/init.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set -euo pipefail +mkdir -p "${DATA_PATH:-./data}" diff --git a/apps/filecodebox/latest/scripts/uninstall.sh b/apps/filecodebox/latest/scripts/uninstall.sh new file mode 100755 index 000000000..ab8a8d674 --- /dev/null +++ b/apps/filecodebox/latest/scripts/uninstall.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker-compose down --volumes diff --git a/apps/filecodebox/latest/scripts/upgrade.sh b/apps/filecodebox/latest/scripts/upgrade.sh new file mode 100755 index 000000000..9879df4c3 --- /dev/null +++ b/apps/filecodebox/latest/scripts/upgrade.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set -euo pipefail +exit 0