@@ -116,7 +116,7 @@ private void upload() throws IOException, InvalidKeySpecException, NoSuchAlgorit
116
116
String uploadURL = String .format ("https://localhost/stream/%s?md5=%s" , encFile .getName (), md5Hex );
117
117
JsonNode jsonResponse = Unirest
118
118
.patch (uploadURL )
119
- .basicAuth ("{{ EGA_BOX_USERNAME}}" , "{{ EGA_BOX_PASSWORD}}" )
119
+ .basicAuth (System . getenv ( " EGA_BOX_USERNAME" ), System . getenv ( " EGA_BOX_PASSWORD" ) )
120
120
.header ("Proxy-Authorization" , "Bearer " + token )
121
121
.body (FileUtils .readFileToByteArray (encFile ))
122
122
.asJson ()
@@ -130,7 +130,7 @@ private void upload() throws IOException, InvalidKeySpecException, NoSuchAlgorit
130
130
FileUtils .sizeOf (encFile ));
131
131
jsonResponse = Unirest
132
132
.patch (finalizeURL )
133
- .basicAuth ("{{ EGA_BOX_USERNAME}}" , "{{ EGA_BOX_PASSWORD}}" )
133
+ .basicAuth (System . getenv ( " EGA_BOX_USERNAME" ), System . getenv ( " EGA_BOX_PASSWORD" ) )
134
134
.header ("Proxy-Authorization" , "Bearer " + token )
135
135
.asJson ()
136
136
.getBody ();
@@ -152,7 +152,7 @@ private void ingest() throws IOException, TimeoutException, NoSuchAlgorithmExcep
152
152
.correlationId (UUID .randomUUID ().toString ())
153
153
.build ();
154
154
155
- String message =
String .
format (
"{\" type\" :\" ingest\" ,\" user\" :\" %s\" ,\" filepath\" :\" /[email protected] /files/%s\" }" ,
"{{ EGA_BOX_USERNAME}}" ,
encFile .
getName ());
155
+ String message =
String .
format (
"{\" type\" :\" ingest\" ,\" user\" :\" %s\" ,\" filepath\" :\" /[email protected] /files/%s\" }" ,
System . getenv ( " EGA_BOX_USERNAME" ) ,
encFile .
getName ());
156
156
log .info (message );
157
157
channel .basicPublish ("localega.v1" ,
158
158
"files" ,
0 commit comments