Add a password-gated private instance mode for xaigen.

Keep Authentik on aigen, isolate library data per instance, and purge Comfy outputs from the desktop after they are saved on the server.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-25 19:24:00 -05:00
co-authored by Cursor
parent e2db183a8e
commit bc0ea613c1
22 changed files with 426 additions and 15 deletions
+5 -2
View File
@@ -110,6 +110,7 @@ async function runGeneration(
const done = watchComfyJob(job)
job.status = 'uploading'
const uploaded = await uploadImage(params.image)
if (job.library) job.library.imageName = uploaded.name
emitJob(job, { type: 'status', message: 'Queueing MiniMax H3 job...', progress: 6 })
await waitForComfySocket(job, 4000)
@@ -121,7 +122,8 @@ async function runGeneration(
steps: params.steps,
seed: params.seed,
turbo: params.turbo,
length: params.length
length: params.length,
filenamePrefix: comfyFilenamePrefix()
})
const queued = await queuePrompt(graph, job.clientId)
@@ -143,7 +145,8 @@ async function runGeneration(
steps: job.library.steps,
turbo: job.library.turbo,
seed: job.library.seed,
startedAt: job.startedAt
startedAt: job.startedAt,
imageName: job.library.imageName
})
}
emitJob(job, { type: 'status', message: 'Job queued on ComfyUI', progress: 8 })