Skip to content

Block access to metadata files in Nginx examples - #2609

Open
Epic-Drytu wants to merge 1 commit into
nextcloud:masterfrom
Epic-Drytu:docs/sync-nginx-config
Open

Epic-Drytu wants to merge 1 commit into
nextcloud:masterfrom
Epic-Drytu:docs/sync-nginx-config

Conversation

@Epic-Drytu

Copy link
Copy Markdown

Summary

  • Add the metadata-file protection rule from the official Nextcloud Nginx configuration to all four FPM Docker Compose examples.
  • Return HTTP 404 for direct requests to composer.json, composer.lock, package.json, package-lock.json, and core/shipped.json.
  • Preserve the existing Docker-specific resolver, PHP-FPM upstream, and reverse-proxy configuration.

Validation

  • All four Nginx configurations passed nginx -t using nginx:alpine-slim.
  • git diff --check passed.
  • HTTP runtime behavior has not been integration-tested.

Closes #2606

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

Signed-off-by: Epic-Drytu <harshilsrivastava09@gmail.com>
@Epic-Drytu
Epic-Drytu force-pushed the docs/sync-nginx-config branch from 65fbe1e to 2467113 Compare October 21, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Difference between nginx.conf in documentation and docker-compose example files

1 participant