diff --git a/meshmonitor/config.yaml b/meshmonitor/config.yaml index a809299..c261a07 100644 --- a/meshmonitor/config.yaml +++ b/meshmonitor/config.yaml @@ -10,6 +10,8 @@ startup: services boot: auto ingress: true ingress_port: 3001 +network: + 3001/tcp: 3001 panel_icon: "mdi:mesh-network" panel_title: "MeshMonitor" map: diff --git a/meshmonitor/run.sh b/meshmonitor/run.sh index a661843..806b280 100644 --- a/meshmonitor/run.sh +++ b/meshmonitor/run.sh @@ -11,8 +11,11 @@ export ENABLE_VIRTUAL_NODE=$(jq --raw-output '.enable_virtual_node // false' $CO export PORT=3001 export NODE_ENV=production +export ALLOWED_ORIGINS="http://192.168.1.101:8123,http://homeassistant.local:8123" +export TRUST_PROXY=true +export BASE_URL="./" + echo "Starting MeshMonitor connecting to $MESHTASTIC_NODE_IP:$MESHTASTIC_TCP_PORT..." -# The application is located in /app in the official image cd /app -exec node dist/server/server.js +exec node dist/server/server.js \ No newline at end of file