punktde / syncedfilesystemstorage
Sync resources to a second server
Package info
github.com/punktDe/syncedfilesystemstorage
Type:neos-package
pkg:composer/punktde/syncedfilesystemstorage
Requires
- neos/neos: ^8.0 || ^9.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This package takes care of syncing files, handled by the Flow resource management, to one or several other hosts using rsync. This can be used to build a lightweight multi application server environment without having a central file storage.
Prerequisite
- Rsync is installed on all participating servers
- The Neos base path is the same on all servers
- Public key authentication is configured for the user that runs php
Installation
Install the package using
composer require punktde/syncedfilesystemstorage
Configure the target hosts. For the first host just provide the environment variables RESOURCE_SYNC_TARGET_HOST and RESOURCE_SYNC_TARGET_USER.
It is recommended to limit the sync user to only allow rsync and to set a jail root to the resource directory. In this case, also configure the environment variable RESOURCE_SYNC_TARGET_ROOT_DIRECTORY to the jail root directory.