mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 17:41:09 +02:00
✨ feat(auth): add avatar upload with S3/MinIO and subscription plans seed
- Add StorageModule for avatar uploads via S3/MinIO - Create presigned URL endpoint for direct browser uploads - Create direct upload endpoint (multipart/form-data) - Add manacore-storage bucket to shared-storage package - Add manacore-storage bucket to docker-compose.dev.yml - Create subscription plans seed script (pnpm db:seed:plans) - Plans: Free (150 credits), Pro (2000/€9.99/mo), Enterprise (10000/€49/mo) - Update TODO list with completed tasks
This commit is contained in:
parent
1e025b7e72
commit
c2842e2546
15 changed files with 756 additions and 102 deletions
|
|
@ -76,6 +76,7 @@ services:
|
|||
entrypoint: >
|
||||
/bin/sh -c "
|
||||
mc alias set myminio http://minio:9000 $${MINIO_ROOT_USER:-minioadmin} $${MINIO_ROOT_PASSWORD:-minioadmin};
|
||||
mc mb --ignore-existing myminio/manacore-storage;
|
||||
mc mb --ignore-existing myminio/picture-storage;
|
||||
mc mb --ignore-existing myminio/chat-storage;
|
||||
mc mb --ignore-existing myminio/manadeck-storage;
|
||||
|
|
@ -87,6 +88,7 @@ services:
|
|||
mc mb --ignore-existing myminio/inventory-storage;
|
||||
mc mb --ignore-existing myminio/planta-storage;
|
||||
mc mb --ignore-existing myminio/projectdoc-storage;
|
||||
mc anonymous set download myminio/manacore-storage;
|
||||
mc anonymous set download myminio/picture-storage;
|
||||
mc anonymous set download myminio/planta-storage;
|
||||
mc anonymous set download myminio/inventory-storage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue