Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Allow storage configuration override in config/system/addit… #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 6, 2024

  1. [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'],
    ];
    cweiske committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    2358c16 View commit details
    Browse the repository at this point in the history