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:
2025-08-21 23:41:26 +02:00
parent 8c79806318
commit 7d1f536af5
8 changed files with 294 additions and 9 deletions

View File

@@ -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;