diff --git a/apps/archivebox/0.7.3/data.yml b/apps/archivebox/0.7.3/data.yml new file mode 100644 index 000000000..8cb57dd82 --- /dev/null +++ b/apps/archivebox/0.7.3/data.yml @@ -0,0 +1,67 @@ +additionalProperties: + formFields: + - default: "/home/archivebox" + edit: true + envKey: ARCHIVEBOX_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 8000 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "archivebox" + edit: true + envKey: ADMIN_USERNAME + labelZh: 管理员用户名 + labelEn: Admin Username + required: true + type: text + - default: "archivebox" + edit: true + envKey: ADMIN_PASSWORD + labelZh: 管理员密码 + labelEn: Admin Password + required: true + type: password + - default: "True" + edit: true + envKey: PUBLIC_INDEX + labelZh: 是否公开快照列表 + labelEn: Whether to make the snapshot list public + required: true + type: select + values: + - label: 公开 + value: "True" + - label: 私密 + value: "False" + - default: "True" + edit: true + envKey: PUBLIC_SNAPSHOTS + labelZh: 是否公开快照内容 + labelEn: Whether to make snapshot content public + required: true + type: select + values: + - label: 公开 + value: "True" + - label: 私密 + value: "False" + - default: "False" + edit: true + envKey: PUBLIC_ADD_VIEW + labelZh: 是否允许匿名用户提交存档 + labelEn: Whether to allow anonymous users to submit archives + required: true + type: select + values: + - label: 允许 + value: "True" + - label: 禁止 + value: "False" diff --git a/apps/archivebox/0.7.3/docker-compose.yml b/apps/archivebox/0.7.3/docker-compose.yml new file mode 100644 index 000000000..60d51a9a0 --- /dev/null +++ b/apps/archivebox/0.7.3/docker-compose.yml @@ -0,0 +1,57 @@ +networks: + 1panel-network: + external: true + +services: + archivebox: + image: archivebox/archivebox:0.7.3 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8000 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${ARCHIVEBOX_ROOT_PATH}/data:/data + environment: + - TZ=Asia/Shanghai + - ALLOWED_HOSTS=* + - CSRF_TRUSTED_ORIGINS=http://localhost:8000 + - SEARCH_BACKEND_ENGINE=sonic + - SEARCH_BACKEND_HOST_NAME=archivebox-sonic + - SEARCH_BACKEND_PASSWORD=${ADMIN_PASSWORD:-} + + archivebox-scheduler: + image: archivebox/archivebox:0.7.3 + container_name: scheduler-${CONTAINER_NAME} + command: schedule --foreground --update --every=day + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${ARCHIVEBOX_ROOT_PATH}/data:/data + environment: + - TZ=Asia/Shanghai + - TIMEOUT=120 + - SEARCH_BACKEND_ENGINE=sonic + - SEARCH_BACKEND_HOST_NAME=archivebox-sonic + - SEARCH_BACKEND_PASSWORD=${ADMIN_PASSWORD:-} + + archivebox-sonic: + image: archivebox/sonic:latest + container_name: sonic-${CONTAINER_NAME} + expose: + - 1491 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${ARCHIVEBOX_ROOT_PATH}/sonic:/var/lib/sonic/store + environment: + - TZ=Asia/Shanghai + - SEARCH_BACKEND_PASSWORD=${ADMIN_PASSWORD:-} diff --git a/apps/archivebox/0.7.3/envs/default.env b/apps/archivebox/0.7.3/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/apps/archivebox/0.7.3/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/archivebox/0.7.3/envs/global.env b/apps/archivebox/0.7.3/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/apps/archivebox/0.7.3/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/archivebox/0.7.3/scripts/init.sh b/apps/archivebox/0.7.3/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/archivebox/0.7.3/scripts/init.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/archivebox/0.7.3/scripts/uninstall.sh b/apps/archivebox/0.7.3/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/archivebox/0.7.3/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/archivebox/0.7.3/scripts/upgrade.sh b/apps/archivebox/0.7.3/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/archivebox/0.7.3/scripts/upgrade.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/archivebox/README.md b/apps/archivebox/README.md new file mode 100644 index 000000000..dd664b203 --- /dev/null +++ b/apps/archivebox/README.md @@ -0,0 +1,23 @@ +# ArchiveBox + +开源自托管网页存档。支持 URL、浏览器历史记录、书签、Pocket、Pinboard 等,保存 HTML、JS、PDF、媒体等 + +![ArchiveBox](https://file.lifebus.top/imgs/archivebox.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 简介 + +ArchiveBox 是一款自托管应用程序,可让您以多种格式保存网站内容。 + +我们的目标是让您的数据立即可用,并以其他程序可直接读取的格式保存。输出格式包括标准 HTML、PNG、PDF、TXT、JSON、WARC 和 +SQLite,保证在未来数十年内均可读取。ArchiveBox 还支持 CLI、REST API 和 Webhook,方便您与其他服务集成。 + +如果不进行积极的保护,互联网上的一切最终都会消失或退化。 + +ArchiveBox 是一款开源工具,可帮助组织和个人归档公共和私人网络内容,同时保留对数据的控制权。它可用于保存书签副本、保留法律案件证据、备份 +Facebook/Insta/Flickr 上的照片或 YouTube/Soundcloud 等媒体资源、保存研究论文等等。 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/archivebox/data.yml b/apps/archivebox/data.yml new file mode 100644 index 000000000..acfed497c --- /dev/null +++ b/apps/archivebox/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: archivebox + name: ArchiveBox + tags: + - WebSite + - Local + shortDescZh: 开源自托管网页存档 + shortDescEn: Self-hosted web page archiving + type: website + crossVersionUpdate: true + limit: 0 + website: https://archivebox.io/ + github: https://github.com/ArchiveBox/ArchiveBox/ + document: https://github.com/ArchiveBox/ArchiveBox/ diff --git a/apps/archivebox/logo.png b/apps/archivebox/logo.png new file mode 100644 index 000000000..04462b21c Binary files /dev/null and b/apps/archivebox/logo.png differ