- 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>
40 lines
963 B
YAML
40 lines
963 B
YAML
liip_imagine:
|
|
driver: imagick
|
|
|
|
loaders:
|
|
flysystem_loader:
|
|
flysystem:
|
|
filesystem_service: default.storage
|
|
|
|
data_loader: flysystem_loader
|
|
|
|
resolvers:
|
|
flysystem_resolver:
|
|
flysystem:
|
|
filesystem_service: default.storage
|
|
root_url: '%env(S3_ENDPOINT)%/%env(S3_BUCKET)%'
|
|
cache_prefix: cache
|
|
|
|
cache: flysystem_resolver
|
|
|
|
webp:
|
|
generate: true
|
|
quality: 80
|
|
|
|
filter_sets:
|
|
thumbnail:
|
|
quality: 80
|
|
filters:
|
|
thumbnail: { size: [300, 300], mode: inset }
|
|
background: { size: [300, 300], position: center, color: '#ffffff' }
|
|
|
|
medium:
|
|
quality: 85
|
|
filters:
|
|
thumbnail: { size: [600, 600], mode: inset }
|
|
|
|
large:
|
|
quality: 90
|
|
filters:
|
|
thumbnail: { size: [1200, 1200], mode: inset }
|