Skip to content

Commit 45b3290

Browse files
Remove refinery-config (#51)
* Adjust config url * Change url --------- Co-authored-by: JWittmeyer <jens.wittmeyer@kern.ai>
1 parent 6db9690 commit 45b3290

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
BASE_URI = os.getenv("GATEWAY")
99
KRATOS_URI = os.getenv("KRATOS")
10-
CONFIG_URI = os.getenv("CONFIG")
1110

1211

1312
class ErrorCodes:
@@ -155,16 +154,16 @@ def get_details(request: Request, project_id: str):
155154
return handle_response(resp)
156155

157156

158-
@app.get("/project/{project_id}/import/base_config")
159-
def get_base_config(request: Request, project_id: str):
157+
@app.get("/project/{project_id}/import/full_config")
158+
def get_full_config(request: Request, project_id: str):
160159
try:
161160
get_user_id_from_request(request)
162161
except KeyError:
163162
return responses.JSONResponse(
164163
status_code=status.HTTP_401_UNAUTHORIZED,
165164
content={"error_code": ErrorCodes.UNRECOGNIZED_USER},
166165
)
167-
url = f"{CONFIG_URI}/base_config"
166+
url = f"{BASE_URI}/full_config"
168167
resp = requests.get(url)
169168
return handle_response(resp)
170169

start

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ docker run -d --rm \
1515
--mount type=bind,source="$(pwd)"/,target=/app \
1616
-e GATEWAY=http://refinery-gateway:80 \
1717
-e KRATOS=http://kratos:4433 \
18-
-e CONFIG=http://refinery-config:80 \
1918
-v /var/run/docker.sock:/var/run/docker.sock \
2019
--network dev-setup_default \
2120
refinery-gateway-proxy-dev > /dev/null 2>&1

0 commit comments

Comments
 (0)