mirror of
https://github.com/nextcloud/docker.git
synced 2025-07-21 14:48:05 +02:00
Merge b6ed00278b
into 69c1e4a000
This commit is contained in:
commit
56945a8bf8
1 changed files with 8 additions and 0 deletions
|
@ -40,6 +40,14 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) {
|
||||||
$CONFIG['objectstore']['arguments']['secret'] = '';
|
$CONFIG['objectstore']['arguments']['secret'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getenv('OBJECTSTORE_S3_SESSION_TOKEN_FILE')) {
|
||||||
|
$CONFIG['objectstore']['arguments']['session_token'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SESSION_TOKEN_FILE')));
|
||||||
|
} elseif (getenv('OBJECTSTORE_S3_SESSION_TOKEN')) {
|
||||||
|
$CONFIG['objectstore']['arguments']['session_token'] = getenv('OBJECTSTORE_S3_SESSION_TOKEN');
|
||||||
|
} else {
|
||||||
|
$CONFIG['objectstore']['arguments']['session_token'] = '';
|
||||||
|
}
|
||||||
|
|
||||||
if (getenv('OBJECTSTORE_S3_SSE_C_KEY_FILE')) {
|
if (getenv('OBJECTSTORE_S3_SSE_C_KEY_FILE')) {
|
||||||
$CONFIG['objectstore']['arguments']['sse_c_key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SSE_C_KEY_FILE')));
|
$CONFIG['objectstore']['arguments']['sse_c_key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SSE_C_KEY_FILE')));
|
||||||
} elseif (getenv('OBJECTSTORE_S3_SSE_C_KEY')) {
|
} elseif (getenv('OBJECTSTORE_S3_SSE_C_KEY')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue