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;