From 77723306d0df9217e8ef392715cd2837d81368a6 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Fri, 10 Feb 2023 16:48:16 +0100 Subject: [PATCH] next try --- epaper-station/config.yaml | 2 +- epaper-station/rootfs/etc/nginx/nginx.conf | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/epaper-station/config.yaml b/epaper-station/config.yaml index 5269ff2..3238b95 100644 --- a/epaper-station/config.yaml +++ b/epaper-station/config.yaml @@ -1,6 +1,6 @@ --- name: E-Paper Station -version: 1.0.0.44 +version: 1.0.0.45 #image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch} slug: epaper-station description: Publish images to E-Paper pricetags diff --git a/epaper-station/rootfs/etc/nginx/nginx.conf b/epaper-station/rootfs/etc/nginx/nginx.conf index 9e5e5d7..ea5273e 100644 --- a/epaper-station/rootfs/etc/nginx/nginx.conf +++ b/epaper-station/rootfs/etc/nginx/nginx.conf @@ -26,9 +26,9 @@ http { root /public; } - location ^~ /input_img/(?.*) { - set_by_lua $endpath 'return string.lower(ngx.var.endpath)' - proxy_pass http://localhost:8080/$endpath; + location /input_img { + set_by_lua $endpath 'return ngx.arg[1]:lower()' $request_uri; + proxy_pass http://localhost:8080$endpath; } location /ws {