- 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.
21 lines
927 B
Plaintext
21 lines
927 B
Plaintext
PORT=3000
|
||
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/toir"
|
||
CORS_ALLOWED_ORIGINS="http://localhost:5173,https://toir-frontend.greact.ru"
|
||
KEYCLOAK_ISSUER_URL="https://sso.greact.ru/realms/toir"
|
||
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"
|
||
S3_ACCESS_KEY_ID=""
|
||
S3_SECRET_ACCESS_KEY=""
|
||
S3_FORCE_PATH_STYLE="true"
|
||
# Если бакет публичный: базовый URL для прямых ссылок (без presign)
|
||
S3_PUBLIC_BASE_URL=""
|
||
# Префикс ключей объектов в бакете
|
||
S3_OBJECT_PREFIX="toir-light/equipment"
|
||
S3_PRESIGN_EXPIRES_SECONDS="3600"
|