chore: Update environment configuration and Dockerfile for improved setup

- Change default PORT in .env.example to 7123 and update CORS origins
- Disable speech features in .env.example for a cleaner setup
- Modify Dockerfile to streamline Python dependency installation and improve build performance
- Add fix-env.js script to ensure NODE_ENV is set correctly before application starts
- Update smithery.yaml to include new Home Assistant connection parameters
- Introduce start.sh script to set NODE_ENV and start the application
This commit is contained in:
jango-blockchained
2025-03-15 18:55:53 +01:00
parent 615b05c8d6
commit 575e16f2fa
7 changed files with 58 additions and 62 deletions

View File

@@ -1,6 +1,6 @@
# Server Configuration
NODE_ENV=development
PORT=3000
PORT=7123
DEBUG=false
LOG_LEVEL=info
MCP_SERVER=http://localhost:3000
@@ -23,7 +23,7 @@ RATE_LIMIT_REGULAR=100
RATE_LIMIT_WEBSOCKET=1000
# CORS Configuration
CORS_ORIGINS=http://localhost:3000,http://localhost:8123
CORS_ORIGINS=http://localhost:3000,http://localhost:8123,http://homeassistant.local:8123
CORS_METHODS=GET,POST,PUT,DELETE,OPTIONS
CORS_ALLOWED_HEADERS=Content-Type,Authorization,X-Requested-With
CORS_EXPOSED_HEADERS=
@@ -48,9 +48,9 @@ MAX_RETRIES=3
ANALYSIS_TIMEOUT=30000
# Speech Features Configuration
ENABLE_SPEECH_FEATURES=true
ENABLE_WAKE_WORD=true
ENABLE_SPEECH_TO_TEXT=true
ENABLE_SPEECH_FEATURES=false
ENABLE_WAKE_WORD=false
ENABLE_SPEECH_TO_TEXT=false
WHISPER_MODEL_PATH=/models
WHISPER_MODEL_TYPE=base
@@ -78,9 +78,9 @@ SSE_RECONNECT_TIMEOUT=5000
HOT_RELOAD=true
# Test Configuration (only needed for running tests)
TEST_HASS_HOST=http://localhost:8123
TEST_HASS_HOST=http://homeassistant.local:8123
TEST_HASS_TOKEN=test_token
TEST_HASS_SOCKET_URL=ws://localhost:8123/api/websocket
TEST_HASS_SOCKET_URL=ws://homeassistant.local:8123/api/websocket
TEST_PORT=3001
# Version