Skip to content

Commit e4f79ad

Browse files
committed
🔧(project) add defaults to lrs settings
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.
1 parent d81ff6a commit e4f79ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/api/core/warren/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class Settings(BaseSettings):
2222
DEBUG: bool = False
2323

2424
# LRS backend
25-
LRS_HOSTS: Union[List[AnyHttpUrl], AnyHttpUrl]
26-
LRS_AUTH_BASIC_USERNAME: str
27-
LRS_AUTH_BASIC_PASSWORD: str
25+
LRS_HOSTS: Union[List[AnyHttpUrl], AnyHttpUrl] = "http://ralph:8200" # type: ignore
26+
LRS_AUTH_BASIC_USERNAME: str = "ralph"
27+
LRS_AUTH_BASIC_PASSWORD: str = "secret"
2828

2929
# Warren server
3030
SERVER_PROTOCOL: str = "http"
@@ -65,8 +65,8 @@ class Settings(BaseSettings):
6565
API_TEST_DB_NAME: str = "test-warren-api"
6666

6767
# Token
68-
APP_SIGNING_ALGORITHM: str
69-
APP_SIGNING_KEY: str
68+
APP_SIGNING_ALGORITHM: str = "HS256"
69+
APP_SIGNING_KEY: str = "SigningKeyToChange__NOT_SUITABLE_FOR_PRODUCTION"
7070

7171
# Sentry
7272
SENTRY_DSN: Optional[str] = None

0 commit comments

Comments
 (0)