From f35be5a554e11ac6e30f95cd0a5c0dd38bb4ef99 Mon Sep 17 00:00:00 2001 From: anmarhindi Date: Tue, 5 Nov 2024 16:05:48 +0100 Subject: [PATCH 1/2] Adjust config url --- start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start b/start index b24f021..a3b320b 100755 --- a/start +++ b/start @@ -15,7 +15,7 @@ docker run -d --rm \ --mount type=bind,source="$(pwd)"/,target=/app \ -e GATEWAY=http://refinery-gateway:80 \ -e KRATOS=http://kratos:4433 \ --e CONFIG=http://refinery-config:80 \ +-e CONFIG=http://refinery-gateway:80 \ -v /var/run/docker.sock:/var/run/docker.sock \ --network dev-setup_default \ refinery-gateway-proxy-dev > /dev/null 2>&1 From af4323415070007533e425df9cb6ffc53ffe3276 Mon Sep 17 00:00:00 2001 From: JWittmeyer Date: Thu, 14 Nov 2024 11:09:27 +0100 Subject: [PATCH 2/2] Change url --- app.py | 7 +++---- start | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 570f022..0562e5b 100644 --- a/app.py +++ b/app.py @@ -7,7 +7,6 @@ BASE_URI = os.getenv("GATEWAY") KRATOS_URI = os.getenv("KRATOS") -CONFIG_URI = os.getenv("CONFIG") class ErrorCodes: @@ -155,8 +154,8 @@ def get_details(request: Request, project_id: str): return handle_response(resp) -@app.get("/project/{project_id}/import/base_config") -def get_base_config(request: Request, project_id: str): +@app.get("/project/{project_id}/import/full_config") +def get_full_config(request: Request, project_id: str): try: get_user_id_from_request(request) except KeyError: @@ -164,7 +163,7 @@ def get_base_config(request: Request, project_id: str): status_code=status.HTTP_401_UNAUTHORIZED, content={"error_code": ErrorCodes.UNRECOGNIZED_USER}, ) - url = f"{CONFIG_URI}/base_config" + url = f"{BASE_URI}/full_config" resp = requests.get(url) return handle_response(resp) diff --git a/start b/start index a3b320b..a340fdd 100755 --- a/start +++ b/start @@ -15,7 +15,6 @@ docker run -d --rm \ --mount type=bind,source="$(pwd)"/,target=/app \ -e GATEWAY=http://refinery-gateway:80 \ -e KRATOS=http://kratos:4433 \ --e CONFIG=http://refinery-gateway:80 \ -v /var/run/docker.sock:/var/run/docker.sock \ --network dev-setup_default \ refinery-gateway-proxy-dev > /dev/null 2>&1