diff --git a/crates/filebrowser-quantum/README.md b/crates/filebrowser-quantum/README.md deleted file mode 100644 index 1a0e6b6..0000000 --- a/crates/filebrowser-quantum/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# FileBrowser Quantum - -This crate deploys [FileBrowser Quantum](https://github.com/gtsteffaniak/filebrowser) as an OSCAR exposed service for browsing a mounted storage folder from the web UI. - -## Deployment defaults - -- `name: filebrowser-quantum` -- `memory: 512Mi` -- `cpu: 0.5` -- `image: ghcr.io/gtsteffaniak/filebrowser:latest` -- `api_port: 80` - -## Existing Volume - -The example FDL mounts an existing OSCAR volume at `/data`, and FileBrowser exposes that path as its default source: - -```text -/data -``` - -Before deploying, set `volume.name` to the existing volume you want to browse. The example currently targets: - -- `volume.name: openclaw-volume` -- `volume.mount_path` - -## Access - -The service is exposed at: - -```text -/system/services//exposed/ -``` - -OSCAR ingress authentication is disabled with `set_auth: false` because FileBrowser provides its own login screen. - -Application access: - -- user: `admin` -- password: `FILEBROWSER_ADMIN_PASSWORD` if provided, otherwise `OSCAR_SERVICE_TOKEN` - -OSCAR injects `OSCAR_SERVICE_NAME`, `OSCAR_SERVICE_TOKEN`, and `OSCAR_SERVICE_BASE_PATH` in the container. The startup script uses those variables directly to configure FileBrowser. - -## Notes - -- FileBrowser stores its runtime config, database, and cache in `/home/filebrowser/data`. -- Keep the service exposed with `rewrite_target: true` so FileBrowser runs under the OSCAR base path. diff --git a/crates/filebrowser-quantum/fdl.yml b/crates/filebrowser-quantum/fdl.yml deleted file mode 100644 index ab7f712..0000000 --- a/crates/filebrowser-quantum/fdl.yml +++ /dev/null @@ -1,21 +0,0 @@ -functions: - oscar: - - oscar-cluster: - name: filebrowser-quantum - cpu: "0.5" - memory: 512Mi - image: ghcr.io/gtsteffaniak/filebrowser:1.2.4-stable - script: script.sh - log_level: INFO - volume: - name: you-volume-name - mount_path: /data - expose: - min_scale: 1 - max_scale: 1 - api_port: 80 - cpu_threshold: 80 - rewrite_target: true - set_auth: false - health_path: "/" - probe_mode: direct diff --git a/crates/filebrowser-quantum/icon.svg b/crates/filebrowser-quantum/icon.svg deleted file mode 100644 index 6adbbf7..0000000 --- a/crates/filebrowser-quantum/icon.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/crates/filebrowser-quantum/ro-crate-metadata.json b/crates/filebrowser-quantum/ro-crate-metadata.json deleted file mode 100644 index 3713310..0000000 --- a/crates/filebrowser-quantum/ro-crate-metadata.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "@context": [ - "https://w3id.org/ro/crate/1.1/context" - ], - "@graph": [ - { - "@type": "CreativeWork", - "@id": "ro-crate-metadata.json", - "conformsTo": { - "@id": "https://w3id.org/ro/crate/1.1" - }, - "about": { - "@id": "./" - } - }, - { - "@id": "./", - "@type": [ - "Dataset", - "Service", - "SoftwareApplication" - ], - "datePublished": "2026-04-27", - "version": "0.1.0", - "URL": "https://github.com/grycap/oscar-hub/tree/main/crates/filebrowser-quantum", - "name": "FileBrowser Quantum", - "description": "OSCAR exposed service that deploys FileBrowser Quantum to browse an existing OSCAR volume through a web-based file manager.", - "license": { - "@id": "https://www.apache.org/licenses/LICENSE-2.0" - }, - "applicationCategory": "OSCAR Service", - "memoryRequirements": "512 MiB", - "processorRequirements": [ - "0.5 vCPU", - "0 GPU" - ], - "serviceType": "exposed", - "isBasedOn": [ - { - "@id": "https://github.com/gtsteffaniak/filebrowser" - }, - { - "@id": "https://github.com/grycap/oscar" - } - ], - "softwareRequirements": [ - { - "@id": "#software-filebrowser-quantum" - } - ], - "author": { - "@id": "#author" - }, - "hasPart": [ - { - "@id": "fdl.yml" - }, - { - "@id": "script.sh" - }, - { - "@id": "README.md" - }, - { - "@id": "icon.svg" - } - ] - }, - { - "@id": "fdl.yml", - "@type": [ - "File", - "SoftwareSourceCode" - ], - "name": "FileBrowser Quantum Service Definition", - "encodingFormat": "text/yaml" - }, - { - "@id": "script.sh", - "@type": [ - "File", - "SoftwareSourceCode" - ], - "name": "FileBrowser Quantum Service Script", - "encodingFormat": "text/x-shellscript" - }, - { - "@id": "README.md", - "@type": [ - "File", - "TextDigitalDocument" - ], - "name": "Deployment Notes", - "encodingFormat": "text/markdown" - }, - { - "@id": "icon.svg", - "@type": [ - "File", - "ImageObject" - ], - "name": "Service Icon", - "encodingFormat": "image/svg+xml" - }, - { - "@id": "#author", - "@type": "Organization", - "name": "GRyCAP", - "url": "https://www.grycap.upv.es/" - }, - { - "@id": "https://www.apache.org/licenses/LICENSE-2.0", - "@type": "CreativeWork", - "name": "Apache License 2.0", - "identifier": "SPDX:Apache-2.0" - }, - { - "@id": "https://github.com/gtsteffaniak/filebrowser", - "@type": "SoftwareApplication", - "name": "FileBrowser Quantum", - "url": "https://github.com/gtsteffaniak/filebrowser", - "description": "Web-based file manager for simple deployment." - }, - { - "@id": "https://github.com/grycap/oscar", - "@type": "SoftwareApplication", - "name": "OSCAR", - "description": "Serverless platform for event-driven and exposed containerized services." - }, - { - "@id": "#software-filebrowser-quantum", - "@type": "SoftwareApplication", - "name": "FileBrowser Quantum", - "url": "https://github.com/gtsteffaniak/filebrowser", - "softwareVersion": "latest" - } - ] -} diff --git a/crates/filebrowser-quantum/script.sh b/crates/filebrowser-quantum/script.sh deleted file mode 100644 index 0f778c6..0000000 --- a/crates/filebrowser-quantum/script.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -set -eu - -FILEBROWSER_ADMIN_PASSWORD="${FILEBROWSER_ADMIN_PASSWORD:-${OSCAR_SERVICE_TOKEN:-}}" -: "${FILEBROWSER_ADMIN_PASSWORD:?FILEBROWSER_ADMIN_PASSWORD or OSCAR_SERVICE_TOKEN is required}" -export FILEBROWSER_ADMIN_PASSWORD - -SERVICE_NAME="${OSCAR_SERVICE_NAME:-filebrowser-quantum}" -BASE_PATH="${OSCAR_SERVICE_BASE_PATH:-/system/services/${SERVICE_NAME}/exposed}" -BASE_URL="${BASE_PATH%/}/" - -mkdir -p /data /home/filebrowser/data -rm -f /home/filebrowser/data/database.db /home/filebrowser/data/database.db.bak - -cat > /home/filebrowser/data/config.yaml <