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
This commit is contained in:
+9
-2
@@ -3,18 +3,25 @@
|
||||
}
|
||||
|
||||
:80 {
|
||||
# API routes
|
||||
handle_path /api/* {
|
||||
reverse_proxy app:8080
|
||||
}
|
||||
|
||||
handle_path /ws {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user