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

Document how to use NC_* environment variables with Nextcloud Server via the image #2226

Open
joshtrichards opened this issue May 25, 2024 · 2 comments

Comments

@joshtrichards
Copy link
Member

joshtrichards commented May 25, 2024

  • via docker run / command line
  • via docker compose / Compose File

Should significantly cut down on many requests to add additional configuration variables to the image.

E.g.

Optionally, most configuration parameters of Nextcloud otherwise normally specified in thr config.php can be specified (or overriden) using Nextcloud's built-in in - but undocumented and somewhat discouraged officially - support for injecting NC_* config values via the environment. Note this last approach should not be used for any parameters supported by the image already. It's also not well documented or supported upstream.

Refs:

@joshtrichards
Copy link
Member Author

joshtrichards commented May 30, 2024

Though I'm thinking maybe we should nudge people towards simply using the Auto configuration via hooks support (#2231) since all config.php values can be set via occ config:system:set whereas NC_* doesn't support any parameters with . in them nor any array values (which are both big limitations). It's also not documented and thus not well supported upstream.

@joshtrichards
Copy link
Member Author

Upstream handling of NC_* variables should have better visibility now that nextcloud/server#46140 is merged (it'll be in next maintenance release for each supported major).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant