Skip to content

Commit

Permalink
refactor: use DEBUG param to determine S3_DOWNLOAD_ROOT local
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Nov 27, 2023
1 parent 3813d78 commit bc6b5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def configure_s3_download_root(cls, v: Optional[str], info: ValidationInfo) -> s
else:
fmtm_domain = info.data.get("FMTM_DOMAIN")
# Local dev
if s3_endpoint == "http://s3:9000":
if info.data.get("DEBUG"):
dev_port = info.data.get("FMTM_DEV_PORT")
return f"http://s3.{fmtm_domain}:{dev_port}"
return f"https://s3.{fmtm_domain}"
Expand Down

0 comments on commit bc6b5cd

Please sign in to comment.