From 053fbe00ced35bed53fdf616436b8f4149dbbddc Mon Sep 17 00:00:00 2001 From: Jakub Miazek Date: Sun, 24 Mar 2024 10:51:35 +0100 Subject: [PATCH] drop SQL_URL --- .env | 2 +- .github/workflows/build-and-test.yml | 2 +- app/config.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.env b/.env index e1825a6..bb7151b 100644 --- a/.env +++ b/.env @@ -6,7 +6,7 @@ SQL_TEST_DB=testdb SQL_HOST=db SQL_USER=user SQL_PASS=secret -SQL_URL=postgresql+asyncpg://${SQL_USER}:${SQL_PASS}@${SQL_HOST}/${SQL_DB} +#SQL_URL=postgresql+asyncpg://${SQL_USER}:${SQL_PASS}@${SQL_HOST}/${SQL_DB} # Postgres POSTGRES_SERVER=db diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 575df60..5e141af 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -23,7 +23,7 @@ jobs: SQL_USER: app-user POSTGRES_PASSWORD: secret PGPASSWORD: secret - SQL_URL: postgresql+asyncpg://app-user:secret@localhost:5432/testdb +# SQL_URL: postgresql+asyncpg://app-user:secret@localhost:5432/testdb REDIS_HOST: 127.0.0.1 REDIS_PORT: 6379 REDIS_DB: 2 diff --git a/app/config.py b/app/config.py index 32f709b..25d0c70 100644 --- a/app/config.py +++ b/app/config.py @@ -11,7 +11,6 @@ class Settings(BaseSettings): env_ignore_empty=True, extra="ignore" ) - # asyncpg_url: PostgresDsn = os.getenv("SQL_URL") redis_url: RedisDsn = os.getenv("REDIS_URL") jwt_algorithm: str = os.getenv("JWT_ALGORITHM") jwt_expire: int = os.getenv("JWT_EXPIRE")