Skip to content

Commit

Permalink
Merge pull request #27 from Nextdoor/DX-931/fix-config
Browse files Browse the repository at this point in the history
DX-931 Fix config, use env var directly for now
  • Loading branch information
zachary-nextdoor authored Apr 21, 2021
2 parents a805040 + 893f35a commit c67ff52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class Config(object):
USE_GOOGLE_AUTH = os.getenv('AUTH_HEADER_NAME') is None
SKIP_AUTH = os.getenv('SKIP_AUTH').lower() in ['1', 'true', 't']
BEHIND_PROXY = os.getenv('BEHIND_PROXY', '0').lower() in ['1', 'true', 't']
HTTPS_REDIRECT_URL = os.getenv('HTTPS_REDIRECT_URL', 'https://localhost:8443')


class ProductionConfig(Config):
Expand Down
3 changes: 2 additions & 1 deletion src/gogo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""URL shortcut generator."""
import os

import flask
from flask.views import MethodView
Expand All @@ -10,7 +11,7 @@

# Shortcuts may not use these names.
RESERVED_NAMES = {'_create', '_delete', '_edit', '_list', '_ajax'}
HTTPS_REDIRECT_URL = flask.current_app.config['HTTPS_REDIRECT_URL']
HTTPS_REDIRECT_URL = os.getenv('HTTPS_REDIRECT_URL', 'https://localhost:8443')


class DashboardView(BaseListView):
Expand Down

0 comments on commit c67ff52

Please sign in to comment.