This commit is contained in:
Jan-Henrik 2023-02-07 00:25:36 +01:00
parent cace4effed
commit a719ff0457
3 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,6 @@
---
name: EPaper Station
version: 1.0.0.22
version: 1.0.0.23
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
slug: epaper-station
description: Publish Pictures to EPaper pricetags

View file

@ -14,10 +14,13 @@ http {
listen 0.0.0.0:4242;
location / {
disable_symlinks off;
root /public;
}
location /input_img {
root IMG_DIR;
}
location /ws {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;

View file

@ -2,8 +2,6 @@
IMG_DIR="$(bashio::config 'image_path')"
bashio::log.info "Starting nginx..."
ln -s $IMG_DIR /public/input_img
ls -la /public
ls -la /public/input_img
id
sed -i "s~IMG_DIR~$IMG_DIR~g" /etc/nginx/nginx.conf
nginx -c /etc/nginx/nginx.conf
bashio::log.info "nginx running."