From 3f3d3930e0d875e7e86bcc1e3fc8376a25da266e Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 3 Apr 2017 13:47:39 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20https=20for=20localhost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We set a URL for the app to use to access itself. On PaaS this is configurable, locally we default to `localhost`. `localhost` doesn’t (easily?) support HTTPS, so this default wasn’t working. --- app/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 30285c24c..6cc115ae6 100644 --- a/app/config.py +++ b/app/config.py @@ -18,7 +18,7 @@ class Config(object): DESKPRO_API_KEY = os.environ['DESKPRO_API_KEY'] # if we're not on cloudfoundry, we can get to this app from localhost. but on cloudfoundry its different - ADMIN_BASE_URL = os.environ.get('ADMIN_BASE_URL', 'https://localhost:6012') + ADMIN_BASE_URL = os.environ.get('ADMIN_BASE_URL', 'http://localhost:6012') # Hosted graphite statsd prefix STATSD_PREFIX = os.getenv('STATSD_PREFIX')