From 320c98744a48945a7410ffe9e35f1ca4ae49b0dc Mon Sep 17 00:00:00 2001 From: okxlin <61420215+okxlin@users.noreply.github.com> Date: Fri, 26 Jun 2026 19:13:09 +0800 Subject: [PATCH 1/2] Fix FileCodeBox latest image Resolve #2909 by replacing the beta FileCodeBox app version with latest, updating the image tag and README metadata, and adding minimal lifecycle scripts. --- apps/filecodebox/README.md | 28 +++++++++++++++---- apps/filecodebox/data.yml | 1 + apps/filecodebox/{beta => latest}/.env.sample | 0 apps/filecodebox/{beta => latest}/data.yml | 0 .../{beta => latest}/docker-compose.yml | 2 +- apps/filecodebox/latest/scripts/init.sh | 3 ++ apps/filecodebox/latest/scripts/uninstall.sh | 2 ++ apps/filecodebox/latest/scripts/upgrade.sh | 3 ++ 8 files changed, 33 insertions(+), 6 deletions(-) rename apps/filecodebox/{beta => latest}/.env.sample (100%) rename apps/filecodebox/{beta => latest}/data.yml (100%) rename apps/filecodebox/{beta => latest}/docker-compose.yml (88%) create mode 100755 apps/filecodebox/latest/scripts/init.sh create mode 100755 apps/filecodebox/latest/scripts/uninstall.sh create mode 100755 apps/filecodebox/latest/scripts/upgrade.sh 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 88% rename from apps/filecodebox/beta/docker-compose.yml rename to apps/filecodebox/latest/docker-compose.yml index 3f667b47a..d3951fbfd 100644 --- a/apps/filecodebox/beta/docker-compose.yml +++ b/apps/filecodebox/latest/docker-compose.yml @@ -8,7 +8,7 @@ services: - "${PANEL_APP_PORT_HTTP}:12345" volumes: - "${DATA_PATH}:/app/data" - image: lanol/filecodebox:beta + image: "lanol/filecodebox:latest" labels: createdBy: "Apps" 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 From f2e89f4429a3c1a1f1891915603bb2c464986001 Mon Sep 17 00:00:00 2001 From: okxlin <61420215+okxlin@users.noreply.github.com> Date: Sat, 27 Jun 2026 01:05:19 +0800 Subject: [PATCH 2/2] Clean FileCodeBox compose whitespace --- apps/filecodebox/latest/docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/filecodebox/latest/docker-compose.yml b/apps/filecodebox/latest/docker-compose.yml index d3951fbfd..ae25abe8b 100644 --- a/apps/filecodebox/latest/docker-compose.yml +++ b/apps/filecodebox/latest/docker-compose.yml @@ -9,9 +9,9 @@ services: volumes: - "${DATA_PATH}:/app/data" image: "lanol/filecodebox:latest" - labels: + labels: createdBy: "Apps" -networks: - 1panel-network: +networks: + 1panel-network: external: true