perf(nginx): add open_file_cache to reduce overlay2 filesystem overhead

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-17 10:45:32 +02:00
co-authored by Claude Sonnet 4.6
parent ba9a9dc9c4
commit 1480f73a8f
+5
View File
@@ -9,6 +9,11 @@ server {
gzip_types text/plain text/css application/json application/javascript image/svg+xml;
gzip_min_length 256;
open_file_cache max=1000 inactive=30s;
open_file_cache_valid 60s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
# Long-cache static assets (CSS, JS, images, fonts)
location ~* \.(css|js|woff2?|ttf|otf|eot|svg|webp|png|jpg|jpeg|ico|gif)$ {
expires 1y;