0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-02-05 02:58:27 +01:00
nextcloud-docker/.config
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
..
apache-pretty-urls.config.php Pretty URLs for apache 2017-09-14 10:23:46 +02:00
apcu.config.php Add apcu.config.php 2017-07-01 15:06:05 +02:00
apps.config.php Change quotes for consistency. (#1214) 2021-01-14 16:51:15 +00:00
autoconfig.php Added fetching autoconfig data from Docker secrets (#1516) 2021-11-29 22:30:57 +00:00
redis.config.php Drop file_exists check for _FILE variables (#2234) 2024-06-18 20:13:05 +00:00
reverse-proxy.config.php Add FORWARDED_FOR_HEADERS to the reverse-proxy config (#2272) 2024-10-08 16:19:59 +02:00
s3.config.php Fix initialization of autocreate and use_ssl (#2309) 2024-10-24 19:52:36 +00:00
smtp.config.php Drop file_exists check for _FILE variables (#2234) 2024-06-18 20:13:05 +00:00
swift.config.php Adds ability to configure swift object store though environment (#1243) 2020-09-24 08:52:59 +02:00
upgrade-disable-web.config.php feat(updater): Disable web based updater for real (#2109) 2023-12-11 22:54:39 +00:00