- Flysystem S3 adapter configured for MinIO - Vich uploader switched to Flysystem S3 storage - Liip imagine loader/resolver on S3 - S3 client service with path style endpoint for MinIO - Nelmio security: CSP, clickjacking, permissions policy, external redirects - CSP dev: allow Vite HMR (localhost:5173) - CSP prod: nonce scripts, restricted form-action and connect-src - composer: flysystem-bundle, flysystem-aws-s3-v3, nelmio/security-bundle Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
495 B
YAML
16 lines
495 B
YAML
vich_uploader:
|
|
db_driver: orm
|
|
metadata:
|
|
type: attribute
|
|
storage: flysystem
|
|
|
|
mappings:
|
|
event_image:
|
|
uri_prefix: '%env(S3_ENDPOINT)%/%env(S3_BUCKET)%/uploads/events'
|
|
upload_destination: default.storage
|
|
namer: Vich\UploaderBundle\Naming\SmartUniqueNamer
|
|
directory_namer:
|
|
service: Vich\UploaderBundle\Naming\CurrentDateDirectoryNamer
|
|
options:
|
|
date_time_format: 'Y/m'
|