Skip to content

Commit

Permalink
[docker build] Add CDS API url to the application.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
euskalhenriko committed Feb 11, 2025
1 parent 2ce6d09 commit 8592b5b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public abstract class CopernicusCDSDatacube extends ChunkedDatacubeRepository {
private String apiKey;

public static final String CDS_API_KEY_PROPERTY = "klab.copernicus.cds.apikey";
public static final String CDS_API_URL = "klab.copernicus.cds.url";
public static final String CDS_API_VERSION = "1_1";
public static final String CDS_API_FORMAT = "zip";
public static final String CDS_API_KEY_HEADER = "PRIVATE-TOKEN";
Expand Down Expand Up @@ -253,7 +254,7 @@ protected boolean downloadChunk(int chunk, String variable, File destinationDire
}

public String getEndpointUrl(String request) {
return "https://cds.climate.copernicus.eu/api/retrieve/v1" + request;
return CDS_API_URL + request;
}

@Override
Expand Down

0 comments on commit 8592b5b

Please sign in to comment.