File tree Expand file tree Collapse file tree
root/defaults/nginx/site-confs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ init_diagram: |
114114 "cops:latest" <- Base Images
115115# changelog
116116changelogs :
117+ - {date: "08.02.26:", desc: "Existing users should update: site-confs/default.conf - Deny access to all dotfiles."}
117118 - {date: "08.02.26:", desc: "Adding missing php-tokenizer package."}
118119 - {date: "10.10.25:", desc: "Adding missing icu-data-full package."}
119120 - {date: "10.07.25:", desc: "Rebase to Alpine 3.22."}
Original file line number Diff line number Diff line change 1- ## Version 2025/07/10 - Changelog: https://github.com/linuxserver/docker-cops/commits/master/root/defaults/nginx/site-confs/default.conf.sample
1+ ## Version 2026/02/08 - Changelog: https://github.com/linuxserver/docker-cops/commits/master/root/defaults/nginx/site-confs/default.conf.sample
22
33server {
44 listen 80 default_server;
@@ -48,8 +48,16 @@ server {
4848 include /etc/nginx/fastcgi_params;
4949 }
5050
51- # deny access to .htaccess/.htpasswd files
52- location ~ /\.ht {
51+ # deny access to all dotfiles
52+ location ~ /\. {
5353 deny all;
54+ log_not_found off;
55+ access_log off;
56+ return 404;
57+ }
58+
59+ # Allow access to the ".well-known" directory
60+ location ^~ /.well-known {
61+ allow all;
5462 }
5563}
You can’t perform that action at this time.
0 commit comments