From a719ff0457646f98ad97fa36644183aa3b7d80d7 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Tue, 7 Feb 2023 00:25:36 +0100 Subject: [PATCH] sed --- epaper-station/config.yaml | 2 +- epaper-station/rootfs/etc/nginx/nginx.conf | 5 ++++- epaper-station/rootfs/etc/services.d/nginx/run | 4 +--- 3 files changed, 6 insertions(+), 5 deletions(-) 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."