Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
- Created edge-api service structure with FastAPI application - Implemented all schema files (island, gpu, database, serve, metrics) - Created router stub files for all modules - Created service stub files for all modules - Created client stub files (blockchain RPC, GPU service) - Configured PostgreSQL database (aitbc_edge) with proper permissions - Fixed SQLAlchemy reserved name conflict (metadata -> extra_data) - Changed port to 8103 to avoid conflicts - Service runs successfully on port 8103 - Health endpoint tested and working - Created systemd service file - Created README.md with documentation
23 lines
758 B
Desktop File
23 lines
758 B
Desktop File
[Unit]
|
|
Description=AITBC Edge API Service
|
|
After=network.target postgresql.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/opt/aitbc/apps/edge-api
|
|
Environment="PATH=/opt/aitbc/venv/bin"
|
|
Environment="PYTHONPATH=/opt/aitbc/packages/py/aitbc-core/src:/opt/aitbc/apps/edge-api/src:/opt/aitbc"
|
|
Environment="DATABASE_URL=postgresql+asyncpg://aitbc_edge:password@localhost:5432/aitbc_edge"
|
|
Environment="BLOCKCHAIN_RPC_HOST=localhost"
|
|
Environment="BLOCKCHAIN_RPC_PORT=8006"
|
|
Environment="GPU_SERVICE_HOST=localhost"
|
|
Environment="GPU_SERVICE_PORT=8101"
|
|
Environment="JWT_SECRET_KEY=your-secret-key-change-in-production"
|
|
Environment="API_PORT=8103"
|
|
ExecStart=/opt/aitbc/venv/bin/python -m edge_api.main
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|