Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Allow storage configuration override in config/system/addit…
…ional.php Record-based storage configuration can be overridden by defining $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['aus_driver_amazon_s3']['storage'] or $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['aus_driver_amazon_s3']['storage_X'] (where X is the UID of the storage record) in config/system/additional.php. This makes it possible to use environment variable based storage configuration, and no secret keys need to be stored in the database anymore. Storage configuration in the database record is merged with the generic 'storage' configuration, which then with the uid-specific storage config. Example for defining the credentials in config/system/additional.php: $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['aus_driver_amazon_s3']['storage_23'] = [ 'key' => $_ENV['S3_KEY'], 'secretKey' => $_ENV['S3_SECRET'], ];
- Loading branch information