fetch_ml/deployments/Caddyfile.prod.smoke
Jeremie Fraeys b4672a6c25
feat: add TUI SSH usability testing infrastructure
Add comprehensive testing for TUI usability over SSH in production-like environment:

Infrastructure:
- Caddy reverse proxy config for WebSocket and API routing
- Docker Compose with SSH test server container
- TUI test configuration for smoke testing

Test Harness:
- SSH server Go test fixture with container management
- TUI driver with PTY support for automated input/output testing
- 8 E2E tests covering SSH connectivity, TERM propagation,
  API/WebSocket connectivity, and TUI configuration

Scripts:
- SSH key generation for test environment
- Manual testing script with interactive TUI verification

The setup allows automated verification that the BubbleTea TUI works
correctly over SSH with proper terminal handling, alt-screen buffer,
and mouse support through Caddy reverse proxy.
2026-02-18 17:48:02 -05:00

33 lines
474 B
Text

{
auto_https off
admin off
servers {
protocols h1 h2
}
}
# API server proxy for TUI WebSocket connections
:80 {
# Health check endpoint
handle /health {
reverse_proxy api-server:9101
}
# WebSocket endpoint for TUI
handle /ws* {
reverse_proxy api-server:9101 {
header_up Connection {>Connection}
header_up Upgrade {>Upgrade}
}
}
# API endpoints
handle /api/* {
reverse_proxy api-server:9101
}
# Default response
handle {
respond 404
}
}