carbon / resourceproxy
Resource proxy for Neos Flow and Neos CMS
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:neos-carbon
Requires
- neos/flow: ^8.3 || ^9.0
README
This package offers the concept of resource proxies. Once activated, only the resources that are actually used are
downloaded just at the moment they are rendered. This is done by custom implementations of WritableFileSystemStorage
and ProxyAwareFileSystemSymlinkTarget
and works out of the box if you use this storage and target in you local
development environment. If you use other local storages, for example a local S3 storage, you can easily build your own
proxy aware versions implementing the interfaces ProxyAwareStorageInterface
and ProxyAwareTargetInterface
of this package.
Settings.yaml
The presets that are defined in the configuration path Carbon.ResourceProxy
.
Carbon: ResourceProxy: # The basis url of your project baseUri: https://your.server.tld # define an optional subDirectory (defaults to: '_Resources/Persistent/', trailing slash is required!) subDirectory: _Resources/Persistent/ # define wether or not the remote uses subdivideHashPathSegments subdivideHashPathSegment: false # curl options curlOptions: CURLOPT_USERPWD: very:secure
The settings should be added to the global Settings.yaml
of the project, so that every
developer with SSH-access to the remote server can easily clone the setup.
If you don't see the iamges, please consider run following flow commands:
flow flow:cache:flush flow flow:package:rescan flow media:clearthumbnails flow resource:publish
Installation
Carbon.ResourceProxy is available via packagist. Just add "carbon/resourceProxy" : "^1.0"
to the require-dev section
of the composer.json or run composer require --dev carbon/resourceProxy
.
Credits
Most of the code is from Sitegeist.MagicWand, but only the resource proxy part.