From 74ba68a3a74fd2fd8f58ef1e81a1f7d09b95f201 Mon Sep 17 00:00:00 2001 From: fhs52267 Date: Sun, 22 Mar 2026 15:38:33 +0100 Subject: [PATCH] web ui stuff --- meshmonitor/config.yaml | 11 ++++------- meshmonitor/run.sh | 12 ------------ 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/meshmonitor/config.yaml b/meshmonitor/config.yaml index 0d7add7..cf7db60 100644 --- a/meshmonitor/config.yaml +++ b/meshmonitor/config.yaml @@ -1,18 +1,15 @@ name: "MeshMonitor" description: "Meshtastic Monitoring Dashboard" -version: "0.1.4" +version: "1.0.5" slug: "meshmonitor" arch: - aarch64 - amd64 -ingress: true -ingress_port: 3001 -panel_icon: mdi:access-point-network -panel_title: "MeshMonitor" +# Remove the ingress keys entirely ports: - 3001/tcp: 3301 + 3001/tcp: 8080 ports_description: - 3001/tcp: "Web Interface (Optional direct access)" + 3001/tcp: "Web Interface" options: MESHTASTIC_NODE_IP: "192.168.1.100" MESHTASTIC_TCP_PORT: 4403 diff --git a/meshmonitor/run.sh b/meshmonitor/run.sh index 36525b9..2017b40 100644 --- a/meshmonitor/run.sh +++ b/meshmonitor/run.sh @@ -8,19 +8,7 @@ export DISABLE_ANONYMOUS=$(jq --raw-output '.DISABLE_ANONYMOUS' $CONFIG_PATH) export DATABASE_PATH="/data/meshmonitor.db" export PORT=3001 - -# Ingress/Iframe requirements -export TRUST_PROXY=true export ALLOWED_ORIGINS="*" -export COOKIE_SAMESITE="none" -export COOKIE_SECURE=true - -# Fetch the dynamic Home Assistant Ingress URL and strip any trailing slash -if [ -n "$SUPERVISOR_TOKEN" ]; then - RAW_URL=$(curl -s -H "Authorization: Bearer ${SUPERVISOR_TOKEN}" http://supervisor/addons/self/info | jq --raw-output '.data.ingress_url') - export BASE_URL="${RAW_URL%/}" - echo "Ingress BASE_URL set to: $BASE_URL" -fi echo "Starting MeshMonitor for node: $MESHTASTIC_NODE_IP..." exec node dist/server/server.js \ No newline at end of file