File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 'class ' => '\OC\Files\ObjectStore\S3 ' ,
1010 'arguments ' => array (
1111 'bucket ' => getenv ('OBJECTSTORE_S3_BUCKET ' ),
12- 'key ' => getenv ('OBJECTSTORE_S3_KEY ' ) ?: '' ,
13- 'secret ' => getenv ('OBJECTSTORE_S3_SECRET ' ) ?: '' ,
1412 'region ' => getenv ('OBJECTSTORE_S3_REGION ' ) ?: '' ,
1513 'hostname ' => getenv ('OBJECTSTORE_S3_HOST ' ) ?: '' ,
1614 'port ' => getenv ('OBJECTSTORE_S3_PORT ' ) ?: '' ,
2422 )
2523 )
2624 );
25+
26+ if (getenv ('OBJECTSTORE_S3_KEY_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_KEY_FILE ' ))) {
27+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_KEY_FILE ' )));
28+ } elseif (getenv ('OBJECTSTORE_S3_KEY ' )) {
29+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = getenv ('OBJECTSTORE_S3_KEY ' );
30+ } else {
31+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = '' ;
32+ }
33+
34+ if (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ))) {
35+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_SECRET_FILE ' )));
36+ } elseif (getenv ('OBJECTSTORE_S3_SECRET ' )) {
37+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = getenv ('OBJECTSTORE_S3_SECRET ' );
38+ } else {
39+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = '' ;
40+ }
2741}
Original file line number Diff line number Diff line change 99 'class ' => '\OC\Files\ObjectStore\S3 ' ,
1010 'arguments ' => array (
1111 'bucket ' => getenv ('OBJECTSTORE_S3_BUCKET ' ),
12- 'key ' => getenv ('OBJECTSTORE_S3_KEY ' ) ?: '' ,
13- 'secret ' => getenv ('OBJECTSTORE_S3_SECRET ' ) ?: '' ,
1412 'region ' => getenv ('OBJECTSTORE_S3_REGION ' ) ?: '' ,
1513 'hostname ' => getenv ('OBJECTSTORE_S3_HOST ' ) ?: '' ,
1614 'port ' => getenv ('OBJECTSTORE_S3_PORT ' ) ?: '' ,
2422 )
2523 )
2624 );
25+
26+ if (getenv ('OBJECTSTORE_S3_KEY_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_KEY_FILE ' ))) {
27+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_KEY_FILE ' )));
28+ } elseif (getenv ('OBJECTSTORE_S3_KEY ' )) {
29+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = getenv ('OBJECTSTORE_S3_KEY ' );
30+ } else {
31+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = '' ;
32+ }
33+
34+ if (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ))) {
35+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_SECRET_FILE ' )));
36+ } elseif (getenv ('OBJECTSTORE_S3_SECRET ' )) {
37+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = getenv ('OBJECTSTORE_S3_SECRET ' );
38+ } else {
39+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = '' ;
40+ }
2741}
Original file line number Diff line number Diff line change 99 'class ' => '\OC\Files\ObjectStore\S3 ' ,
1010 'arguments ' => array (
1111 'bucket ' => getenv ('OBJECTSTORE_S3_BUCKET ' ),
12- 'key ' => getenv ('OBJECTSTORE_S3_KEY ' ) ?: '' ,
13- 'secret ' => getenv ('OBJECTSTORE_S3_SECRET ' ) ?: '' ,
1412 'region ' => getenv ('OBJECTSTORE_S3_REGION ' ) ?: '' ,
1513 'hostname ' => getenv ('OBJECTSTORE_S3_HOST ' ) ?: '' ,
1614 'port ' => getenv ('OBJECTSTORE_S3_PORT ' ) ?: '' ,
2422 )
2523 )
2624 );
25+
26+ if (getenv ('OBJECTSTORE_S3_KEY_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_KEY_FILE ' ))) {
27+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_KEY_FILE ' )));
28+ } elseif (getenv ('OBJECTSTORE_S3_KEY ' )) {
29+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = getenv ('OBJECTSTORE_S3_KEY ' );
30+ } else {
31+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = '' ;
32+ }
33+
34+ if (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ))) {
35+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_SECRET_FILE ' )));
36+ } elseif (getenv ('OBJECTSTORE_S3_SECRET ' )) {
37+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = getenv ('OBJECTSTORE_S3_SECRET ' );
38+ } else {
39+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = '' ;
40+ }
2741}
Original file line number Diff line number Diff line change 99 'class ' => '\OC\Files\ObjectStore\S3 ' ,
1010 'arguments ' => array (
1111 'bucket ' => getenv ('OBJECTSTORE_S3_BUCKET ' ),
12- 'key ' => getenv ('OBJECTSTORE_S3_KEY ' ) ?: '' ,
13- 'secret ' => getenv ('OBJECTSTORE_S3_SECRET ' ) ?: '' ,
1412 'region ' => getenv ('OBJECTSTORE_S3_REGION ' ) ?: '' ,
1513 'hostname ' => getenv ('OBJECTSTORE_S3_HOST ' ) ?: '' ,
1614 'port ' => getenv ('OBJECTSTORE_S3_PORT ' ) ?: '' ,
2422 )
2523 )
2624 );
25+
26+ if (getenv ('OBJECTSTORE_S3_KEY_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_KEY_FILE ' ))) {
27+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_KEY_FILE ' )));
28+ } elseif (getenv ('OBJECTSTORE_S3_KEY ' )) {
29+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = getenv ('OBJECTSTORE_S3_KEY ' );
30+ } else {
31+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = '' ;
32+ }
33+
34+ if (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ))) {
35+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_SECRET_FILE ' )));
36+ } elseif (getenv ('OBJECTSTORE_S3_SECRET ' )) {
37+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = getenv ('OBJECTSTORE_S3_SECRET ' );
38+ } else {
39+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = '' ;
40+ }
2741}
Original file line number Diff line number Diff line change 99 'class ' => '\OC\Files\ObjectStore\S3 ' ,
1010 'arguments ' => array (
1111 'bucket ' => getenv ('OBJECTSTORE_S3_BUCKET ' ),
12- 'key ' => getenv ('OBJECTSTORE_S3_KEY ' ) ?: '' ,
13- 'secret ' => getenv ('OBJECTSTORE_S3_SECRET ' ) ?: '' ,
1412 'region ' => getenv ('OBJECTSTORE_S3_REGION ' ) ?: '' ,
1513 'hostname ' => getenv ('OBJECTSTORE_S3_HOST ' ) ?: '' ,
1614 'port ' => getenv ('OBJECTSTORE_S3_PORT ' ) ?: '' ,
2422 )
2523 )
2624 );
25+
26+ if (getenv ('OBJECTSTORE_S3_KEY_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_KEY_FILE ' ))) {
27+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_KEY_FILE ' )));
28+ } elseif (getenv ('OBJECTSTORE_S3_KEY ' )) {
29+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = getenv ('OBJECTSTORE_S3_KEY ' );
30+ } else {
31+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = '' ;
32+ }
33+
34+ if (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ))) {
35+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_SECRET_FILE ' )));
36+ } elseif (getenv ('OBJECTSTORE_S3_SECRET ' )) {
37+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = getenv ('OBJECTSTORE_S3_SECRET ' );
38+ } else {
39+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = '' ;
40+ }
2741}
Original file line number Diff line number Diff line change 99 'class ' => '\OC\Files\ObjectStore\S3 ' ,
1010 'arguments ' => array (
1111 'bucket ' => getenv ('OBJECTSTORE_S3_BUCKET ' ),
12- 'key ' => getenv ('OBJECTSTORE_S3_KEY ' ) ?: '' ,
13- 'secret ' => getenv ('OBJECTSTORE_S3_SECRET ' ) ?: '' ,
1412 'region ' => getenv ('OBJECTSTORE_S3_REGION ' ) ?: '' ,
1513 'hostname ' => getenv ('OBJECTSTORE_S3_HOST ' ) ?: '' ,
1614 'port ' => getenv ('OBJECTSTORE_S3_PORT ' ) ?: '' ,
2422 )
2523 )
2624 );
25+
26+ if (getenv ('OBJECTSTORE_S3_KEY_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_KEY_FILE ' ))) {
27+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_KEY_FILE ' )));
28+ } elseif (getenv ('OBJECTSTORE_S3_KEY ' )) {
29+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = getenv ('OBJECTSTORE_S3_KEY ' );
30+ } else {
31+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = '' ;
32+ }
33+
34+ if (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ))) {
35+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_SECRET_FILE ' )));
36+ } elseif (getenv ('OBJECTSTORE_S3_SECRET ' )) {
37+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = getenv ('OBJECTSTORE_S3_SECRET ' );
38+ } else {
39+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = '' ;
40+ }
2741}
Original file line number Diff line number Diff line change 99 'class ' => '\OC\Files\ObjectStore\S3 ' ,
1010 'arguments ' => array (
1111 'bucket ' => getenv ('OBJECTSTORE_S3_BUCKET ' ),
12- 'key ' => getenv ('OBJECTSTORE_S3_KEY ' ) ?: '' ,
13- 'secret ' => getenv ('OBJECTSTORE_S3_SECRET ' ) ?: '' ,
1412 'region ' => getenv ('OBJECTSTORE_S3_REGION ' ) ?: '' ,
1513 'hostname ' => getenv ('OBJECTSTORE_S3_HOST ' ) ?: '' ,
1614 'port ' => getenv ('OBJECTSTORE_S3_PORT ' ) ?: '' ,
2422 )
2523 )
2624 );
25+
26+ if (getenv ('OBJECTSTORE_S3_KEY_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_KEY_FILE ' ))) {
27+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_KEY_FILE ' )));
28+ } elseif (getenv ('OBJECTSTORE_S3_KEY ' )) {
29+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = getenv ('OBJECTSTORE_S3_KEY ' );
30+ } else {
31+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = '' ;
32+ }
33+
34+ if (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ))) {
35+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_SECRET_FILE ' )));
36+ } elseif (getenv ('OBJECTSTORE_S3_SECRET ' )) {
37+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = getenv ('OBJECTSTORE_S3_SECRET ' );
38+ } else {
39+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = '' ;
40+ }
2741}
Original file line number Diff line number Diff line change 99 'class ' => '\OC\Files\ObjectStore\S3 ' ,
1010 'arguments ' => array (
1111 'bucket ' => getenv ('OBJECTSTORE_S3_BUCKET ' ),
12- 'key ' => getenv ('OBJECTSTORE_S3_KEY ' ) ?: '' ,
13- 'secret ' => getenv ('OBJECTSTORE_S3_SECRET ' ) ?: '' ,
1412 'region ' => getenv ('OBJECTSTORE_S3_REGION ' ) ?: '' ,
1513 'hostname ' => getenv ('OBJECTSTORE_S3_HOST ' ) ?: '' ,
1614 'port ' => getenv ('OBJECTSTORE_S3_PORT ' ) ?: '' ,
2422 )
2523 )
2624 );
25+
26+ if (getenv ('OBJECTSTORE_S3_KEY_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_KEY_FILE ' ))) {
27+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_KEY_FILE ' )));
28+ } elseif (getenv ('OBJECTSTORE_S3_KEY ' )) {
29+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = getenv ('OBJECTSTORE_S3_KEY ' );
30+ } else {
31+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = '' ;
32+ }
33+
34+ if (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ))) {
35+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_SECRET_FILE ' )));
36+ } elseif (getenv ('OBJECTSTORE_S3_SECRET ' )) {
37+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = getenv ('OBJECTSTORE_S3_SECRET ' );
38+ } else {
39+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = '' ;
40+ }
2741}
Original file line number Diff line number Diff line change 99 'class ' => '\OC\Files\ObjectStore\S3 ' ,
1010 'arguments ' => array (
1111 'bucket ' => getenv ('OBJECTSTORE_S3_BUCKET ' ),
12- 'key ' => getenv ('OBJECTSTORE_S3_KEY ' ) ?: '' ,
13- 'secret ' => getenv ('OBJECTSTORE_S3_SECRET ' ) ?: '' ,
1412 'region ' => getenv ('OBJECTSTORE_S3_REGION ' ) ?: '' ,
1513 'hostname ' => getenv ('OBJECTSTORE_S3_HOST ' ) ?: '' ,
1614 'port ' => getenv ('OBJECTSTORE_S3_PORT ' ) ?: '' ,
2422 )
2523 )
2624 );
25+
26+ if (getenv ('OBJECTSTORE_S3_KEY_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_KEY_FILE ' ))) {
27+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_KEY_FILE ' )));
28+ } elseif (getenv ('OBJECTSTORE_S3_KEY ' )) {
29+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = getenv ('OBJECTSTORE_S3_KEY ' );
30+ } else {
31+ $ CONFIG ['objectstore ' ]['arguments ' ]['key ' ] = '' ;
32+ }
33+
34+ if (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ) && file_exists (getenv ('OBJECTSTORE_S3_SECRET_FILE ' ))) {
35+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = trim (file_get_contents (getenv ('OBJECTSTORE_S3_SECRET_FILE ' )));
36+ } elseif (getenv ('OBJECTSTORE_S3_SECRET ' )) {
37+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = getenv ('OBJECTSTORE_S3_SECRET ' );
38+ } else {
39+ $ CONFIG ['objectstore ' ]['arguments ' ]['secret ' ] = '' ;
40+ }
2741}
You can’t perform that action at this time.
0 commit comments