We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3781fa commit 4ab75ebCopy full SHA for 4ab75eb
1 file changed
server/src/server.py
@@ -19,6 +19,7 @@
19
20
# ==============================================================================
21
DATABASE_ADAPTER_IP = os.getenv("DATABASE_ADAPTER_IP")
22
+SUBPATH = os.getenv("SUBPATH", "/api/access")
23
24
25
@@ -130,7 +131,7 @@ def parse_to_int(s: str) -> int:
130
131
132
133
async def _reverse_proxy(request: Request):
- url = httpx.URL(path=request.url.path,
134
+ url = httpx.URL(path=request.url.path.replace(SUBPATH, "", 1),
135
query=request.url.query.encode("utf-8"))
136
rp_req = client.build_request(request.method, url,
137
headers=request.headers.raw,
0 commit comments