From 7ef6eb85e4200b1511ac1d115c7ca1c91eb6bd25 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Fri, 11 Apr 2025 12:27:34 -0500 Subject: [PATCH] Fixes logo caching. --- docker/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/nginx.conf b/docker/nginx.conf index a69579b1..06fa742a 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -37,6 +37,14 @@ server { proxy_cache_use_stale error timeout updating; # Serve stale if Django is slow } + location ~ ^/api/channels/logos/(?\d+)/cache/ { + proxy_pass http://127.0.0.1:5656; + proxy_cache logo_cache; + proxy_cache_key "$scheme$request_uri"; # Cache per logo URL + proxy_cache_valid 200 24h; # Cache for 24 hours + proxy_cache_use_stale error timeout updating; # Serve stale if Django is slow + } + # admin disabled when not in dev mode location /admin { return 301 /login;