Update web ui settings

This commit is contained in:
fhs52267
2026-03-22 15:15:36 +01:00
parent 805705da0f
commit 449bdbe449

View File

@@ -10,19 +10,22 @@ export MESHTASTIC_TCP_PORT=$(jq --raw-output '.meshtastic_tcp_port // 4403' $CON
export PORT=3001
export NODE_ENV=production
# --- MANDATORY FOR INGRESS ---
# This tells the React app to use relative paths for JS/CSS
# --- INGRESS SPECIFIC FIXES ---
# 1. Force the app to use relative paths for all assets
export BASE_URL="./"
# Allow Home Assistant to proxy the connection
# 2. Tell the Express server to trust the HA Proxy headers
export TRUST_PROXY=true
export ALLOWED_ORIGINS="*"
# Optional: Disable secure cookies if you aren't using HTTPS internally
# 3. Disable Secure Cookies (Ingress often fails if this is 'true' without valid SSL on the local IP)
export COOKIE_SECURE=false
# -----------------------------
echo "Starting MeshMonitor with Ingress support..."
# 4. MeshMonitor specific: Allow the HA Ingress origin
export ALLOWED_ORIGINS="*"
# ------------------------------
echo "Starting MeshMonitor on port 3001 via Ingress..."
cd /app
# Start the server using the compiled distribution
exec node dist/server/server.js