From bfd42f2a102e36a38fdfc6c4f3aaf048f1e6be6f Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Tue, 7 Feb 2023 19:46:39 +0100 Subject: [PATCH] lock down nginx --- epaper-station/config.yaml | 3 +-- epaper-station/rootfs/etc/nginx/nginx.conf | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/epaper-station/config.yaml b/epaper-station/config.yaml index 23fa94c..36354e7 100644 --- a/epaper-station/config.yaml +++ b/epaper-station/config.yaml @@ -1,12 +1,11 @@ --- name: EPaper Station -version: 1.0.0.38 +version: 1.0.0.39 #image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch} slug: epaper-station description: Publish Pictures to EPaper pricetags uart: true ingress: true -ingress_port: 4242 ingress_stream: true arch: - amd64 diff --git a/epaper-station/rootfs/etc/nginx/nginx.conf b/epaper-station/rootfs/etc/nginx/nginx.conf index 2b76d60..be55051 100644 --- a/epaper-station/rootfs/etc/nginx/nginx.conf +++ b/epaper-station/rootfs/etc/nginx/nginx.conf @@ -17,7 +17,9 @@ http { server { server_name localhost; - listen 0.0.0.0:4242; + listen 8099; + allow 172.30.32.2; + deny all; location / { root /public;