Files
aigen/.env.example

71 lines
3.1 KiB
Bash

PORT=3000
HOST=0.0.0.0
# ComfyUI on the Windows desktop hops listen ports (8188/8189/8190/...).
# Coolify never talks to those. The host agent scans for the live instance
# and always fronts it on 8198. Point the site at that door (or just set
# COMFY_CONTROL_URL — the app rewrites Beast HTTP to 8198 automatically).
COMFY_HOST=http://192.168.77.7:8198
COMFY_PORT=8198
# Optional: command used when this server runs on the Comfy host
COMFY_LAUNCH_CMD=
# Windows host agent (scripts/comfy-host-agent.mjs) so Coolify can start Comfy remotely
COMFY_CONTROL_URL=http://192.168.77.7:8199
# COMFY_PROXY_PORT=8198
COMFY_CONTROL_TOKEN=
# Optional. If set, MyMonitor must send it as X-Monitor-Token (or ?token=).
# MONITOR_TOKEN=
# Idle-stop lives on the Beast host agent only (default 30 min). Set on the desktop, not here.
# COMFY_IDLE_MS=1800000
NUXT_SESSION_SECRET=change-me
NUXT_PUBLIC_AUTH_ENABLED=true
NUXT_OIDC_CLIENT_ID=
NUXT_OIDC_CLIENT_SECRET=
NUXT_OIDC_ISSUER=https://auth.carrgarage.com/application/o/aigen/
NUXT_OIDC_AUTHORIZE_URL=https://auth.carrgarage.com/application/o/authorize/
NUXT_OIDC_TOKEN_URL=http://192.168.77.2:9000/application/o/token/
LIBRARY_DIR=/data/library
# AIGen → xAIGen still backup. Defaults live in the app. Override only if you need a different host or secret.
# BACKUP_STUDIO_URL=https://xaigen.carrgarage.com
# BACKUP_STUDIO_TOKEN=
# BACKUP_INGEST_TOKEN=
# Private clone (xaigen): password login, isolated library, Comfy prefix
# AUTH_MODE=password
# NUXT_PUBLIC_INSTANCE_NAME=xAIGen
# NUXT_PUBLIC_STUDIO=xaigen
# AUTH_USERNAME=
# AUTH_PASSWORD=
# COMFY_FILENAME_PREFIX=video/xAIGen
# Desktop Comfy files are deleted after a successful library save (set false to keep them).
# Also removes Qwen Edit input/output files from Beast after saveStill.
# PURGE_COMFY_OUTPUTS=true
# Recommend / Qwen VL uses Beast (same Comfy as video). Do not point this at 192.168.77.101.
IMAGE_COMFY_HOST=http://192.168.77.7:8198
# Optional override if prompt-recommend Comfy is not IMAGE_COMFY_HOST / COMFY_HOST
# PROMPT_COMFY_HOST=http://192.168.77.7:8198
IMAGE_COMFY_PORT=8198
# Optional override if image Comfy on Beast is not the video instance
# IMAGE_COMFY_PRIMARY_HOST=http://192.168.77.7:8198
IMAGE_COMFY_LAUNCH_CMD=
# Studio 2 PR previews: production apps remain on main. Use the PR preview URL.
# Preview must NOT use production LIBRARY_DIR read-write.
# LIBRARY_DIR=/data/library-preview
# Alternative ephemeral preview storage: LIBRARY_DIR=/tmp/library-preview
# COMFY_FILENAME_PREFIX=video/MiniMax_H3_preview
# COMFY_AUDIO_PREFIX=audio/AIGen_preview
# BACKUP_STUDIO_URL=
# NUXT_SESSION_SECRET=<generate a new preview-only secret>
# Same Beast Comfy 8198 / control 8199; one shared GPU, distinct purge prefix.
# Open /studio-2. Do not create a long-lived aigen-next Coolify app.
# Studio 2 cleanup requires this branch's /studio2/purge host endpoint and its
# scripts/studio2-purge.mjs + shared/studio2/contracts.mjs dependencies.
# Update/reload the host agent only when existing production tests are idle.
# Older agents are supported for generation; cleanup reports "Left on host"
# rather than falling back to the legacy purge endpoint.