Skip to content

docs: document NEXTCLOUD_CONFIG_DIR environment variable#14940

Merged
skjnldsv merged 1 commit into
masterfrom
fix/document-nextcloud-config-dir
May 20, 2026
Merged

docs: document NEXTCLOUD_CONFIG_DIR environment variable#14940
skjnldsv merged 1 commit into
masterfrom
fix/document-nextcloud-config-dir

Conversation

@skjnldsv
Copy link
Copy Markdown
Member

@skjnldsv skjnldsv commented May 20, 2026

☑️ Resolves

What changed and why

NEXTCLOUD_CONFIG_DIR has 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:

  1. 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.

  2. admin_manual/installation/harden_server.rst — new "Place config directory outside
    of the web root" subsection under Deployment, with Apache and nginx snippets and a
    reference back to the config parameters page for full details.

🖼️ Screenshots

image image

✅ Checklist

  • I have built the documentation locally and reviewed the output
  • Screenshots are included for visual changes (N/A — text only)
  • I have not moved or renamed pages (or added a redirect if I did)
  • I have run codespell or similar and addressed any spelling issues

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>
@github-actions
Copy link
Copy Markdown
Contributor

📖 Documentation Preview

🔍 Open preview →

📄 2 changed documentation pages

Last updated: Wed, 20 May 2026 05:56:15 GMT

@skjnldsv
Copy link
Copy Markdown
Member Author

/backport to stable34

@skjnldsv skjnldsv merged commit 47f7226 into master May 20, 2026
25 checks passed
@skjnldsv skjnldsv deleted the fix/document-nextcloud-config-dir branch May 20, 2026 06:39
@skjnldsv
Copy link
Copy Markdown
Member Author

/backport to stable33

@skjnldsv
Copy link
Copy Markdown
Member Author

/backport to stable32

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No documentation on NEXTCLOUD_CONFIG_DIR

2 participants