Skip to content

Commit

Permalink
Using SciQLop proxy for CDA direct files access makes no sense
Browse files Browse the repository at this point in the history
Using proxy here would mean adding another cache level, just use our cdaweb
cached reverse proxy instead.

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
  • Loading branch information
jeandet committed Jun 6, 2024
1 parent 10a04c7 commit b53ea5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion speasy/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def remove_entry(entry: ConfigEntry):
"description": """A comma separated list of providers you want to disable.
The main benefit of disabling providers is to speedup speasy loading.""",
"type_ctor": lambda x: set(x.split(','))},
http_rewrite_rules={"default": {},
http_rewrite_rules={"default": {"https://cdaweb.gsfc.nasa.gov/pub/":"http://sciqlop.lpp.polytechnique.fr/cdaweb-data/pub/"},
"description": """A dictionary of rules to rewrite URLs before sending requests.
The keys are the URL to match and the values are the replacement URL.
Example: {"http://example.com": "http://localhost:8000"}""",
Expand Down
1 change: 0 additions & 1 deletion speasy/webservices/cda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ def _get_data_with_ws(self, product, start_time: datetime, stop_time: datetime,
return self._dl_variable(start_time=start_time, stop_time=stop_time, dataset=dataset,
variable=variable, if_newer_than=if_newer_than, extra_http_headers=extra_http_headers)

@Proxyfiable(GetProduct, get_parameter_args_archive)
def _get_data_with_direct_archive(self, product, start_time: datetime, stop_time: datetime, mode_is_best: bool,
if_newer_than: datetime or None = None,
extra_http_headers: Dict or None = None) -> Optional[SpeasyVariable]:
Expand Down

0 comments on commit b53ea5c

Please sign in to comment.