Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 878 Bytes

2024-03-13-media-fastly-proxy.md

File metadata and controls

23 lines (21 loc) · 878 Bytes
title issue author author_email
Media fastly proxy
NEXT-34343
oskroblin Skroblin
o.skroblin@shopware.com

Core

  • 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

Upgrade Information

Configure Fastly as media proxy

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)%'