Skip to content

Commit

Permalink
Use http to talk to auth on prod, to save a round trip.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwise committed Jun 17, 2019
1 parent 5d1b1a5 commit 8f9f15b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appstore/settings.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import os

domain_root = os.environ.get('DOMAIN_ROOT', 'rebble.io')
http_protocol = os.environ.get('HTTP_PROTOCOL', 'https')

config = {
'DOMAIN_ROOT': domain_root,
'SQLALCHEMY_DATABASE_URI': os.environ['DATABASE_URL'],
'PBW_ROOT': os.environ.get('PBW_ROOT', f'http://pbws.{domain_root}/pbw'),
'IMAGE_ROOT': os.environ.get('IMAGE_ROOT', f'https://assets.rebble.io'),
'APPSTORE_ROOT': os.environ.get('APPSTORE_ROOT', f'http://apps.{domain_root}'),
'REBBLE_AUTH_URL': os.environ.get('REBBLE_AUTH_URL', f'http://auth.{domain_root}'),
'REBBLE_AUTH_URL': os.environ.get('REBBLE_AUTH_URL', f"{http_protocol}://auth.{domain_root}"),
'ALGOLIA_APP_ID': os.environ.get('ALGOLIA_APP_ID'),
'ALGOLIA_ADMIN_API_KEY': os.environ.get('ALGOLIA_ADMIN_API_KEY'),
'ALGOLIA_INDEX': os.environ.get('ALGOLIA_INDEX'),
Expand Down

0 comments on commit 8f9f15b

Please sign in to comment.