title | issue | author | author_email |
---|---|---|---|
Media fastly proxy |
NEXT-34343 |
oskroblin Skroblin |
- Added
MediaReverseProxy
which allows to proxy media requests to Fastly or any other CDN - Added
FastlyMediaReverseProxy
, which allows native support for Fastly - Added
showpare.cdn.fastly
config to enable Fastly as a media proxy - Added
MediaPathChangedEvent
, which is dispatched when the media path is changed on file system level
When you are using Fastly as a media proxy, you should configure this inside shopware, to make sure that the media urls are purged correctly.
Enabling Fastly as a media proxy can be done by setting the shopware.cdn.fastly
configuration (for example with an env variable):
shopware:
fastly:
api_key: '%env(FASTLY_API_KEY)%'