drop SQL_URL

This commit is contained in:
Jakub Miazek 2024-03-24 10:51:35 +01:00
parent b50b3c9d43
commit 053fbe00ce
3 changed files with 2 additions and 3 deletions

2
.env
View File

@ -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

View File

@ -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

View File

@ -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")