nextcloud / nextcloud/docker

Add some auto config via hooks examples (e.g. setting arbitrary `config.php` values via `occ config:system:set`

Open
#2,231 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. To develop docs enhancement feature: auto config (environment variables) feature: auto config (hooks)
Dominant language
Shell
Stars
7.4k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

It's not necessary to add every possible config scenario as a dedicated environment variable in the image. I think we can expand the docs for #1964 a bit to give people a clearer idea of how they might use hooks for auto configuration.

Should cut down on new environment variable requests (and without resorting to NC_* usage - which is incomplete and undocumented, upstream, at best - though also on the agenda in #2226)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the documentation work from issue #1964 and the existing hooks guidance for the official Nextcloud Docker image. Add examples showing how hooks can use occ config:system:set for arbitrary config.php values, and confirm the examples explain the approach without requiring a new environment variable.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
devops, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.