Something went wrong. Try again.
A community based topic aggregation platform built on atproto
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243# Coves Web Development Reverse Proxy# Combines Vite frontend (5173) and Coves backend (8081) on single origin (8080)# This enables OAuth cookies to work correctly across frontend/backend## Usage:# make web-proxy # Starts proxy (run the backend with make run-web first)# Or manually: caddy run --config Caddyfile.dev## Access at: http://127.0.0.1:8080
:8080 { # OAuth routes -> Coves backend handle /oauth/* { reverse_proxy 127.0.0.1:8081 }
# XRPC API routes -> Coves backend handle /xrpc/* { reverse_proxy 127.0.0.1:8081 }
# OAuth client metadata -> Coves backend handle /oauth-client-metadata.json { reverse_proxy 127.0.0.1:8081 }
# Image proxy routes -> Coves backend handle /img/* { reverse_proxy 127.0.0.1:8081 }
# Go backend API routes -> Coves backend # Only route Go-specific endpoints here; SvelteKit owns /api/auth/* and /api/proxy/* handle /api/me { reverse_proxy 127.0.0.1:8081 }
# Everything else -> Vite dev server (frontend) handle { reverse_proxy localhost:5173 }}