-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Nextcloud Initialization Produces Redundant Configurations Ignoring Environment Variables #2117
Comments
Hi @manuth - I get how it can be confusing, but:
Only if the Docker variable is absent. If one is present it'll take priority. The db related variables are the only exception because they flow through You can easily test this by setting one of the non-db related values to something bogus in your Compose. You'll see the change flow through after recreating the container (to the running Nextcloud instance; not to it's main
I agree it can probably be better. But there are some big constraints:
I'd love to see things unified, but someone would need to not only come up with a "Point B" but also come up with a clean path from "point A" to "point B" for all existing installations. And then still convince enough people that the change is worth the risk created (and effort required) by introducing the change. Keep in mind not everyone may agree with me, including other members of the project. So I'll keep this open in case others want to contribute to the discussion. Footnotes:
|
Thank you so much for the exmplanation! I'm terribly sorry for the false alarm |
I'll see about what can be done to make it clearer in the docs. Tracking in #2244. |
When initializing a new Nextcloud installation, the
maintenance:install
part of the installation creates redundant settings which draw docker environment variables unfunctional.Example of a brief
docker-compose.yml
setup:Steps of reproduction:
Actual Result
Take note that all settings configured using environment variables (or implicitly configured) in these files:
autoconfig.php
: Database settingsapcu.config.php
: Local cache settingsapps.config.php
: App pathsreverse-proxy.config.php
: Reverse proxy settings (overwrite host, protocol, cli etc.)smtp.config.php
: Mail settingsredis.config.php
: Redis settingsHowever, all settings configured implicitly or using environment variables are overridden by the
config.php
file which is created during the initialization.Take note that all settings occurring in the previously named files also occur in the
config.php
file. This means that future changes made to the environment variables won't have any effect which, as far as I assume, isn't the expected or desired behavior.Expected Result
Settings occurring in the files
autoconfig.php
,apcu.config.php
,apps.config.php
,reverse-proxy.config.php
,smtp.config.php
,redis.config.php
etc. which contain implicitly configured or settings configured using environment variables should not re-occur in theconfig.php
file in order to allow future changes to environment variables and remove confusion as to where the value of settings (such as mail settings, reverse-proxy settings and DB settings) actually come from.Related to
MYSQL_HOST
variable #2086config.php
and/or show a warning?The text was updated successfully, but these errors were encountered: