Pre-configure ComfyUI workflow node mappings via env var

Add COMFYUI_WORKFLOW_NODES env var to Open WebUI in both setup scripts.
This pre-fills the node ID mappings (Prompt=6, Model=4, Width/Height=5,
Steps/Seed=3) so users only need to upload the workflow JSON file —
the node mapping fields are already populated.

Previously users had to both upload the workflow AND manually fill in
6 node ID fields. Now it's just upload + save.

https://claude.ai/code/session_01PtYTPherSJaxDEVPgF6Nxu
This commit is contained in:
Claude
2026-03-22 21:56:34 +00:00
parent e78c541f19
commit c33d5b20b2
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1065,6 +1065,7 @@ $( $SVC_COMFYUI && cat <<'IMGENV'
- ENABLE_IMAGE_GENERATION=true - ENABLE_IMAGE_GENERATION=true
- IMAGE_GENERATION_ENGINE=comfyui - IMAGE_GENERATION_ENGINE=comfyui
- COMFYUI_BASE_URL=http://comfyui:8188 - COMFYUI_BASE_URL=http://comfyui:8188
- COMFYUI_WORKFLOW_NODES=[{"type":"prompt","key":"text","node_ids":["6"]},{"type":"model","key":"ckpt_name","node_ids":["4"]},{"type":"width","key":"width","node_ids":["5"]},{"type":"height","key":"height","node_ids":["5"]},{"type":"steps","key":"steps","node_ids":["3"]},{"type":"seed","key":"seed","node_ids":["3"]}]
IMGENV IMGENV
) )
depends_on: depends_on:
+1
View File
@@ -616,6 +616,7 @@ services:
- ENABLE_IMAGE_GENERATION=true - ENABLE_IMAGE_GENERATION=true
- IMAGE_GENERATION_ENGINE=comfyui - IMAGE_GENERATION_ENGINE=comfyui
- COMFYUI_BASE_URL=http://comfyui:8188 - COMFYUI_BASE_URL=http://comfyui:8188
- COMFYUI_WORKFLOW_NODES=[{"type":"prompt","key":"text","node_ids":["6"]},{"type":"model","key":"ckpt_name","node_ids":["4"]},{"type":"width","key":"width","node_ids":["5"]},{"type":"height","key":"height","node_ids":["5"]},{"type":"steps","key":"steps","node_ids":["3"]},{"type":"seed","key":"seed","node_ids":["3"]}]
depends_on: depends_on:
ollama: {condition: service_healthy} ollama: {condition: service_healthy}