Skip to content

Commit

Permalink
Fix URL
Browse files Browse the repository at this point in the history
also removed bchighwaycam from image caching again
  • Loading branch information
wmuldergov authored and fatbird committed Feb 1, 2024
1 parent 09287e2 commit 85ac99c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion compose/frontend/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
14 changes: 0 additions & 14 deletions src/caching/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}
Expand Down

0 comments on commit 85ac99c

Please sign in to comment.