Skip to content
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

Docker (mail) environment settings prevent GUI configuration #1312

Open
aliebrich opened this issue Nov 25, 2020 · 1 comment
Open

Docker (mail) environment settings prevent GUI configuration #1312

aliebrich opened this issue Nov 25, 2020 · 1 comment
Labels
feature: auto config (environment variables) Auto configuring via environment variables question

Comments

@aliebrich
Copy link

Hi!

As a long-term (and very satisfied) Nextcloud user i'm working on my first installation via docker / docker-compose. Unfortunately it is way more troublesome than expected, one of my issues is the interaction between environment variables and NC GUI settings.
Let's look at this with the examples of mail settings.

As Auto configuration via environment variables states, there are several MAIL_ or SMTP_ variables which can be set.
These environment variables are picked up through config/smtp.config.php, which itself ends up in the docker image through Dockerfile & entrypoint.sh. So far so good, the environment configuration ends up in the running Nextcloud instance.

But problems arise as soon as you start changing these config parameters via the GUI. Nextcloud/GUI writes back to config.php. But as stated in Multiple config.php file (sic):

These custom files are not overwritten by Nextcloud, and the values in these files take precedence over config.php.

That means (and truly is the case) that whatever you configure in your browser will never end up in your run configuration. And even worse, changes in the GUI will sometimes just disappear, as they are again read from another config file. Very confusing indeed. ;-)

I expect that these problems also arise for other files vs. env. variables, as soon as you try to configure it via GUI.

Am i missing something here or is this really a design problem with cooperation of NC/server and NC/docker?

Best greetings,
Andi

@famx-droid
Copy link

You're right, setting MAIL_ env (and probanly others) is breaking the configuration via web interface. Nevertheless, setting env are great to auto deploy nextcloud docker intances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: auto config (environment variables) Auto configuring via environment variables question
Projects
None yet
Development

No branches or pull requests

3 participants