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 @@ -172,6 +172,7 @@ init_diagram: |
172172 "mastodon:develop" <- Base Images
173173# changelog
174174changelogs :
175+ - {date: "08.02.26:", desc: "Existing users should update: site-confs/default.conf - Deny access to all dotfiles."}
175176 - {date: "21.10.25:", desc: "Add prometheus exporter support."}
176177 - {date: "20.10.25:", desc: "Add vips-heif."}
177178 - {date: "06.06.25:", desc: "Rebase to Alpine 3.22, replace deprecated imagemagick with vips."}
Original file line number Diff line number Diff line change 1- ## Version 2024/08/26 - Changelog: https://github.com/linuxserver/docker-mastodon/commits/develop/root/defaults/nginx/site-confs/default.conf.sample
1+ ## Version 2026/02/08 - Changelog: https://github.com/linuxserver/docker-mastodon/commits/develop/root/defaults/nginx/site-confs/default.conf.sample
22
33map $http_upgrade $connection_upgrade {
44 default upgrade;
5- '' close;
5+ '' close;
66}
77
88upstream backend {
@@ -20,6 +20,8 @@ server {
2020 listen [::]:80 default_server;
2121 listen 443 ssl default_server;
2222 listen [::]:443 ssl default_server;
23+ listen 443 quic reuseport default_server;
24+ listen [::]:443 quic reuseport default_server;
2325
2426 server_name _;
2527
@@ -141,9 +143,16 @@ server {
141143
142144 error_page 404 500 501 502 503 504 /500.html;
143145
144- # deny access to .htaccess/.htpasswd files
145- location ~ /\.ht {
146+ # deny access to all dotfiles
147+ location ~ /\. {
146148 deny all;
149+ log_not_found off;
150+ access_log off;
151+ return 404;
147152 }
148153
154+ # Allow access to the ".well-known" directory
155+ location ^~ /.well-known {
156+ allow all;
157+ }
149158}
You can’t perform that action at this time.
0 commit comments