Add configuration option server.host
This commit is contained in:
parent
859cffe9a0
commit
ff0e2bd8d6
@ -19,6 +19,7 @@ app.include_router(fqdn_router)
|
|||||||
def run():
|
def run():
|
||||||
config = uvicorn.Config(
|
config = uvicorn.Config(
|
||||||
app=app,
|
app=app,
|
||||||
|
host=CONFIG.server.host,
|
||||||
port=CONFIG.server.port,
|
port=CONFIG.server.port,
|
||||||
log_level=CONFIG.server.app_log_level
|
log_level=CONFIG.server.app_log_level
|
||||||
)
|
)
|
||||||
|
|||||||
@ -93,6 +93,7 @@ class FQDNSettings(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class Server(BaseModel):
|
class Server(BaseModel):
|
||||||
|
host: str = '127.0.0.1'
|
||||||
port: int = 8000
|
port: int = 8000
|
||||||
app_log_level: int = logging.INFO
|
app_log_level: int = logging.INFO
|
||||||
root_log_level: int = logging.WARNING
|
root_log_level: int = logging.WARNING
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user