Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
devloch committed Jul 20, 2022
1 parent 303c852 commit f105fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
app.config['GRAPHQL_API'] = os.getenv('API_URL', 'http://localhost:9999/graphql')
app.config['VERIFY_FLAG'] = not os.getenv('DISABLE_CERT_VERIFICATION', False)
# Disable insecure certificate verification warning when cert validation is disabled
if not app.config['VERIFY_FLAG']
if not app.config['VERIFY_FLAG']:
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)

if os.getenv('DEOVR_USERNAME') and os.getenv('DEOVR_PASSWORD')
if os.getenv('DEOVR_USERNAME') and os.getenv('DEOVR_PASSWORD'):
app.config['BASIC_AUTH_USERNAME'] = os.getenv('DEOVR_USERNAME')
app.config['BASIC_AUTH_PASSWORD'] = os.getenv('DEOVR_PASSWORD')
# Setting this allows us to avoid flagging all endpoints as requiring the basic auth, so it can be conditional on
Expand Down

0 comments on commit f105fce

Please sign in to comment.