File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
root/defaults/nginx/site-confs Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ init_diagram: |
144144 "nextcloud:develop" <- Base Images
145145# changelog
146146changelogs :
147+ - {date: "08.02.26:", desc: "Existing users should update: site-confs/default.conf - Deny access to all dotfiles."}
147148 - {date: "10.07.25:", desc: "Rebase to Alpine 3.22."}
148149 - {date: "12.02.25:", desc: "Rebase to Alpine 3.21."}
149150 - {date: "09.01.25:", desc: "Fix uploading large files. Existing users should update their nginx confs."}
Original file line number Diff line number Diff line change 1- ## Version 2025/07/10 - Changelog: https://github.com/linuxserver/docker-nextcloud/commits/master/root/defaults/nginx/site-confs/default.conf.sample
1+ ## Version 2026/02/08 - Changelog: https://github.com/linuxserver/docker-nextcloud/commits/master/root/defaults/nginx/site-confs/default.conf.sample
22
33# Set the `immutable` cache control options only for assets with a cache busting `v` argument
44map $arg_v $asset_immutable {
@@ -165,8 +165,16 @@ server {
165165 try_files $uri $uri/ /index.php$request_uri;
166166 }
167167
168- # deny access to .htaccess/.htpasswd files
169- location ~ /\.ht {
168+ # deny access to all dotfiles
169+ location ~ /\. {
170170 deny all;
171+ log_not_found off;
172+ access_log off;
173+ return 404;
174+ }
175+
176+ # Allow access to the ".well-known" directory
177+ location ^~ /.well-known {
178+ allow all;
171179 }
172180}
You can’t perform that action at this time.
0 commit comments