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:
parent
5b2896dc09
commit
96a9803e30
4 changed files with 68 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue