Enhance S3 error handling in StorageService and update .env.example documentation

- Added detailed error handling for S3 operations in StorageService to interpret and throw appropriate exceptions based on the response.
- Updated .env.example to clarify the S3 endpoint configuration for MinIO in Docker.
This commit is contained in:
Первов Артем
2026-04-21 01:02:10 +03:00
parent 327d3a95a3
commit 7735988ed5
2 changed files with 61 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ KEYCLOAK_AUDIENCE="toir-backend"
KEYCLOAK_JWKS_URL=""
# MinIO / S3 (вложения оборудования)
# В Docker: имя сервиса/контейнера MinIO и порт API S3 (обычно 9000), НЕ URL консоли (9001) и не NPM, если он отдаёт не S3 XML.
S3_ENDPOINT="http://localhost:9000"
S3_REGION="eu-central-1"
S3_BUCKET="media"