From 85ac99c5665477828d14eba7134faa1c81fc802a Mon Sep 17 00:00:00 2001 From: Mulder Date: Fri, 26 Jan 2024 14:51:14 -0800 Subject: [PATCH] Fix URL also removed bchighwaycam from image caching again --- compose/frontend/default.conf | 2 +- src/caching/nginx.conf.template | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/compose/frontend/default.conf b/compose/frontend/default.conf index 0f34ab749..e7612414c 100644 --- a/compose/frontend/default.conf +++ b/compose/frontend/default.conf @@ -22,7 +22,7 @@ server { # Caching data from the API location /api/ { proxy_ssl_server_name on; - proxy_pass http://{ENVIRONMENT}-django/; + proxy_pass http://{ENVIRONMENT}-django; proxy_connect_timeout 5s; proxy_cache_background_update on; proxy_cache_lock on; diff --git a/src/caching/nginx.conf.template b/src/caching/nginx.conf.template index 7ba72388c..e622c0e9a 100644 --- a/src/caching/nginx.conf.template +++ b/src/caching/nginx.conf.template @@ -76,20 +76,6 @@ http { add_header X-Proxy-Cache $upstream_cache_status; } - # Reverse proxy to ${DRIVEBC_IMAGE_BASE_URL} bchighwaycamp url - location /bchighwaycam/ { - proxy_ssl_server_name on; - proxy_pass ${DRIVEBC_IMAGE_BASE_URL}; - proxy_connect_timeout 5s; - proxy_cache_background_update on; - proxy_cache_lock on; - proxy_cache_lock_age 10s; - proxy_cache_lock_timeout 10s; - proxy_cache_revalidate on; - proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; - proxy_cache_valid 200 1m; - add_header X-Proxy-Cache $upstream_cache_status; - } error_page 404 /404.html; location = /40x.html { }