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
epaper-station
config.yaml
rootfs/etc
nginx
services.d/nginx

View file

@ -1,6 +1,6 @@
--- ---
name: EPaper Station name: EPaper Station
version: 1.0.0.22 version: 1.0.0.23
#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 Pictures to EPaper pricetags description: Publish Pictures to EPaper pricetags

View file

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

View file

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