Skip to content
Snippets Groups Projects
Commit fd235f63 authored by jerrypan's avatar jerrypan Committed by Manuel Spuhler
Browse files

merging with cleanup

parent d8e83c01
No related branches found
No related tags found
No related merge requests found
......@@ -35,10 +35,10 @@ docker build --build-arg BUILD_DATE=$(date -Iseconds) \
--build-arg VERSION=$VERSION \
--tag "$IMAGE:latest" \
--tag "$IMAGE:$VERSION" \
--tag kkech/portal_backend:latest \
--tag jerrypan44/portal_backend:latest \
.
docker push kkech/portal_backend:latest
docker push jerrypan44/portal_backend:latest
BUGSNAG_KEY=""
eval $(grep -e "^\\s*BUGSNAG_KEY" Dockerfile | tr '\\' ' ')
......
......@@ -92,6 +92,7 @@ services:
algorithmsUrl: {{ default .Env.EXAREME_URL "http://localhost:9090" }}/mining/algorithms.json
workflows:
workflowUrl: {{ default .Env.WORKFLOW_URL "http://localhost:9090" }}
jwtSecret: {{ default .Env.JWT_SECRET "secret" }}
workflowAuthorization: {{ default .Env.WORKFLOW_AUTHORIZATION "undefined" }}
galaxy:
galaxyUsername: {{ default .Env.GALAXY_USERNAME admin }}
......
......@@ -17,6 +17,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
......@@ -121,6 +122,12 @@ public class RequestsApi {
return prefix + memId;
}
@Value("#{'${services.galaxy.galaxyUsername:admin}'}")
private boolean galaxyUsername;
@Value("#{'${services.galaxy.galaxyPassword:admin}'}")
private boolean galaxyPassword;
/**
* Get Galaxy Reverse Proxy basic access token.
*
......@@ -129,10 +136,7 @@ public class RequestsApi {
@RequestMapping(method = RequestMethod.GET, produces = "application/json")
@ResponseStatus(value = HttpStatus.OK)
public ResponseEntity getGalaxyBasicAccessToken(){
String username = "admin";
String password = "admin";
String stringEncoded = Base64.getEncoder().encodeToString((username + ":" + password).getBytes());
String stringEncoded = Base64.getEncoder().encodeToString((galaxyUsername + ":" + galaxyPassword).getBytes());
return ResponseEntity.ok(new StringDtoResponse(stringEncoded));
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment