{ email {$ACME_EMAIL} } www.teeoff.no { redir https://teeoff.no{uri} permanent } teeoff.no { encode zstd gzip log { output stdout format console } # This upload route is implemented in Next.js, not FastAPI. handle /api/admin/uploads/images* { reverse_proxy frontend:3000 } # All other /api traffic goes to the FastAPI backend. # Use handle, not handle_path, so the /api prefix is preserved. handle /api/* { reverse_proxy api:8000 } # Everything else is served by Next.js. handle { reverse_proxy frontend:3000 } }