docs: document NEXTCLOUD_CONFIG_DIR environment variable#14940
Merged
Conversation
Add a dedicated "Environment Variables" section to the config parameters page explaining that NEXTCLOUD_CONFIG_DIR overrides the default config directory path. Also add a matching "Place config directory outside of the web root" subsection to the hardening guide, cross-referenced from both pages. Fixes #399 Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Contributor
📖 Documentation Preview📄 2 changed documentation pagesLast updated: Wed, 20 May 2026 05:56:15 GMT |
Member
Author
|
/backport to stable34 |
miaulalala
approved these changes
May 20, 2026
Member
Author
|
/backport to stable33 |
Member
Author
|
/backport to stable32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
☑️ Resolves
What changed and why
NEXTCLOUD_CONFIG_DIRhas been in the Nextcloud codebase for 8+ years and is actively used(e.g. by the Snap package) but was never documented. This PR adds it in two places:
admin_manual/configuration_server/config_sample_php_parameters.rst— new"Environment Variables" section explaining what the variable does, when to use it, and
the requirement to set it for both the web server and CLI. Cross-references the hardening page.
admin_manual/installation/harden_server.rst— new "Place config directory outsideof the web root" subsection under Deployment, with Apache and nginx snippets and a
reference back to the config parameters page for full details.
🖼️ Screenshots
✅ Checklist
codespellor similar and addressed any spelling issues