mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
drop SQL_URL
This commit is contained in:
parent
b50b3c9d43
commit
053fbe00ce
2
.env
2
.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
|
||||
|
2
.github/workflows/build-and-test.yml
vendored
2
.github/workflows/build-and-test.yml
vendored
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user