Update web ui settings
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: "MeshMonitor"
|
name: "MeshMonitor"
|
||||||
description: "Meshtastic Monitoring Dashboard"
|
description: "Meshtastic Monitoring Dashboard"
|
||||||
version: "0.1.2"
|
version: "0.1.4"
|
||||||
slug: "meshmonitor"
|
slug: "meshmonitor"
|
||||||
arch:
|
arch:
|
||||||
- aarch64
|
- aarch64
|
||||||
@@ -10,12 +10,12 @@ ingress_port: 3001
|
|||||||
panel_icon: mdi:access-point-network
|
panel_icon: mdi:access-point-network
|
||||||
panel_title: "MeshMonitor"
|
panel_title: "MeshMonitor"
|
||||||
ports:
|
ports:
|
||||||
3001/tcp: 8080
|
3001/tcp: 3301
|
||||||
ports_description:
|
ports_description:
|
||||||
3001/tcp: "Web Interface (Optional direct access)"
|
3001/tcp: "Web Interface (Optional direct access)"
|
||||||
options:
|
options:
|
||||||
MESHTASTIC_NODE_IP: "192.168.1.100"
|
MESHTASTIC_NODE_IP: "192.168.1.100"
|
||||||
MESHTASTIC_TCP_PORT: 3001
|
MESHTASTIC_TCP_PORT: 4403
|
||||||
SESSION_SECRET: "change_me_to_a_secure_random_string"
|
SESSION_SECRET: "change_me_to_a_secure_random_string"
|
||||||
DISABLE_ANONYMOUS: false
|
DISABLE_ANONYMOUS: false
|
||||||
schema:
|
schema:
|
||||||
|
|||||||
@@ -15,9 +15,10 @@ export ALLOWED_ORIGINS="*"
|
|||||||
export COOKIE_SAMESITE="none"
|
export COOKIE_SAMESITE="none"
|
||||||
export COOKIE_SECURE=true
|
export COOKIE_SECURE=true
|
||||||
|
|
||||||
# Fetch the dynamic Home Assistant Ingress URL so assets load properly
|
# Fetch the dynamic Home Assistant Ingress URL and strip any trailing slash
|
||||||
if [ -n "$SUPERVISOR_TOKEN" ]; then
|
if [ -n "$SUPERVISOR_TOKEN" ]; then
|
||||||
export BASE_URL=$(curl -s -H "Authorization: Bearer ${SUPERVISOR_TOKEN}" http://supervisor/addons/self/info | jq --raw-output '.data.ingress_url')
|
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"
|
echo "Ingress BASE_URL set to: $BASE_URL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user