Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Pull request overview
Updates the default Nginx server config to allow public access to resources under the /.well-known/ path (commonly used for ACME challenges and similar well-known endpoints).
Changes:
- Moves the
/.well-known/locationblock earlier in the server config so it takes precedence over other restrictivelocationrules.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
beb91f7 to
dcc5c3e
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7855736 to
bd8362c
Compare
a4bcabe to
9df3ff5
Compare
Agent-Logs-Url: https://github.com/sparkfabrik/docker-php-drupal-nginx/sessions/d9e49675-be20-47c9-bcbd-15674087cdce Co-authored-by: Bladedu <572359+Bladedu@users.noreply.github.com>
'deny all' can be bypassed via 'satisfy any' with valid auth, while 'return 403' is unconditional. Aligns with the existing convention used by the generic dot-directory PHP rule.
Reverts the overly broad 'allow all' on /.well-known/ introduced in 65a3954. Restores the original nested block that returns 403 for everything under /.well-known/ except .txt files, while keeping the explicit PHP deny rule.
PR Type
Enhancement
Description
Places
/.well-known/location block before the.txt|logdeny rule so all resources under that path are publicly accessibleAdds an explicit
deny allrule for PHP files under/.well-known/to prevent PHP source leakageEnsures
/.well-known/path is not restricted by.txt|logdeny rules, supporting ACME challenges (tokens without file extensions),security.txt, and other well-known endpointsDiagram Walkthrough