update to header
This commit is contained in:
parent
81300fdf9a
commit
372c7e2445
3 changed files with 14 additions and 10 deletions
|
|
@ -7,7 +7,7 @@ ENV RUSTFLAGS="--cfg reqwest_unstable"
|
|||
|
||||
# Accept build arguments for git repository and branch
|
||||
ARG GIT_REPO=https://github.com/langflow-ai/langflow.git
|
||||
ARG GIT_BRANCH=load_flows_autologin_false
|
||||
ARG GIT_BRANCH=main
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
|
|
@ -91,7 +91,10 @@ services:
|
|||
langflow:
|
||||
volumes:
|
||||
- ./flows:/app/flows:z
|
||||
image: phact/openrag-langflow:${LANGFLOW_VERSION:-latest}
|
||||
# image: phact/openrag-langflow:${LANGFLOW_VERSION:-latest}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.langflow
|
||||
container_name: langflow
|
||||
ports:
|
||||
- "7860:7860"
|
||||
|
|
|
|||
|
|
@ -130,18 +130,19 @@ class LangflowFileService:
|
|||
)
|
||||
|
||||
# Avoid logging full payload to prevent leaking sensitive data (e.g., JWT)
|
||||
|
||||
headers={
|
||||
"X-Langflow-Global-Var-JWT": str(jwt_token),
|
||||
"X-Langflow-Global-Var-Owner": str(owner),
|
||||
"X-Langflow-Global-Var-Owner-Name": str(owner_name),
|
||||
"X-Langflow-Global-Var-Owner-Email": str(owner_email),
|
||||
"X-Langflow-Global-Var-Connector-Type": str(connector_type),
|
||||
}
|
||||
logger.info(f"[LF] Headers {headers}")
|
||||
resp = await clients.langflow_request(
|
||||
"POST",
|
||||
f"/api/v1/run/{self.flow_id_ingest}",
|
||||
json=payload,
|
||||
headers={
|
||||
"X-Langflow-Global-Var-JWT": jwt_token,
|
||||
"X-Langflow-Global-Var-Owner": owner,
|
||||
"X-Langflow-Global-Var-Owner-Name": owner_name,
|
||||
"X-Langflow-Global-Var-Owner-Email": owner_email,
|
||||
"X-Langflow-Global-Var-Connector-Type": connector_type,
|
||||
},
|
||||
headers=headers,
|
||||
)
|
||||
logger.debug(
|
||||
"[LF] Run response", status_code=resp.status_code, reason=resp.reason_phrase
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue