implemented S3 storage backend

added sample configuration + aws php sdk version

coding style cleanup
This commit is contained in:
Felix J. Ogris 2022-10-20 23:23:01 +02:00
parent 2e2c70ed15
commit ee212b1a33
7 changed files with 546 additions and 2 deletions

View file

@ -157,6 +157,22 @@ class Configuration
'prefix' => 'pastes',
'uniformacl' => false,
);
} elseif (
$section == 'model_options' && in_array(
$this->_configuration['model']['class'],
array('S3Storage')
)
) {
$values = array(
'region' => null,
'version' => null,
'endpoint' => null,
'accesskey' => null,
'secretkey' => null,
'use_path_style_endpoint' => null,
'bucket' => null,
'prefix' => '',
);
}
// "*_options" sections don't require all defaults to be set