service wrappers and bind hosts: include pending updates
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 5s
Integration Tests / test-service-integration (push) Successful in 38s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Production Tests / Production Integration Tests (push) Failing after 15s
Python Tests / test-python (push) Successful in 25s
Security Scanning / security-scan (push) Successful in 1m34s
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 5s
Integration Tests / test-service-integration (push) Successful in 38s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Production Tests / Production Integration Tests (push) Failing after 15s
Python Tests / test-python (push) Successful in 25s
Security Scanning / security-scan (push) Successful in 1m34s
This commit is contained in:
@@ -29,6 +29,7 @@ from .auth.middleware import get_current_user, require_permissions, require_role
|
||||
from .auth.permissions import permission_manager, Permission, Role
|
||||
from .monitoring.prometheus_metrics import metrics_registry, performance_monitor
|
||||
from .monitoring.alerting import alert_manager, SLAMonitor
|
||||
from .config import settings
|
||||
|
||||
# Configure logging
|
||||
logger = get_logger(__name__)
|
||||
@@ -1465,8 +1466,8 @@ def main():
|
||||
"""Main function to run the application"""
|
||||
uvicorn.run(
|
||||
"main:app",
|
||||
host="0.0.0.0",
|
||||
port=9001,
|
||||
host=settings.host,
|
||||
port=settings.port,
|
||||
reload=True,
|
||||
log_level="info"
|
||||
)
|
||||
|
||||
@@ -36,7 +36,7 @@ class CombinedService:
|
||||
app = create_app()
|
||||
config = uvicorn.Config(
|
||||
app,
|
||||
host="0.0.0.0", # nosec B104 - binding to all interfaces is intentional for blockchain node
|
||||
host=settings.rpc_bind_host,
|
||||
port=8005,
|
||||
log_level="info"
|
||||
)
|
||||
|
||||
@@ -25,6 +25,9 @@ os.environ["LOG_DIR"] = str(LOG_DIR)
|
||||
exec_cmd = [
|
||||
"/opt/aitbc/venv/bin/python",
|
||||
"-m",
|
||||
"app.main"
|
||||
"uvicorn",
|
||||
"blockchain_event_bridge.main:app",
|
||||
"--host", os.getenv("bind_host", "0.0.0.0"),
|
||||
"--port", os.getenv("bind_port", "8204"),
|
||||
]
|
||||
os.execvp(exec_cmd[0], exec_cmd)
|
||||
|
||||
@@ -17,7 +17,7 @@ from aitbc import ENV_FILE, NODE_ENV_FILE, REPO_DIR, DATA_DIR, LOG_DIR
|
||||
# Set up environment using aitbc constants
|
||||
os.environ["AITBC_ENV_FILE"] = str(ENV_FILE)
|
||||
os.environ["AITBC_NODE_ENV_FILE"] = str(NODE_ENV_FILE)
|
||||
os.environ["PYTHONPATH"] = f"{REPO_DIR}/apps/wallet/src:{REPO_DIR}/packages/py/aitbc-crypto/src:{REPO_DIR}/packages/py/aitbc-sdk/src"
|
||||
os.environ["PYTHONPATH"] = f"{REPO_DIR}/apps/wallet/src:{REPO_DIR}/packages/py/aitbc-crypto/src:{REPO_DIR}/packages/py/aitbc-sdk/src:{REPO_DIR}"
|
||||
os.environ["DATA_DIR"] = str(DATA_DIR)
|
||||
os.environ["LOG_DIR"] = str(LOG_DIR)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user