Skip to content

Commit

Permalink
Changed API environment variables in config.py to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbates committed Dec 1, 2024
1 parent e042d5a commit 9b61f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ class Config(object):
REGISTRATION_RATE_LIMIT = None
# API CONFIGURATION (disabled by default)
API_ENABLED = False
APP_KEY = os.environ.get('API_KEY') or 'AANmeooubvOOB3LQQeny8e900q35ee804'
APP_KEY = os.environ.get('APP_KEY') or 'AANmeooubvOOB3LQQeny8e900q35ee804'
# If True, X-App-Name header must have value 'tamari' and X-App-Key must equal APP_KEY
# Default is False if env variable not set, can change ", 'False')" to ", 'True')"
REQUIRE_HEADERS = os.environ.get('API_HEADERS', 'False') == 'True'
REQUIRE_HEADERS = os.environ.get('REQUIRE_HEADERS', 'False') == 'True'
JWT_SECRET_KEY = os.environ.get('JWT_SECRET_KEY') or '1C0D290AC6CF8DC1A9A4'
ACCESS_TOKEN_EXPIRES = timedelta(hours=24)
REFRESH_TOKEN_EXPIRES = timedelta(days=60)

0 comments on commit 9b61f25

Please sign in to comment.