Fix host and ports.

This commit is contained in:
Alejandro Cabeza Romero 2025-11-03 14:51:30 +01:00
parent 8896b95836
commit 64578fba42
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
2 changed files with 7 additions and 3 deletions

View File

@ -24,7 +24,7 @@ class NBESettings(BaseSettings):
node_manager: Literal["docker", "noop"]
node_api_host: str = "127.0.0.1"
node_api_port: int = 8000
node_api_port: int = 18080
node_api_timeout: int = 60
node_api_protocol: str = "http"

View File

@ -1,4 +1,5 @@
import asyncio
from os import getenv
import uvicorn
from dotenv import load_dotenv
@ -9,10 +10,13 @@ from logs import setup_logging
async def main():
app = create_app()
host = getenv("NBE_HOST", "0.0.0.0")
port = int(getenv("NBE_PORT", 8000))
config = uvicorn.Config(
app,
host="127.0.0.1",
port=8000,
host=host,
port=port,
reload=False,
loop="asyncio",
log_config=None,