further nginx

This commit is contained in:
Jan-Henrik 2023-02-10 16:51:42 +01:00
parent 77723306d0
commit 8bcf8156db
2 changed files with 8 additions and 3 deletions

View file

@ -1,6 +1,6 @@
---
name: E-Paper Station
version: 1.0.0.45
version: 1.0.0.46
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
slug: epaper-station
description: Publish images to E-Paper pricetags

View file

@ -22,13 +22,18 @@ http {
allow 172.30.32.2;
deny all;
set_by_lua $uri_lowercase "return string.lower(ngx.var.uri)";
location ~[A-Z] {
return 301 $scheme://$http_host$uri_lowercase$is_args$args;
}
location / {
root /public;
}
location /input_img {
set_by_lua $endpath 'return ngx.arg[1]:lower()' $request_uri;
proxy_pass http://localhost:8080$endpath;
proxy_pass http://localhost:8080/;
}
location /ws {