From 47f9e6ed1e07f3190bc1bad5e5ca977b62e680b0 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Mon, 14 Sep 2026 02:26:09 -0300 Subject: [PATCH] =?UTF-8?q?Altera=C3=A7=C3=B5es=20para=20rodar=20no=20serv?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/configs.py | 1 + main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/core/configs.py b/app/core/configs.py index 28703e7..1b141a1 100644 --- a/app/core/configs.py +++ b/app/core/configs.py @@ -28,6 +28,7 @@ class Settings(BaseSettings): db_pool_max_overflow: int = 10 # Configs da api + host: str = '127.0.0.1' # no servidor use 0.0.0.0 pra aceitar conexões de qualquer máquina da rede port: int settings = Settings() \ No newline at end of file diff --git a/main.py b/main.py index 65c3906..a29f8d8 100644 --- a/main.py +++ b/main.py @@ -12,4 +12,4 @@ app = FastAPI( app.include_router(api_router, prefix='/v1') if __name__ == '__main__': - uvicorn.run(app, host='127.0.0.1', port=settings.port) \ No newline at end of file + uvicorn.run(app, host=settings.host, port=settings.port) \ No newline at end of file