Skip to content

Commit f88ed2f

Browse files
committed
fix(staging): elastic hostname with ip url
1 parent b33593e commit f88ed2f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

api/base/settings/defaults.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@
337337
if osf_settings.ELASTIC8_SECRET is not None
338338
else None
339339
),
340+
'ssl_assert_hostname': osf_settings.ELASTIC8_ASSERT_HOSTNAME,
340341
# djelme-specific kwargs
341342
'djelme_default_index_name_prefix': osf_settings.SHARE_PROVIDER_PREPEND,
342343
},

website/settings/defaults.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def parent_dir(path):
109109
ELASTIC6_URI = os.environ.get('ELASTIC6_URI', '127.0.0.1:9201')
110110
ELASTIC8_URI = os.environ.get('ELASTIC8_URI')
111111
ELASTIC8_CERT_PATH = os.environ.get('ELASTIC8_CERT_PATH')
112+
ELASTIC8_ASSERT_HOSTNAME = os.environ.get('ELASTIC8_ASSERT_HOSTNAME')
112113
ELASTIC8_USERNAME = os.environ.get('ELASTIC8_USERNAME', 'elastic')
113114
ELASTIC8_SECRET = os.environ.get('ELASTIC8_SECRET')
114115
ELASTIC_TIMEOUT = 10

0 commit comments

Comments
 (0)