Skip to content

Commit

Permalink
Added the option to load a secret key from an environment variable to…
Browse files Browse the repository at this point in the history
… all applications.
  • Loading branch information
lanmaster53 committed Jul 30, 2024
1 parent 537bed7 commit e8e48c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pwnedadmin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ class BaseConfig(object):

# base
DEBUG = False
SECRET_KEY = '$ecretKey'
TESTING = False
SECRET_KEY = os.getenv('SECRET_KEY', default='$ecretKey')
# prevents connection pool exhaustion but disables interactive debugging
PRESERVE_CONTEXT_ON_EXCEPTION = False

Expand Down
3 changes: 2 additions & 1 deletion pwnedapi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ class BaseConfig(object):

# base
DEBUG = False
SECRET_KEY = '$ecretKey'
TESTING = False
SECRET_KEY = os.getenv('SECRET_KEY', default='$ecretKey')
# prevents connection pool exhaustion but disables interactive debugging
PRESERVE_CONTEXT_ON_EXCEPTION = False

Expand Down
3 changes: 2 additions & 1 deletion pwnedhub/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ class BaseConfig(object):

# base
DEBUG = False
SECRET_KEY = '$ecretKey'
TESTING = False
SECRET_KEY = os.getenv('SECRET_KEY', default='$ecretKey')
# prevents connection pool exhaustion but disables interactive debugging
PRESERVE_CONTEXT_ON_EXCEPTION = False
MESSAGES_PER_PAGE = 5
Expand Down
3 changes: 2 additions & 1 deletion pwnedspa/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ class BaseConfig(object):

# base
DEBUG = False
SECRET_KEY = '$ecretKey'
TESTING = False
SECRET_KEY = os.getenv('SECRET_KEY', default='$ecretKey')
# prevents connection pool exhaustion but disables interactive debugging
PRESERVE_CONTEXT_ON_EXCEPTION = False

Expand Down
3 changes: 2 additions & 1 deletion pwnedsso/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ class BaseConfig(object):

# base
DEBUG = False
SECRET_KEY = '$ecretKey'
TESTING = False
SECRET_KEY = os.getenv('SECRET_KEY', default='$ecretKey')
# prevents connection pool exhaustion but disables interactive debugging
PRESERVE_CONTEXT_ON_EXCEPTION = False

Expand Down

0 comments on commit e8e48c0

Please sign in to comment.