feat(media): support local and s3 upload providers

This commit is contained in:
2026-02-12 12:02:31 +01:00
parent 5becba602c
commit 19738b77d8
11 changed files with 407 additions and 41 deletions

View File

@@ -10,9 +10,17 @@ CMS_SUPPORT_EMAIL="support@cms.local"
CMS_SUPPORT_PASSWORD="change-me-support-password"
CMS_SUPPORT_NAME="Technical Support"
CMS_SUPPORT_LOGIN_KEY="support-access-change-me"
CMS_MEDIA_STORAGE_PROVIDER="local"
CMS_MEDIA_UPLOAD_MAX_BYTES="26214400"
# Optional: override local media storage directory for admin upload adapter.
# CMS_MEDIA_LOCAL_STORAGE_DIR="/absolute/path/to/media-storage"
# S3/object-storage config (required when CMS_MEDIA_STORAGE_PROVIDER="s3").
# CMS_MEDIA_S3_BUCKET="cms-media"
# CMS_MEDIA_S3_REGION="eu-central-1"
# CMS_MEDIA_S3_ACCESS_KEY_ID=""
# CMS_MEDIA_S3_SECRET_ACCESS_KEY=""
# CMS_MEDIA_S3_ENDPOINT="" # optional (e.g. MinIO, R2)
# CMS_MEDIA_S3_FORCE_PATH_STYLE="false"
NEXT_PUBLIC_APP_VERSION="0.1.0-dev"
NEXT_PUBLIC_GIT_SHA="local"
# Optional dev bypass role for admin middleware. Leave empty to require auth login.