feat: microservices scaffold + Auth Service (Step 1)
- Add shared/ module: config, db, models, schemas, redis utilities - Add Auth Service (services/auth/): register, login, refresh, me, ForwardAuth /verify endpoint for Traefik - Add Traefik config: ACME/Cloudflare DNS-01, dynamic routing, ForwardAuth middleware, sticky sessions for WS Gateway - Add service scaffolds: ws-gateway, chat, batch-agent, billing (READMEs) - Add redis>=5.0.0 to requirements.txt - Monolith app/ is untouched — strangler fig migration
This commit is contained in:
15
services/billing/README.md
Normal file
15
services/billing/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Billing Service
|
||||
|
||||
Owns: Stripe integration, tier management, subscription CRUD.
|
||||
|
||||
## Tables owned (write)
|
||||
- `subscriptions`
|
||||
|
||||
## Endpoints
|
||||
- `POST /billing/checkout`
|
||||
- `POST /billing/webhook` (Stripe, no JWT auth)
|
||||
- `GET /billing/subscription`
|
||||
- `DELETE /billing/subscription`
|
||||
|
||||
## Redis channels
|
||||
- Publish: `tier:changed:{user_id}` on tier change
|
||||
0
services/billing/app/__init__.py
Normal file
0
services/billing/app/__init__.py
Normal file
Reference in New Issue
Block a user