mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2025-10-29 17:40:28 +00:00
proxy through varnish
sets up varnish cache server with: - custom cache per content type - gzip - configure app & hass backends - varnish debug headers & X-Cache verbose cache header also updates docker-compose, varnish/Dockerfile & drone.
This commit is contained in:
@@ -33,7 +33,8 @@
|
||||
function refetchImage() {
|
||||
let url;
|
||||
try {
|
||||
url = new URL(`${IMAGE_PROXY_URL}/image/${imageUrl}`);
|
||||
const { protocol, host } = window.location;
|
||||
url = new URL(`${protocol}//${host}/image-proxy/${imageUrl}`);
|
||||
} catch {
|
||||
console.log('url not valid, returning');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user