Add CONTROL_SERVER_HOST to allow external connections

- Add CONTROL_SERVER_HOST environment variable (default: 0.0.0.0)
- Server now binds to all interfaces by default for external access
- Update .env and .env.example with new host configuration
- Allows UI clients to connect from other machines on the network
This commit is contained in:
Pi User
2025-10-03 20:24:20 +13:00
parent e78a8727b2
commit aa9f892454
3 changed files with 11 additions and 4 deletions

3
.env
View File

@@ -1,8 +1,9 @@
# Lighting Controller Configuration
CONTROL_SERVER_URI=ws://localhost:8765
CONTROL_SERVER_HOST=0.0.0.0
CONTROL_SERVER_PORT=8765
TRANSPORT=spi
AUDIO_INPUT_DEVICE=7
AUDIO_INPUT_DEVICE=1
MIDI_TCP_HOST=127.0.0.1
MIDI_TCP_PORT=65432
SOUND_CONTROL_HOST=127.0.0.1