-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from TranslatorSRI/redis_fixes
Redis fixes
- Loading branch information
Showing
6 changed files
with
56 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from typing import Optional | ||
|
||
from pydantic import BaseSettings, AnyUrl | ||
|
||
|
||
class Settings(BaseSettings): | ||
openapi_server_url: Optional[AnyUrl] | ||
openapi_server_maturity: str = "development" | ||
openapi_server_location: str = "RENCI" | ||
trapi_version: str = "1.4.0" | ||
redis_host: str = "localhost" | ||
redis_port: int = 6379 | ||
redis_password: str = "supersecretpassword" | ||
|
||
class Config: | ||
env_file = ".env" | ||
|
||
|
||
settings = Settings() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ gunicorn==20.1.0 | |
httpx==0.24.1 | ||
numpy==1.25.1 | ||
reasoner-pydantic==4.0.8 | ||
redis==4.6.0 | ||
tqdm==4.65.0 | ||
uvicorn==0.13.3 |