Gateway Deployment Guide
from trusthub.gateway.server import create_gateway, run_gateway
from trusthub.gateway.config import GatewayConfig, ServiceRegistration
config = GatewayConfig(
host="0.0.0.0",
port=8700,
security_level=3,
rate_limit_rpm=120,
upstream_services={
"payment_api": ServiceRegistration(
name="payment_api",
url="http://internal:8080",
),
},
)
# Run
run_gateway(config)CORS for Frontend
# Use start-gateway.py wrapper:
# uvicorn start-gateway:app --port 8700 --reload