- Created api-gateway application structure - Added pyproject.toml with FastAPI, httpx, and aitbc-core dependencies - Implemented main.py with routing logic to proxy requests to microservices - Added service registry for GPU, Marketplace, Agent, Trading, Governance, and Coordinator services - Configured middleware (request ID, performance logging, validation, error handling) - Created systemd service file for api-gateway - Added README.md with service registry information This completes Phase 4.2: Create FastAPI gateway for routing
17 lines
406 B
Desktop File
17 lines
406 B
Desktop File
[Unit]
|
|
Description=AITBC API Gateway
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=aitbc
|
|
WorkingDirectory=/opt/aitbc/apps/api-gateway
|
|
Environment="PATH=/opt/aitbc/venv/bin"
|
|
Environment="PYTHONPATH=/opt/aitbc/packages/py/aitbc-core/src:/opt/aitbc/apps/api-gateway/src:/opt/aitbc"
|
|
ExecStart=/opt/aitbc/venv/bin/python -m api_gateway.main
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|