Skip to content

Commit

Permalink
fix: make SECRET_KEY_LOAD_AND_STORE true by default
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Léobal <olivier.leobal@owkin.com>
  • Loading branch information
oleobal committed Jun 20, 2023
1 parent bd598ac commit 6c9213c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/backend/settings/deps/secret_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _generate_secret_key():


_SECRET_KEY_LOAD_AND_STORE = to_bool(
os.environ.get("SECRET_KEY_LOAD_AND_STORE", "False")
os.environ.get("SECRET_KEY_LOAD_AND_STORE", "True")
) # Whether to load the secret key from file (and write it there if it doesn't exist)

if _SECRET_KEY_LOAD_AND_STORE:
Expand Down
2 changes: 1 addition & 1 deletion docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Accepted true values for `bool` are: `1`, `ON`, `On`, `on`, `T`, `t`, `TRUE`, `T

| Type | Setting | Default value | Comment |
|------|---------|---------------|---------|
| bool | `SECRET_KEY_LOAD_AND_STORE` | `False` | Whether to load the secret key from file (and write it there if it doesn't exist) |
| bool | `SECRET_KEY_LOAD_AND_STORE` | `True` | Whether to load the secret key from file (and write it there if it doesn't exist) |
| string | `SECRET_KEY_PATH` | `os.path.normpath(os.path.join(path.PROJECT_ROOT, 'SECRET'))` | |

## JWT settings
Expand Down

0 comments on commit 6c9213c

Please sign in to comment.