mirror of
https://github.com/logos-blockchain/logos-blockchain-block-explorer-template.git
synced 2026-01-05 14:43:10 +00:00
Fix host and ports.
This commit is contained in:
parent
8896b95836
commit
64578fba42
@ -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"
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user