mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 23:24:44 +02:00
Change web config port from 7681 to 7682
Avoids conflict with fq51bbs which uses 7681 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
60acef9d78
commit
04248bc692
3 changed files with 7 additions and 7 deletions
|
|
@ -72,7 +72,7 @@ USER meshai
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
|
|
||||||
# Expose ttyd web config port
|
# Expose ttyd web config port
|
||||||
EXPOSE 7681
|
EXPOSE 7682
|
||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
# docker compose up -d # Start bot + web config
|
# docker compose up -d # Start bot + web config
|
||||||
# docker compose logs -f # View logs
|
# docker compose logs -f # View logs
|
||||||
#
|
#
|
||||||
# Web config: http://localhost:7681 (TUI in browser)
|
# Web config: http://localhost:7682 (TUI in browser)
|
||||||
#
|
#
|
||||||
# Config is stored in the meshai_data volume at /data/config.yaml
|
# Config is stored in the meshai_data volume at /data/config.yaml
|
||||||
#
|
#
|
||||||
|
|
@ -30,7 +30,7 @@ services:
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
# Web-based config interface (ttyd)
|
# Web-based config interface (ttyd)
|
||||||
- "7681:7681"
|
- "7682:7682"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
# Persistent data (database, config)
|
# Persistent data (database, config)
|
||||||
|
|
|
||||||
|
|
@ -64,12 +64,12 @@ weather:
|
||||||
wttr:
|
wttr:
|
||||||
url: https://wttr.in
|
url: https://wttr.in
|
||||||
EOF
|
EOF
|
||||||
echo "Default config created. Configure via http://localhost:7681"
|
echo "Default config created. Configure via http://localhost:7682"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start ttyd for web-based config access
|
# Start ttyd for web-based config access
|
||||||
echo "Starting web config interface on port 7681..."
|
echo "Starting web config interface on port 7682..."
|
||||||
ttyd -W -p 7681 \
|
ttyd -W -p 7682 \
|
||||||
-t titleFixed="MeshAI Config" \
|
-t titleFixed="MeshAI Config" \
|
||||||
-t 'theme={"background":"#0d1117","foreground":"#c9d1d9","cursor":"#58a6ff","selectionBackground":"#388bfd"}' \
|
-t 'theme={"background":"#0d1117","foreground":"#c9d1d9","cursor":"#58a6ff","selectionBackground":"#388bfd"}' \
|
||||||
-t fontSize=14 \
|
-t fontSize=14 \
|
||||||
|
|
@ -96,6 +96,6 @@ trap "kill %1 2>/dev/null; kill %2 2>/dev/null" EXIT
|
||||||
echo "Starting MeshAI..."
|
echo "Starting MeshAI..."
|
||||||
while true; do
|
while true; do
|
||||||
python -m meshai --config-file "$MESHAI_CONFIG" || true
|
python -m meshai --config-file "$MESHAI_CONFIG" || true
|
||||||
echo "Bot exited. Check config at http://localhost:7681. Retrying in 5s..."
|
echo "Bot exited. Check config at http://localhost:7682. Retrying in 5s..."
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue