From d50aa63c00fd9b2f633a721a33efbcfff5b5b82a Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 7 Jan 2026 19:11:54 +0100 Subject: [PATCH] Remove the excessive newlines in nginx --- nginx.conf | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/nginx.conf b/nginx.conf index 1693ef5..b290380 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,41 +1,21 @@ http { - proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=api_cache:10m max_size=1g inactive=365d; - server { - listen 3000; - location / { - proxy_cache api_cache; - proxy_cache_valid 200 365d; - # Only cache if X-Cache header is present - proxy_cache_bypass $http_x_cache_inverse; - proxy_no_cache $http_x_cache_inverse; - # Set inverse variable (cache disabled by default) - set $http_x_cache_inverse 1; - if ($http_x_cache) { - set $http_x_cache_inverse 0; - } - proxy_cache_key $scheme$proxy_host$uri$is_args$args; - proxy_pass $arg_url; - add_header X-Cache-Status $upstream_cache_status; - } - } - }