1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-04 02:14:06 +02:00

add option to limit uploads to a single key

This commit is contained in:
Robin Appelman 2018-04-24 23:24:47 +02:00
commit 96a9803e30
4 changed files with 68 additions and 12 deletions

View file

@ -28,6 +28,7 @@ $storeHost = getenv('DEMO_HOST') ?: '';
$parserUrl = getenv('PARSER_URL') ?: '';
$appRoot = getenv('APP_ROOT') ?: '';
$editKey = getenv('EDIT_SECRET') ?: '';
$uploadKey = getenv('UPLOAD_KEY') ?: '';
$factory = new \RandomLib\Factory();
$generator = $factory->getMediumStrengthGenerator();
@ -42,7 +43,8 @@ $container = new Container(
$storeRoot,
$storeHost,
$appRoot,
$editKey
$editKey,
$uploadKey
);
return $container;