Files
aitbc/apps/aitbc-edge/edge-api.service
aitbc fd2b4cd6b5
Some checks failed
Integration Tests / test-service-integration (push) Waiting to run
Security Scanning / security-scan (push) Waiting to run
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Move JWT secret from inline environment variable to external secrets file for edge-api service
2026-05-27 14:34:28 +02:00

24 lines
767 B
Desktop File

[Unit]
Description=AITBC Edge API Service
After=network.target postgresql.service
[Service]
Type=simple
WorkingDirectory=/opt/aitbc/apps/aitbc-edge
Environment="PATH=/opt/aitbc/venv/bin"
Environment="PYTHONPATH=/opt/aitbc/packages/py/aitbc-core/src:/opt/aitbc/apps/aitbc-edge/src:/opt/aitbc"
Environment="DATABASE_URL=sqlite+aiosqlite:///var/lib/aitbc/data/edge.db"
Environment="DATA_DIR=/var/lib/aitbc/data"
Environment="BLOCKCHAIN_RPC_HOST=localhost"
Environment="BLOCKCHAIN_RPC_PORT=8006"
Environment="GPU_SERVICE_HOST=localhost"
Environment="GPU_SERVICE_PORT=8101"
Environment="API_PORT=8103"
EnvironmentFile=/etc/aitbc/secrets/jwt_secret
ExecStart=/opt/aitbc/venv/bin/python -m aitbc_edge.main
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target