web ui stuff

This commit is contained in:
fhs52267
2026-03-22 15:38:33 +01:00
parent 5d9042b34b
commit 74ba68a3a7
2 changed files with 4 additions and 19 deletions

View File

@@ -1,18 +1,15 @@
name: "MeshMonitor" name: "MeshMonitor"
description: "Meshtastic Monitoring Dashboard" description: "Meshtastic Monitoring Dashboard"
version: "0.1.4" version: "1.0.5"
slug: "meshmonitor" slug: "meshmonitor"
arch: arch:
- aarch64 - aarch64
- amd64 - amd64
ingress: true # Remove the ingress keys entirely
ingress_port: 3001
panel_icon: mdi:access-point-network
panel_title: "MeshMonitor"
ports: ports:
3001/tcp: 3301 3001/tcp: 8080
ports_description: ports_description:
3001/tcp: "Web Interface (Optional direct access)" 3001/tcp: "Web Interface"
options: options:
MESHTASTIC_NODE_IP: "192.168.1.100" MESHTASTIC_NODE_IP: "192.168.1.100"
MESHTASTIC_TCP_PORT: 4403 MESHTASTIC_TCP_PORT: 4403

View File

@@ -8,19 +8,7 @@ export DISABLE_ANONYMOUS=$(jq --raw-output '.DISABLE_ANONYMOUS' $CONFIG_PATH)
export DATABASE_PATH="/data/meshmonitor.db" export DATABASE_PATH="/data/meshmonitor.db"
export PORT=3001 export PORT=3001
# Ingress/Iframe requirements
export TRUST_PROXY=true
export ALLOWED_ORIGINS="*" 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..." echo "Starting MeshMonitor for node: $MESHTASTIC_NODE_IP..."
exec node dist/server/server.js exec node dist/server/server.js