承接 samjuk/m2-module-media-proxy 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

samjuk/m2-module-media-proxy

最新稳定版本:v1.0.1

Composer 安装命令:

composer require samjuk/m2-module-media-proxy

包简介

Proxy missing images from an upstream environment

README 文档

README

Supported Magento Versions CI Workflow Status GitHub Release

This module enables you to proxy/download missing images from an upstream source, weather that is a staging or production site.

Especially useful when working on multiple large projects, by keeping the local media footprint slim. And providing a zero touch approach for new developers to get started working on local projects.

It can either proxy missing media to the upstream, which is the best approach for maximizing disk space. Or it can cache the proxied media, which will improve TTFB for missing images whilst sacrificing some disk space savings. And improve compatibility with third party image related extensions.

The intent of this module is to be run on development & integration environments, specifically when working with multiple large installations.

Alternatives approaches to achieve similar functionality on a infrastructure level can be found over on my Documentation Site

Installation

Whilst the default configuration of this module does nothing. I strongly suggest enabling & configuring this module via your env.php.

composer require samjuk/m2-module-media-proxy
php bin/magento module:enable SamJUK_MediaProxy && php bin/magento cache:flush

Configuration

Configuration can be handled via System configuration, from within the Media Proxy menu of the SamJUK Tab.

Or can be set via the CLI

php bin/magento config:set --lock-env samjuk_media_proxy/general/enabled 1
php bin/magento config:set --lock-env samjuk_media_proxy/general/mode 'proxy'
php bin/magento config:set --lock-env samjuk_media_proxy/general/upstream_host 'https://www.example.com'
Option Config Path Default Description
Enabled samjuk_media_proxy/general/enabled 0 Feature flag to toggle functionality of the module
Mode samjuk_media_proxy/general/mode proxy Proxy (302 redirect) requests to the upstream, or download the files on demand. Options are: proxy
Upstream Host samjuk_media_proxy/general/upstream_host - FQDN URL of the upstream host to fetch missing images from (e.g https://www.example.com).

统计信息

  • 总下载量: 648
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-12