From 1480f73a8fbe58df9ad0a7a5ed33d4e2d3570f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Wed, 17 Jun 2026 10:45:32 +0200 Subject: [PATCH] perf(nginx): add open_file_cache to reduce overlay2 filesystem overhead Co-Authored-By: Claude Sonnet 4.6 --- nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index b72ba4b..2606430 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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;