From 9d4b8dacd28af3629926e944b7985fe64044971a Mon Sep 17 00:00:00 2001 From: "mamonov.ep" Date: Fri, 12 Dec 2025 17:13:30 +0300 Subject: [PATCH] Use env variable for max file size limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Frontend: read VITE_MAX_FILE_SIZE_MB from env - Update .env.example files with limits πŸ€– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .env.example | 4 ++++ frontend/.env.example | 1 + frontend/src/components/tracks/UploadTrack.vue | 11 +++++++---- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 7d18f8b..4950136 100644 --- a/.env.example +++ b/.env.example @@ -12,3 +12,7 @@ S3_ACCESS_KEY=your-access-key S3_SECRET_KEY=your-secret-key S3_BUCKET_NAME=enigfm S3_REGION=ru-1 + +# Limits +MAX_FILE_SIZE_MB=10 +MAX_STORAGE_GB=90 diff --git a/frontend/.env.example b/frontend/.env.example index ac23f0c..f5dabbb 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,2 +1,3 @@ VITE_API_URL=http://localhost:4001 VITE_WS_URL=ws://localhost:4001 +VITE_MAX_FILE_SIZE_MB=10 diff --git a/frontend/src/components/tracks/UploadTrack.vue b/frontend/src/components/tracks/UploadTrack.vue index c15ee61..88f2847 100644 --- a/frontend/src/components/tracks/UploadTrack.vue +++ b/frontend/src/components/tracks/UploadTrack.vue @@ -1,7 +1,7 @@