From 16f05cee7b9265c02401dc8809f311b4ed91176d Mon Sep 17 00:00:00 2001 From: naglepuff Date: Thu, 21 Nov 2024 16:05:23 -0500 Subject: [PATCH] Add additional data proxies --- nmdc_server/data_object_filters.py | 2 ++ web/nginx.conf.template | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/nmdc_server/data_object_filters.py b/nmdc_server/data_object_filters.py index fc5d8482..d6b77ed2 100644 --- a/nmdc_server/data_object_filters.py +++ b/nmdc_server/data_object_filters.py @@ -15,6 +15,8 @@ data_url_hosts = [ (re.compile("^https://data.microbiomedata.org(/data)?"), "/data"), (re.compile("^https://nmdcdemo.emsl.pnnl.gov"), "/nmdcdemo"), + (re.compile("^https://portal.nersc.gov"), "/nerscportal"), + (re.compile("^https://storage.neonscience.org"), "/neonscience"), ] diff --git a/web/nginx.conf.template b/web/nginx.conf.template index bb2289b6..b19bd248 100644 --- a/web/nginx.conf.template +++ b/web/nginx.conf.template @@ -42,5 +42,12 @@ http { location /nmdcdemo/ { proxy_pass https://nmdcdemo.emsl.pnnl.gov/; } + + location /nerscportal { + proxy_pass https://portal.nersc.gov/; + } + + location /neonscience { + proxy_pass https://storage.neonscience.org/; } }