TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.
TypeScript graphviewkanban-boardnodejsproductivityproject-managementself-hostedtasktask-managementtask-managertodoapp
fix: removed minio
Nikolai Giman9ee6c7a24951
diff --git a/api/dev-containers-test/README.md b/api/dev-containers-test/README.mdindex a5d854f..84bfb5d 100644--- a/api/dev-containers-test/README.md+++ b/api/dev-containers-test/README.md@@ -1,12 +1,12 @@# Dev Containers TestThis directory contains test configurations and scripts for Docker containers used in development for testing.-## MinIO (S3-compatible file storage)+## SeaweedFS (S3-compatible file storage)-`docker-compose.minio.yml` starts MinIO on `localhost:9000` (console on `:9001`) and creates two buckets: `taskview` for local development and `taskview-test` for the files integration tests (`src/tv-modules/files/__tests__/*.integration.spec.ts`). Those tests expect it to be up:+`docker-compose.seaweedfs.yml` starts SeaweedFS with its S3 API on `localhost:8333` and creates two buckets: `taskview` for local development and `taskview-test` for the files integration tests (`src/tv-modules/files/__tests__/*.integration.spec.ts`). Those tests expect it to be up:```bash-docker compose -f docker-compose.minio.yml up -d+docker compose -f docker-compose.seaweedfs.yml up -d --wait```-To point a dev API at it: `FILE_STORAGE_PROVIDER=s3`, `FILE_STORAGE_S3_BUCKET=taskview`, `FILE_STORAGE_S3_ENDPOINT=http://localhost:9000`, `FILE_STORAGE_S3_REGION=us-east-1`, `FILE_STORAGE_S3_ACCESS_KEY=minioadmin`, `FILE_STORAGE_S3_SECRET_KEY=minioadmin`, `FILE_STORAGE_S3_FORCE_PATH_STYLE=true`.+To point a dev API at it: `FILE_STORAGE_PROVIDER=s3`, `FILE_STORAGE_S3_BUCKET=taskview`, `FILE_STORAGE_S3_ENDPOINT=http://localhost:8333`, `FILE_STORAGE_S3_REGION=us-east-1`, `FILE_STORAGE_S3_ACCESS_KEY=taskview`, `FILE_STORAGE_S3_SECRET_KEY=taskview-secret`, `FILE_STORAGE_S3_FORCE_PATH_STYLE=true`.diff --git a/api/dev-containers-test/docker-compose.minio.yml b/api/dev-containers-test/docker-compose.minio.ymldeleted file mode 100644index 377e8b6..0000000--- a/api/dev-containers-test/docker-compose.minio.yml+++ /dev/null@@ -1,32 +0,0 @@-services:- minio:- image: quay.io/minio/minio@sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e- restart: unless-stopped- command: server /data --console-address ":9001"- environment:- MINIO_ROOT_USER: minioadmin- MINIO_ROOT_PASSWORD: minioadmin- ports:- - "9000:9000"- - "9001:9001"- volumes:- - minio-data:/data- healthcheck:- test: ["CMD", "mc", "ready", "local"]- interval: 5s- timeout: 5s- retries: 10- minio-init:- image: quay.io/minio/mc@sha256:a7fe349ef4bd8521fb8497f55c6042871b2ae640607cf99d9bede5e9bdf11727- restart: "no"- depends_on:- minio:- condition: service_healthy- entrypoint: >- /bin/sh -c "- mc alias set local http://minio:9000 minioadmin minioadmin &&- mc mb --ignore-existing local/taskview &&- mc mb --ignore-existing local/taskview-test- "-volumes:- minio-data:diff --git a/api/dev-containers-test/docker-compose.seaweedfs.yml b/api/dev-containers-test/docker-compose.seaweedfs.ymlnew file mode 100644index 0000000..9fff82b--- /dev/null+++ b/api/dev-containers-test/docker-compose.seaweedfs.yml@@ -0,0 +1,19 @@+services:+ seaweedfs:+ image: chrislusf/seaweedfs:4.50@sha256:c2658820e763294a9e9de7b36c81e59b879e3459148351aee4e31a126ca64860+ restart: unless-stopped+ environment:+ AWS_ACCESS_KEY_ID: taskview+ AWS_SECRET_ACCESS_KEY: taskview-secret+ S3_BUCKET: taskview,taskview-test+ ports:+ - "8333:8333"+ volumes:+ - seaweedfs-data:/data+ healthcheck:+ test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8333/status"]+ interval: 5s+ timeout: 5s+ retries: 20+volumes:+ seaweedfs-data:diff --git a/api/src/tv-modules/files/__tests__/FileStorageConfigReader.spec.ts b/api/src/tv-modules/files/__tests__/FileStorageConfigReader.spec.tsindex 8a51493..7700dae 100644--- a/api/src/tv-modules/files/__tests__/FileStorageConfigReader.spec.ts+++ b/api/src/tv-modules/files/__tests__/FileStorageConfigReader.spec.ts@@ -37,7 +37,7 @@ describe('FileStorageConfigReader', () => {const config = FileStorageConfigReader.fromEnv({FILE_STORAGE_PROVIDER: 's3',FILE_STORAGE_LOCAL_DIR: '/var/files',- FILE_STORAGE_S3_ENDPOINT: 'http://minio:9000',+ FILE_STORAGE_S3_ENDPOINT: 'http://s3.internal:8333',FILE_STORAGE_S3_FORCE_PATH_STYLE: 'true',FILE_MAX_SIZE_MB: '5',...s3Env,@@ -45,7 +45,7 @@ describe('FileStorageConfigReader', () => {expect(config.active).toBe('s3');expect(config.maxFileSizeBytes).toBe(5 * 1024 * 1024);expect(config.providers.local).toEqual({ type: 'local', rootDir: '/var/files' });- expect(config.providers.s3).toMatchObject({ type: 's3', bucket: 'b', endpoint: 'http://minio:9000', forcePathStyle: true });+ expect(config.providers.s3).toMatchObject({ type: 's3', bucket: 'b', endpoint: 'http://s3.internal:8333', forcePathStyle: true });});it('does not configure local when s3 is active and no local dir is given', () => {diff --git a/api/src/tv-modules/files/__tests__/S3FileStorage.integration.spec.ts b/api/src/tv-modules/files/__tests__/S3FileStorage.integration.spec.tsindex b20edd9..0c84ea6 100644--- a/api/src/tv-modules/files/__tests__/S3FileStorage.integration.spec.ts+++ b/api/src/tv-modules/files/__tests__/S3FileStorage.integration.spec.ts@@ -5,12 +5,12 @@ import { FileStorageConfigReader } from '../storage/FileStorageConfigReader';import { S3FileStorage } from '../storage/S3FileStorage';import type { S3FileStorageConfig } from '../storage/storage.types';-// Runs against MinIO from dev-containers-test/docker-compose.minio.yml (see vitest.config.ts env).+// Runs against SeaweedFS from dev-containers-test/docker-compose.seaweedfs.yml (see vitest.config.ts env).const config = FileStorageConfigReader.fromEnv().providers.s3 as S3FileStorageConfig;const storage = new S3FileStorage(config);const read = async (stream: Readable) => Buffer.concat(await stream.toArray());-describe('S3FileStorage (MinIO)', () => {+describe('S3FileStorage (S3-compatible server)', () => {it('stores, reads, checks and deletes an object by key', async () => {const key = `it/${Date.now()}/small`;const stored = await storage.put({ key, stream: Readable.from([Buffer.from('payload')]), mimeType: 'text/plain' });diff --git a/api/vitest.config.ts b/api/vitest.config.tsindex a950457..2979912 100644--- a/api/vitest.config.ts+++ b/api/vitest.config.ts@@ -20,12 +20,12 @@ export default defineConfig({FILE_STORAGE_PROVIDER: 'local',FILE_STORAGE_LOCAL_DIR: './.test-data/files',FILE_MAX_SIZE_MB: '1',- // MinIO from dev-containers-test/docker-compose.minio.yml+ // SeaweedFS from dev-containers-test/docker-compose.seaweedfs.ymlFILE_STORAGE_S3_BUCKET: 'taskview-test',FILE_STORAGE_S3_REGION: 'us-east-1',- FILE_STORAGE_S3_ENDPOINT: 'http://localhost:9000',- FILE_STORAGE_S3_ACCESS_KEY: 'minioadmin',- FILE_STORAGE_S3_SECRET_KEY: 'minioadmin',+ FILE_STORAGE_S3_ENDPOINT: 'http://localhost:8333',+ FILE_STORAGE_S3_ACCESS_KEY: 'taskview',+ FILE_STORAGE_S3_SECRET_KEY: 'taskview-secret',FILE_STORAGE_S3_FORCE_PATH_STYLE: 'true',...conf,APP_URL: 'http://localhost:3000',diff --git a/docs/4.configuration/1.environment-variables.md b/docs/4.configuration/1.environment-variables.mdindex e46d860..36a9fec 100644--- a/docs/4.configuration/1.environment-variables.md+++ b/docs/4.configuration/1.environment-variables.md@@ -262,11 +262,11 @@ Attachments are **off until a provider is configured**: `FILE_STORAGE_PROVIDER`| `FILE_MAX_SIZE_MB` | No | `10` | Maximum size of one uploaded file in megabytes. || `FILE_STORAGE_LOCAL_DIR` | For `local` | - | Directory for the `local` provider. In Docker mount it as a volume, e.g. `/taskview/files:/usr/src/app/data/files`. || `FILE_STORAGE_S3_BUCKET` | For `s3` | - | Bucket name. |-| `FILE_STORAGE_S3_REGION` | For `s3` | - | Region, e.g. `us-east-1`. Any value works for MinIO. |-| `FILE_STORAGE_S3_ENDPOINT` | No | - | Custom endpoint for S3-compatible storage (MinIO, Cloudflare R2, Backblaze B2). Leave empty for AWS. |+| `FILE_STORAGE_S3_REGION` | For `s3` | - | Region, e.g. `us-east-1`. Most self-hosted S3-compatible servers accept any value. |+| `FILE_STORAGE_S3_ENDPOINT` | No | - | Custom endpoint for S3-compatible storage (SeaweedFS, Garage, Cloudflare R2, Backblaze B2). Leave empty for AWS. || `FILE_STORAGE_S3_ACCESS_KEY` | For `s3` | - | Access key id. || `FILE_STORAGE_S3_SECRET_KEY` | For `s3` | - | Secret access key. |-| `FILE_STORAGE_S3_FORCE_PATH_STYLE` | No | `false` | Set to `true` for MinIO and most self-hosted S3-compatible servers. |+| `FILE_STORAGE_S3_FORCE_PATH_STYLE` | No | `false` | Set to `true` for most self-hosted S3-compatible servers. |### Storage quotas@@ -289,7 +289,7 @@ Usage is a live sum of the files in the organization's projects, so deleting a fTaskView does not encrypt file contents itself: the API writes the bytes it received and the database keeps only metadata. Encrypt at the storage layer instead; the API does not need to know about it.-- `s3` - enable server-side encryption on the bucket (SSE-S3 or SSE-KMS on AWS, SSE on MinIO). Uploads and downloads keep working unchanged.+- `s3` - enable server-side encryption on the bucket (SSE-S3 or SSE-KMS on AWS, or the equivalent on your S3-compatible server). Uploads and downloads keep working unchanged.- `local` - keep `FILE_STORAGE_LOCAL_DIR` on an encrypted disk or volume (for example LUKS on Linux). Back up the encryption key separately from the data.This protects the files on a lost disk, a leaked backup or an exposed bucket. Anyone who can call the API with file permissions still reads the files normally - that part is governed by the project roles `file_can_view` and `file_can_manage`.