From 7fd4095310755425281ea9a77f1790f2ef59236c Mon Sep 17 00:00:00 2001 From: Thomas Rogers Date: Thu, 28 Nov 2024 15:56:10 +0100 Subject: [PATCH] Update regex and image-proxy --- imageproxy/Dockerfile | 2 +- self-hosting/nginx/nginx.conf | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/imageproxy/Dockerfile b/imageproxy/Dockerfile index 57575184a..ec0f320a0 100644 --- a/imageproxy/Dockerfile +++ b/imageproxy/Dockerfile @@ -1,4 +1,4 @@ -FROM willnorris/imageproxy:v0.10.0 as build +FROM ghcr.io/willnorris/imageproxy:main as build # Above imageproxy image is built from scratch image and is barebones # Switching over to ubuntu base image to allow us to debug better. diff --git a/self-hosting/nginx/nginx.conf b/self-hosting/nginx/nginx.conf index 670d9fa1b..a4b785320 100644 --- a/self-hosting/nginx/nginx.conf +++ b/self-hosting/nginx/nginx.conf @@ -16,17 +16,17 @@ http { upstream omnivore_imageproxy { ip_hash; - server 127.0.0.1:1010; + server 127.0.0.1:7070; } upstream omnivore_bucket { ip_hash; - server 127.0.0.1:7070; + server 127.0.0.1:1010; } server { listen 80; - return 301 https://$host$request_uri + return 301 https://$host$request_uri; } server { @@ -60,6 +60,7 @@ http { # ImageProxy location /images { + rewrite ^/images/(.*)$ /$1 break; proxy_pass http://omnivore_imageproxy; }