Merge a2530f4cca2d8da036787aedc5928f10e5e0f206 into 8c1b83233b62fe98442f312a744db7abdce259f3

This commit is contained in:
Eric Nemchik 2026-02-16 14:55:18 +01:00 committed by GitHub
commit 58e2b18945
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 3 deletions

View File

@ -114,6 +114,7 @@ init_diagram: |
"cops:latest" <- Base Images
# changelog
changelogs:
- {date: "08.02.26:", desc: "Existing users should update: site-confs/default.conf - Deny access to all dotfiles."}
- {date: "08.02.26:", desc: "Adding missing php-tokenizer package."}
- {date: "10.10.25:", desc: "Adding missing icu-data-full package."}
- {date: "10.07.25:", desc: "Rebase to Alpine 3.22."}

View File

@ -1,4 +1,4 @@
## Version 2025/07/10 - Changelog: https://github.com/linuxserver/docker-cops/commits/master/root/defaults/nginx/site-confs/default.conf.sample
## Version 2026/02/08 - Changelog: https://github.com/linuxserver/docker-cops/commits/master/root/defaults/nginx/site-confs/default.conf.sample
server {
listen 80 default_server;
@ -48,8 +48,16 @@ server {
include /etc/nginx/fastcgi_params;
}
# deny access to .htaccess/.htpasswd files
location ~ /\.ht {
# deny access to all dotfiles
location ~ /\. {
deny all;
log_not_found off;
access_log off;
return 404;
}
# Allow access to the ".well-known" directory
location ^~ /.well-known {
allow all;
}
}