further nginx
This commit is contained in:
parent
77723306d0
commit
8bcf8156db
2 changed files with 8 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: E-Paper Station
|
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}
|
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
|
||||||
slug: epaper-station
|
slug: epaper-station
|
||||||
description: Publish images to E-Paper pricetags
|
description: Publish images to E-Paper pricetags
|
||||||
|
|
|
@ -22,13 +22,18 @@ http {
|
||||||
allow 172.30.32.2;
|
allow 172.30.32.2;
|
||||||
deny all;
|
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 / {
|
location / {
|
||||||
root /public;
|
root /public;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /input_img {
|
location /input_img {
|
||||||
set_by_lua $endpath 'return ngx.arg[1]:lower()' $request_uri;
|
proxy_pass http://localhost:8080/;
|
||||||
proxy_pass http://localhost:8080$endpath;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /ws {
|
location /ws {
|
||||||
|
|
Loading…
Reference in a new issue