Skip to content

Commit e6addfb

Browse files
Merge pull request #1266 from NASA-IMPACT/1264-assign-inference_api_url-value-for-local-and-production-separately
Updated settings
2 parents 1183330 + 6c4602c commit e6addfb

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

config/settings/base.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@
102102
"http://sciencediscoveryengine.nasa.gov",
103103
"https://localhost:4200",
104104
"http://localhost:4200",
105-
"https://sde-lrm.nasa-impact.net/app/nasa-sba-tdamm/",
106-
"https://sde-lrm.nasa-impact.net/app/nasa-sba-smd/",
107-
"http://sde-lrm.nasa-impact.net/app/nasa-sba-tdamm/",
108-
"http://sde-lrm.nasa-impact.net/app/nasa-sba-smd/",
109105
]
110106

111107
# MIGRATIONS

config/settings/local.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252

5353
# https://docs.celeryq.dev/en/stable/userguide/configuration.html#task-eager-propagates
5454
CELERY_TASK_EAGER_PROPAGATES = True
55+
56+
# Inference API
57+
# ------------------------------------------------------------------------------
58+
INFERENCE_API_URL = env("INFERENCE_API_URL", default="http://host.docker.internal:8000")
59+
5560
# Your stuff...
5661
# ------------------------------------------------------------------------------
5762

config/settings/production.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@
166166
traces_sample_rate=env.float("SENTRY_TRACES_SAMPLE_RATE", default=0.0),
167167
)
168168

169+
# Inference API
170+
# ------------------------------------------------------------------------------
171+
INFERENCE_API_URL = env("INFERENCE_API_URL", default="http://172.17.0.1:8000")
169172

170173
# Your stuff...
171174
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)