Files
Kaname/.env.example
T
Pascal LinxweilerandClaude Opus 5.5 765dac2ed2 CivitAI: API client, input parser and CIVITAI_TOKEN
First step towards CivitAI downloads. Lookups of models, versions and
download access (login required, early access with its deadline), and a
parser for civitai.com / .red / .green links, download links and AIR ids.
Nothing uses it yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 15:06:01 +01:00

70 lines
3.1 KiB
Bash

# Kaname settings. Copy to .env next to compose.yaml and fill in the "Required" part; everything
# else has working defaults. Full reference: https://git.linxweiler.xyz/pascallinxweiler/Kaname/wiki/Configuration
# ---------------------------------------------------------------------------
# Required
# ---------------------------------------------------------------------------
# The address you open Kaname at in the browser (no trailing slash). The OIDC redirect URI to
# register with your provider is <AUTH_URL>/api/auth/callback/pocket-id
AUTH_URL=http://localhost:3000
# OIDC provider (e.g. Pocket ID): authorization code flow with PKCE
OIDC_ISSUER=https://auth.example.com
OIDC_CLIENT_ID=
OIDC_CLIENT_SECRET=
# ---------------------------------------------------------------------------
# Recommended
# ---------------------------------------------------------------------------
# Hugging Face token: read-only is enough. Needed for gated/private repos, recommended anyway
# (higher rate limits). Stays on the server; never sent to the browser or written to logs.
HF_TOKEN=
# CivitAI API key (civitai.com or civitai.red → Account settings → API keys). Optional: public files
# download without it, files whose creator requires a login need it. Early access still has to be
# unlocked on CivitAI; Kaname never spends Buzz. Stays on the server.
CIVITAI_TOKEN=
# Optional, comma-separated: only members of these groups (`groups` claim) can log in.
OIDC_ALLOWED_GROUPS=
# ---------------------------------------------------------------------------
# Folders, port and image (deploy/compose.yaml)
# ---------------------------------------------------------------------------
# SQLite database and benchmark results. Must be on local disk, not NFS.
KANAME_DATA_DIR=./data
# Downloaded models. Can be a NAS share mounted on the host, e.g. /mnt/nas/models.
KANAME_MODELS_DIR=./models
# Host port of the web UI
WEB_PORT=3000
# The user Kaname runs as (and owns the files it writes). Set these to the owner of your models
# folder, e.g. the uid/gid of a NAS share (`ls -ln /mnt/nas/models`). New, empty folders are set up
# for this user automatically.
PUID=1000
PGID=1000
# Image tag, e.g. 0.16.0 (default: latest). KANAME_IMAGE replaces the registry/name if you build or
# mirror the image yourself.
KANAME_VERSION=
KANAME_IMAGE=
# ---------------------------------------------------------------------------
# Optional
# ---------------------------------------------------------------------------
# Random secret for session cookies. Empty: generated on first start and kept in the data folder.
AUTH_SECRET=
# launch80.com publish token (comes with the launch80 Supporter role). Lets you publish a benchmark
# run as a public launch80 page, after a preview and an explicit confirmation. Stays on the server.
L80_TOKEN=
MAX_CONCURRENT_DOWNLOADS=1
# How often the worker checks every model on the Hub (still there? newer commit?); 0 disables it
UPDATE_CHECK_INTERVAL_HOURS=12
# 1 (default): hf downloads over plain HTTP, so progress can be measured from bytes on disk.
# 0: use Xet (chunk-level dedup on updates). Files over 50 GB always use Xet.
HF_HUB_DISABLE_XET=1