From 907ae5fe2b324e89e71707cf723321a63d1a64c9 Mon Sep 17 00:00:00 2001 From: donny Date: Fri, 15 May 2026 10:34:17 -0700 Subject: [PATCH] Add .env.example documenting CivitAI + auto-download env vars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copy/paste template for the env vars read by the custom node: CIVITAI_TOKEN (auth) and IMAGELAB_AUTO_DOWNLOAD (startup queue), plus the optional CIVITAI_API_BASE / CIVITAI_DOWNLOAD_BASE endpoint overrides. Set wherever ComfyUI runs — systemd unit, docker-compose, or a RunPod template's environment section. Co-Authored-By: Claude Opus 4.7 (1M context) --- .env.example | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..3326d2f --- /dev/null +++ b/.env.example @@ -0,0 +1,39 @@ +# ImageLab custom node — environment variables. +# +# These are read by the node's Python process (which runs inside ComfyUI). +# Set them wherever ComfyUI runs: +# - LAN boxes → in the systemd unit / docker-compose / shell that launches ComfyUI +# - RunPod → in the pod template's environment section +# +# Copy this to `.env` and fill in your values (or paste them into RunPod). + + +# ── CivitAI auth ────────────────────────────────────────────────────────── +# CivitAI API token. Required for downloading gated models; optional for +# public ones. Generate at: https://civitai.com/user/account → API Keys. +CIVITAI_TOKEN= + + +# ── Startup auto-download ───────────────────────────────────────────────── +# Comma- or newline-separated list of models to download on ComfyUI startup. +# Each entry is one of: +# +# 128713 a CivitAI version id +# https://civitai.com/models/4384?modelVersionId=128713 a version URL +# https://civitai.com/models/4384 a model URL → latest version +# model:4384 shorthand for the above +# upscale_models::128713 force the destination folder +# +# Bare entries auto-derive the folder from CivitAI's model type. Use the +# `::` override when the type doesn't map cleanly. Common +# folders: checkpoints, loras, vae, embeddings, upscale_models, controlnet, +# hypernetworks, clip, clip_vision, diffusion_models. +# +# Failures don't block the rest of the list — each entry is queued independently. +IMAGELAB_AUTO_DOWNLOAD= + + +# ── Optional: CivitAI endpoint overrides ────────────────────────────────── +# Point at a proxy / mirror. Defaults below; uncomment to override. +#CIVITAI_API_BASE=https://civitai.com/api/v1 +#CIVITAI_DOWNLOAD_BASE=https://civitai.com/api/download/models