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