0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-01 05:04:53 +01:00
Commit graph

10 commits

Author SHA1 Message Date
Valentin Brandl
d3341b61c1
Fix initialization of autocreate and use_ssl (#2309)
According to the documentation, both `OBJECTSTORE_S3_SSL` and
`OBJECTSTORE_S3_AUTOCREATE` should default to `true`.
Currently, when these environment variables are not set, they default to
`false`. (See https://github.com/nextcloud/docker/issues/2308).

This fix works, because `strtolower(false)` returns the empty string. So
when `OBJECTSTORE_S3_SSL` is not set and `getenv('OBJECTSTORE_S3_SSL')`
returns `false`, the check `strtolower($use_ssl) !== 'false'` will
evaluate to `true`.

With this fix, both values will be `true` if they are

* not set
* the empty string
* any string that is not equal to `false` when converted to lowercase

This should now match the documented behavior.

Signed-off-by: Valentin Brandl <mail@vbrandl.net>
2024-10-24 19:52:36 +00:00
J0WI
2accbecd97
Drop file_exists check for _FILE variables (#2234)
* Drop file_exists check for _FILE variables

A PHP warning is generated if the file does not exist.
Otherwise there is no indicator why the variable is not used.

Signed-off-by: J0WI <J0WI@users.noreply.github.com>

* fixup: typo in smtp.config.php

Signed-off-by: Josh <josh.t.richards@gmail.com>

---------

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Co-authored-by: Josh <josh.t.richards@gmail.com>
2024-06-18 20:13:05 +00:00
Patrick Hobusch
2e9139bac8
Allow setting AWS S3 SSE-C key (#2151)
The AWS S3 SSE-C key for server side encryption can now be set using
the environment variable `OBJECTSTORE_S3_SSE_C_KEY`.

Signed-off-by: Patrick Hobusch <patrick@hobusch.net>
2024-01-26 00:24:41 +00:00
Patrick Hobusch
5dfa556afc
Allow setting AWS S3 storage class (#2138)
The AWS S3 storage class can now be set using the environment variable
`OBJECTSTORE_S3_STORAGE_CLASS`.

The order of the AWS S3 environment variables in the `README.md` has
also been adjusted to be more "logical".

Signed-off-by: Patrick Hobusch <patrick@hobusch.net>
2024-01-16 00:04:05 +00:00
Anderson Entwistle
e1b1923861
feat: support object store credentials from file (#1946)
Signed-off-by: Anderson Entwistle <46688047+aentwist@users.noreply.github.com>
2023-03-28 13:50:55 +00:00
Philipp
a15c755399
Add "legacy_auth" option for S3 object stores (#1444)
* Add "legacy_auth" option for S3 object stores

Signed-off-by: Philipp <admin@philipp.info>

* Update .config/s3.config.php

Co-authored-by: J0WI <J0WI@users.noreply.github.com>

Co-authored-by: J0WI <J0WI@users.noreply.github.com>
2021-03-27 01:01:00 +00:00
johackim
94e751cd97
Add objectPrefix et autocreate environment variables (#1389)
Signed-off-by: johackim <contact@johackim.com>
2021-02-22 17:06:40 +00:00
Pierre Ozoux
27c54cdd9e
Adds ability to configure S3 object stores via environment variables (#1227)
* Adds ability to configure S3 object stores via environment variables

closes #1193 #1124 #1134

Co-authored-by: Adam Jenkins <adamjenkins1701@gmail.com>
Co-authored-by: Stephen Cuppett <scuppett@redhat.com>

* Update .config/s3.config.php

Co-authored-by: Adam Jenkins <adamjenkins1701@gmail.com>
Co-authored-by: Stephen Cuppett <scuppett@redhat.com>
2020-08-29 09:26:57 +02:00
pierreozoux
7a286da8c3 Revert "Adds ability to configure S3 object stores via environment variables"
This reverts commit 47032fddb6.
2020-08-28 17:48:40 +02:00
pierreozoux
47032fddb6 Adds ability to configure S3 object stores via environment variables
closes #1193 #1124 #1134

Co-authored-by: Adam Jenkins <adamjenkins1701@gmail.com>
Co-authored-by: Stephen Cuppett <scuppett@redhat.com>
2020-08-28 15:25:06 +02:00