Skip to content

Commit

Permalink
🔧(project) add defaults to lrs settings
Browse files Browse the repository at this point in the history
Settings regarding the LRS were missing default values, which can be a problem
when loading Ralph modules for building CLI documentation.
Adding some default values to them.
  • Loading branch information
wilbrdt committed Jul 29, 2024
1 parent d81ff6a commit e4f79ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/api/core/warren/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Settings(BaseSettings):
DEBUG: bool = False

# LRS backend
LRS_HOSTS: Union[List[AnyHttpUrl], AnyHttpUrl]
LRS_AUTH_BASIC_USERNAME: str
LRS_AUTH_BASIC_PASSWORD: str
LRS_HOSTS: Union[List[AnyHttpUrl], AnyHttpUrl] = "http://ralph:8200" # type: ignore
LRS_AUTH_BASIC_USERNAME: str = "ralph"
LRS_AUTH_BASIC_PASSWORD: str = "secret"

# Warren server
SERVER_PROTOCOL: str = "http"
Expand Down Expand Up @@ -65,8 +65,8 @@ class Settings(BaseSettings):
API_TEST_DB_NAME: str = "test-warren-api"

# Token
APP_SIGNING_ALGORITHM: str
APP_SIGNING_KEY: str
APP_SIGNING_ALGORITHM: str = "HS256"
APP_SIGNING_KEY: str = "SigningKeyToChange__NOT_SUITABLE_FOR_PRODUCTION"

# Sentry
SENTRY_DSN: Optional[str] = None
Expand Down

0 comments on commit e4f79ad

Please sign in to comment.