Add setup-trusted-network.sh

This commit is contained in:
2025-12-31 04:27:00 -08:00
parent f05cf07c83
commit cd226f9298

29
setup-trusted-network.sh Normal file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
# Helper script to get IP for trusted networks setup
echo "Trusted Networks Setup Helper"
echo "============================="
echo ""
echo "This computer's IP address:"
MY_IP=$(hostname -I | awk '{print $1}')
echo " $MY_IP"
echo ""
echo "To configure Home Assistant to trust this IP:"
echo ""
echo "OPTION A: Via Home Assistant UI"
echo " 1. Open Home Assistant in another browser"
echo " 2. Go to: Settings > People & Zones > Trusted Networks"
echo " 3. Add this IP: $MY_IP"
echo " 4. Save and restart Home Assistant"
echo ""
echo "OPTION B: Via configuration.yaml"
echo " Edit your Home Assistant configuration.yaml and add:"
echo ""
echo " http:"
echo " trusted_proxies:"
echo " - $MY_IP"
echo " use_x_forwarded_for: true"
echo ""
echo " Then restart Home Assistant"
echo ""
echo "After configuring, the dashboard should auto-login from this IP."