From 335eeb62393c5156181d433f13e8ed483bfac84f Mon Sep 17 00:00:00 2001 From: Estel Date: Tue, 17 Feb 2026 16:55:11 +0800 Subject: [PATCH] Add try_files directive comments to nginx.conf (#37866) --- dist/nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dist/nginx.conf b/dist/nginx.conf index a421e000060..af21f931afc 100644 --- a/dist/nginx.conf +++ b/dist/nginx.conf @@ -82,31 +82,37 @@ server { location ^~ /avatars/ { add_header Cache-Control "public, max-age=2419200, must-revalidate"; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; + # try_files $uri @mastodon; } location ^~ /emoji/ { add_header Cache-Control "public, max-age=2419200, must-revalidate"; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; + # try_files $uri @mastodon; } location ^~ /headers/ { add_header Cache-Control "public, max-age=2419200, must-revalidate"; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; + # try_files $uri @mastodon; } location ^~ /ocr/ { add_header Cache-Control "public, max-age=2419200, must-revalidate"; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; + # try_files $uri @mastodon; } location ^~ /packs/ { add_header Cache-Control "public, max-age=2419200, must-revalidate"; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; + # try_files $uri @mastodon; } location ^~ /sounds/ { add_header Cache-Control "public, max-age=2419200, must-revalidate"; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; + # try_files $uri @mastodon; } location ^~ /system/ { @@ -114,6 +120,7 @@ server { add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; add_header X-Content-Type-Options nosniff; add_header Content-Security-Policy "default-src 'none'; form-action 'none'"; + # try_files $uri @mastodon; } location ^~ /api/v1/streaming {