Simplify compose files and .env.example

Folders, port and image are written straight into compose.yaml; the
KANAME_DATA_DIR, KANAME_MODELS_DIR, WEB_PORT and KANAME_IMAGE variables
are gone. .env.example is down to the settings people actually set.
README and CHANGELOG updated accordingly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-11-11 22:14:15 +01:00
1 parent 5bc1ad1395
commit 15d8ae155e
5 files changed
+92 -109

No files matched your search

+18 -56
View File
@@ -1,64 +1,26 @@
# 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
# Kaname settings: copy to .env next to compose.yaml and fill in.
# All options: https://git.linxweiler.xyz/pascallinxweiler/Kaname/wiki/Configuration
# ---------------------------------------------------------------------------
# Required
# ---------------------------------------------------------------------------
# Read-only Hugging Face token (needed for gated repos, higher rate limits)
HF_TOKEN=
MAX_CONCURRENT_DOWNLOADS=1
UPDATE_CHECK_INTERVAL_HOURS=12
# 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
# Login. AUTH_URL is the address you open Kaname at; register
# <AUTH_URL>/api/auth/callback/pocket-id as redirect URI with your OIDC provider.
# AUTH_SECRET: any random string (openssl rand -base64 32); empty = generated on first start.
AUTH_SECRET=
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=
# Optional, comma-separated: only members of these groups (`groups` claim) can log in.
# Optional, comma-separated: only these groups may 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
# Optional: pin an image version (default: latest)
# KANAME_VERSION=0.22.0
# Optional: user/group Kaname runs as (default 1000); set to the owner of your models folder
# PUID=1000
# PGID=1000
# Optional: launch80.com publish token, to publish benchmark runs
# L80_TOKEN=