A self-hosted print studio: images at exact physical sizes, sheet layout with crop marks, tiling, 1:1 PDF. Everything else — image generation, delivery, share links, mail, Telegram — is an optional module that is off by default. This is the neutral public twin of a private tool. Compared to that original: - optional modules behind KLARBILD_MODULES; the default install is print-only - English interface with German as a full second language (1,038 strings); the English sentence is the translation key - no built-in accounts — first boot creates one admin from ADMIN_USERNAME / ADMIN_PASSWORD, or generates a password and logs it once - delivery and backup targets are generic SFTP/FTPS endpoints, off by default - English routes, English identifiers, English comments throughout - two compose files: print-only by default, everything in the full one - AGPL-3.0, CI (build, tests, type check, secret scan), CONTRIBUTING, SECURITY 124 tests green, type check clean, verified end to end against a live instance. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nh4A79bbqT9dcd2inzYUdg
This commit is contained in:
164 files changed
+27190
No files matched your search
@@ -0,0 +1,35 @@
|
||||
-- Klarbild — Generation modes, thumbnails, storage management, backup mirror.
|
||||
-- (04) Combining several images + free-text generation, thumbnails for the
|
||||
-- library, "don't clutter up the server" (retention / deleting sources), a
|
||||
-- second backup to a backup mirror.
|
||||
|
||||
-- Job mode: each = every template on its own (as before), compose = several images
|
||||
-- + text into ONE new image, generate = pure free text without a template.
|
||||
ALTER TABLE jobs ADD COLUMN IF NOT EXISTS mode text NOT NULL DEFAULT 'each'
|
||||
CHECK (mode IN ('each','compose','generate'));
|
||||
|
||||
-- Items: several source images (compose) + a shrunk preview image.
|
||||
ALTER TABLE items ADD COLUMN IF NOT EXISTS source_paths jsonb;
|
||||
ALTER TABLE items ADD COLUMN IF NOT EXISTS thumb_path text;
|
||||
|
||||
-- Preset recipes can pre-set a mode (for default Telegram presets).
|
||||
ALTER TABLE recipes ADD COLUMN IF NOT EXISTS mode text NOT NULL DEFAULT 'each'
|
||||
CHECK (mode IN ('each','compose','generate'));
|
||||
|
||||
-- Storage management ---------------------------------------------------------
|
||||
ALTER TABLE settings ADD COLUMN IF NOT EXISTS keep_sources bool NOT NULL DEFAULT true;
|
||||
ALTER TABLE settings ADD COLUMN IF NOT EXISTS make_thumbnails bool NOT NULL DEFAULT true;
|
||||
ALTER TABLE settings ADD COLUMN IF NOT EXISTS retention_days int; -- NULL = unlimited
|
||||
|
||||
-- Second backup to a backup mirror (SFTP/FTPS, same as the delivery target) ---
|
||||
ALTER TABLE settings ADD COLUMN IF NOT EXISTS mirror_enabled bool NOT NULL DEFAULT false;
|
||||
ALTER TABLE settings ADD COLUMN IF NOT EXISTS mirror_host text;
|
||||
ALTER TABLE settings ADD COLUMN IF NOT EXISTS mirror_protocol text CHECK (mirror_protocol IN ('ftps','sftp'));
|
||||
ALTER TABLE settings ADD COLUMN IF NOT EXISTS mirror_port int;
|
||||
ALTER TABLE settings ADD COLUMN IF NOT EXISTS mirror_user text;
|
||||
ALTER TABLE settings ADD COLUMN IF NOT EXISTS mirror_password_enc text;
|
||||
ALTER TABLE settings ADD COLUMN IF NOT EXISTS mirror_base_path text;
|
||||
|
||||
-- Mirror status per item (for visibility/retrying).
|
||||
ALTER TABLE items ADD COLUMN IF NOT EXISTS mirror_status text NOT NULL DEFAULT 'none'
|
||||
CHECK (mirror_status IN ('none','pending','mirrored','failed'));
|
||||
Reference in new issue
Block a user