Skip to content

Documentation of "NC_" Environment Variables  #40579

@raphaelhilg

Description

@raphaelhilg

There are some "NC_" environmental variables you can use instead of the "config.php" file.
Those are especially useful for docker deployments as those variables do not require manually editing of config files.

However there does not seem to be any documentation around which variables you can use and which not.
The existence of these variables is not mentioned in the official documentation.

The only mention of those that I could find from official Nextcloud sources is right in the
source code (line 86 and following) and in the pull request

It would be great to have clear documentation that those variables exist, which variables you can use and if there are any drawbacks when using those.

Tested variables in a docker compose deployment:

      NC_default_language: de
      NC_default_locale: de_DE
      NC_default_phone_region: DE
      NC_loglevel: 2

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions