Skip to content

Commit

Permalink
Try using browsertrix-cloud-frontend.default for presigned urls
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Mar 14, 2024
1 parent ac81831 commit 60b4b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/btrixcloud/storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def organize_based_on_instance_number(
for wacz_file in instance_list:
wacz_url = wacz_file.path
if wacz_url.startswith("/data"):
wacz_url = f"{self.host_from_k8s}{wacz_url}"
wacz_url = f"http://browsertrix-cloud-frontend.default{wacz_url}"
print(f"WACZ URL: {wacz_url}", flush=True)

with RemoteZip(wacz_url) as remote_zip:
Expand Down Expand Up @@ -647,7 +647,7 @@ def stream_page_lines(
for wacz_file in wacz_files:
wacz_url = wacz_file.path
if wacz_url.startswith("/data"):
wacz_url = f"{self.host_from_k8s}{wacz_url}"
wacz_url = f"http://browsertrix-cloud-frontend.default/{wacz_url}"
print(f"WACZ URL: {wacz_url}", flush=True)

with RemoteZip(wacz_url) as remote_zip:
Expand Down

0 comments on commit 60b4b40

Please sign in to comment.