added Google Cloud Storage support

This commit is contained in:
Mark van Holsteijn
2021-05-28 22:39:50 +02:00
parent b6460616ba
commit 342270d6dd
19 changed files with 1621 additions and 16 deletions

View File

@@ -153,6 +153,16 @@ class Configuration
'pwd' => null,
'opt' => array(PDO::ATTR_PERSISTENT => true),
);
} elseif (
$section == 'model_options' && in_array(
$this->_configuration['model']['class'],
array('GoogleCloudStorage')
)
) {
$values = array(
'bucket' => getenv('PRIVATEBIN_GCS_BUCKET') ? getenv('PRIVATEBIN_GCS_BUCKET') : null,
'prefix' => 'pastes',
);
}
// "*_options" sections don't require all defaults to be set