Files
dumpsterChat/docker/Caddyfile
T
hobokenchicken bb5a56816b Phase 1 MVP: gateway, CRUD handlers, frontend components
Backend:
- WebSocket gateway (hub, client, events) with fanout broadcast
- Server CRUD handlers (create, list, get, update, delete)
- Channel CRUD handlers (create, list, get, update, delete)
- Message CRUD handlers (list with cursor pagination, create, update, delete)
- cmd/migrate standalone migration CLI (up/down)
- cmd/server wired to all handlers + WebSocket + static file serving

Frontend:
- Zustand stores: auth, server, channel, message, websocket
- API client with fetch wrapper
- Terminal-styled components: Layout, LoginForm, ChatArea, ChannelList, ServerBar, MemberList
- React Router with login and main routes
- Gruvbox dark palette throughout

Ops:
- Docker Compose with app service (multi-stage build)
- Caddyfile with WebSocket upgrade support
- Makefile for common tasks
2026-06-26 14:47:29 -04:00

31 lines
548 B
Caddyfile

{
auto_https off
}
:80 {
# API routes
handle_path /api/* {
reverse_proxy app:8080
}
# WebSocket gateway
handle /ws {
reverse_proxy app:8080 {
header_up Connection {>Connection}
header_up Upgrade {>Upgrade}
}
}
# LiveKit (if proxied)
handle_path /livekit/* {
reverse_proxy livekit:7880
}
# SPA fallback - serve index.html for all other routes
handle {
root * /srv/web
try_files {path} /index.html
file_server
}
}