tinect / media-staging
Some plugin description
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 2
Open Issues: 0
Type:shopware-platform-plugin
Requires
- shopware/core: ~6.4
This package is auto-updated.
Last update: 2024-11-07 11:53:21 UTC
README
This plugin has been removed due to some updates in the core and the ability to easily add the ability to the webserver.
Following you find examples. Replace MY_CDN_ADDRESS.
Apache:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/(media|thumbnail)/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ https://MY_CDN_ADDRESS/$1 [QSA,L]
</IfModule>
Caddyserver:
@mediaPaths {
path /media/* /thumbnail/*
}
handle @mediaPaths {
@notStatic not file
redir @notStatic https://MY_CDN_ADDRESS/{path}
file_server
}
Nginx:
location ~ ^/(media|thumbnail)/ {
try_files $uri @cdn;
}
location @cdn {
return 302 https://MY_CDN_ADDRESS$request_uri;
}