Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

BASE_URI = os.getenv("GATEWAY")
KRATOS_URI = os.getenv("KRATOS")
CONFIG_URI = os.getenv("CONFIG")


class ErrorCodes:
Expand Down Expand Up @@ -155,16 +154,16 @@ 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:
return responses.JSONResponse(
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)

Expand Down
1 change: 0 additions & 1 deletion start
Original file line number Diff line number Diff line change
Expand Up @@ -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-config:80 \
-v /var/run/docker.sock:/var/run/docker.sock \
--network dev-setup_default \
refinery-gateway-proxy-dev > /dev/null 2>&1
Expand Down