Skip to content

Update default.conf.sample to deny dotfile access#54

Open
nemchik wants to merge 2 commits into
mainfrom
deny-dotfile-access
Open

Update default.conf.sample to deny dotfile access#54
nemchik wants to merge 2 commits into
mainfrom
deny-dotfile-access

Conversation

@nemchik
Copy link
Copy Markdown
Member

@nemchik nemchik commented Feb 8, 2026

No description provided.

Signed-off-by: Eric Nemchik <eric@nemchik.com>
@LinuxServer-CI
Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@LinuxServer-CI
Copy link
Copy Markdown
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/grav/1.7.49.5-pkg-e6620782-dev-85c7fd1ea5de2ccbd04e1e301ee1f35a1e2b8875-pr-54/index.html
https://ci-tests.linuxserver.io/lspipepr/grav/1.7.49.5-pkg-e6620782-dev-85c7fd1ea5de2ccbd04e1e301ee1f35a1e2b8875-pr-54/shellcheck-result.xml

Tag Passed
amd64-1.7.49.5-pkg-e6620782-dev-85c7fd1ea5de2ccbd04e1e301ee1f35a1e2b8875-pr-54
arm64v8-1.7.49.5-pkg-e6620782-dev-85c7fd1ea5de2ccbd04e1e301ee1f35a1e2b8875-pr-54

@LinuxServer-CI
Copy link
Copy Markdown
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/grav/1.7.52-pkg-e6620782-dev-e2f38420e7e117176b4a9e979fcdeb53f2e2d030-pr-54/index.html
https://ci-tests.linuxserver.io/lspipepr/grav/1.7.52-pkg-e6620782-dev-e2f38420e7e117176b4a9e979fcdeb53f2e2d030-pr-54/shellcheck-result.xml

Tag Passed
amd64-1.7.52-pkg-e6620782-dev-e2f38420e7e117176b4a9e979fcdeb53f2e2d030-pr-54
arm64v8-1.7.52-pkg-e6620782-dev-e2f38420e7e117176b4a9e979fcdeb53f2e2d030-pr-54

Signed-off-by: Eric Nemchik <eric@nemchik.com>
Copilot AI review requested due to automatic review settings May 5, 2026 21:42
@LinuxServer-CI LinuxServer-CI moved this from PRs to PRs Ready For Team Review in Issue & PR Tracker May 5, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the bundled nginx site config sample to broadly deny access to dotfiles (while carving out an exception for /.well-known) and refreshes the project changelog to notify existing users.

Changes:

  • Add an nginx location rule to deny access to dotfiles, with an explicit allow rule for /.well-known.
  • Reformat several existing nginx location blocks for readability/consistency.
  • Add a readme changelog entry indicating existing users should update their nginx site config.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
root/defaults/nginx/site-confs/default.conf.sample Adds dotfile denial rule and a /.well-known exception; reformats several security/caching blocks.
readme-vars.yml Adds a changelog entry instructing users to update their nginx config due to dotfile denial.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

index index.html index.htm index.php;

# Allow access to the ".well-known" directory
location ^~ /.well-known {
Comment on lines 39 to +42
# deny all direct access for these folders
location ~* /(\.git|cache|bin|logs|backup|tests)/.*$ { return 403; }
location ~* /(\.git|cache|bin|logs|backup|tests)/.*$ {
return 403;
}
Comment thread readme-vars.yml
"grav:latest" <- Base Images
# changelog
changelogs:
- {date: "08.02.26:", desc: "Existing users should update: site-confs/default.conf - Deny access to all dotfiles."}
@LinuxServer-CI
Copy link
Copy Markdown
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/grav/1.7.52-pkg-5d9787e0-dev-206ee08a7b57a69db6ade541e89013766bc55345-pr-54/index.html
https://ci-tests.linuxserver.io/lspipepr/grav/1.7.52-pkg-5d9787e0-dev-206ee08a7b57a69db6ade541e89013766bc55345-pr-54/shellcheck-result.xml

Tag Passed
amd64-1.7.52-pkg-5d9787e0-dev-206ee08a7b57a69db6ade541e89013766bc55345-pr-54
arm64v8-1.7.52-pkg-5d9787e0-dev-206ee08a7b57a69db6ade541e89013766bc55345-pr-54

@LinuxServer-CI LinuxServer-CI moved this from PRs Ready For Team Review to PRs in Issue & PR Tracker May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants