web ui stuff
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user