diff --git a/epaper-station/config.yaml b/epaper-station/config.yaml index 6931793..8bca97f 100644 --- a/epaper-station/config.yaml +++ b/epaper-station/config.yaml @@ -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 diff --git a/epaper-station/rootfs/etc/nginx/nginx.conf b/epaper-station/rootfs/etc/nginx/nginx.conf index 1cb4bee..efabb75 100644 --- a/epaper-station/rootfs/etc/nginx/nginx.conf +++ b/epaper-station/rootfs/etc/nginx/nginx.conf @@ -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; diff --git a/epaper-station/rootfs/etc/services.d/nginx/run b/epaper-station/rootfs/etc/services.d/nginx/run index aa9c619..a004055 100644 --- a/epaper-station/rootfs/etc/services.d/nginx/run +++ b/epaper-station/rootfs/etc/services.d/nginx/run @@ -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."