Add some auto config via hooks examples (e.g. setting arbitrary `config.php` values via `occ config:system:set`
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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