Skip to content

Commit 8f9f15b

Browse files
committed
Use http to talk to auth on prod, to save a round trip.
1 parent 5d1b1a5 commit 8f9f15b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

appstore/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import os
22

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

56
config = {
67
'DOMAIN_ROOT': domain_root,
78
'SQLALCHEMY_DATABASE_URI': os.environ['DATABASE_URL'],
89
'PBW_ROOT': os.environ.get('PBW_ROOT', f'http://pbws.{domain_root}/pbw'),
910
'IMAGE_ROOT': os.environ.get('IMAGE_ROOT', f'https://assets.rebble.io'),
1011
'APPSTORE_ROOT': os.environ.get('APPSTORE_ROOT', f'http://apps.{domain_root}'),
11-
'REBBLE_AUTH_URL': os.environ.get('REBBLE_AUTH_URL', f'http://auth.{domain_root}'),
12+
'REBBLE_AUTH_URL': os.environ.get('REBBLE_AUTH_URL', f"{http_protocol}://auth.{domain_root}"),
1213
'ALGOLIA_APP_ID': os.environ.get('ALGOLIA_APP_ID'),
1314
'ALGOLIA_ADMIN_API_KEY': os.environ.get('ALGOLIA_ADMIN_API_KEY'),
1415
'ALGOLIA_INDEX': os.environ.get('ALGOLIA_INDEX'),

0 commit comments

Comments
 (0)