Run without login when OIDC isn't configured
With OIDC_ISSUER, OIDC_CLIENT_ID and OIDC_CLIENT_SECRET empty (or at the .env.example placeholders) Kaname needs no login. With all three set, OIDC works as before; only some set is an error. /api/v1 still requires tokens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1fe61142f4
commit
a13ac85f7c
14 files changed
+116
-41
No files matched your search
@@ -25,7 +25,7 @@ their speed and answer quality with [BetterBench](https://github.com/GGZ14/Bette
|
||||
|
||||
## Install
|
||||
|
||||
You need a Linux server with Docker and Compose, and an OIDC provider for the login (e.g.
|
||||
You need a Linux server with Docker and Compose, and optionally an OIDC provider for the login (e.g.
|
||||
[Pocket ID](https://pocket-id.org), Authelia, Authentik, Keycloak).
|
||||
|
||||
**1. Create a folder with two files**
|
||||
@@ -129,11 +129,16 @@ curl -fsSLo compose.yaml https://git.linxweiler.xyz/pascallinxweiler/Kaname/raw/
|
||||
curl -fsSLo .env https://git.linxweiler.xyz/pascallinxweiler/Kaname/raw/branch/main/.env.example
|
||||
```
|
||||
|
||||
**2. Create an OIDC client** in your identity provider with the redirect URI
|
||||
**2. Create an OIDC client** (optional) in your identity provider with the redirect URI
|
||||
`<AUTH_URL>/api/auth/callback/pocket-id`, e.g. `http://192.168.1.10:3000/api/auth/callback/pocket-id`
|
||||
(the path says `pocket-id` whatever provider you use). Request the `groups` scope if you want to
|
||||
restrict access by group.
|
||||
|
||||
Without OIDC, skip this step and leave the `OIDC_*` lines empty: Kaname then runs without any
|
||||
login, and anyone who can reach it can use it. Only do that on a trusted network (or behind a proxy
|
||||
that does the login). Setting only some of the `OIDC_*` values is an error, so a typo never turns
|
||||
the login off.
|
||||
|
||||
**3. Fill in `.env`:** `AUTH_URL` (the address you open in the browser), `OIDC_ISSUER`,
|
||||
`OIDC_CLIENT_ID`, `OIDC_CLIENT_SECRET`, and ideally a read-only `HF_TOKEN`. Everything else can
|
||||
stay as it is. A filled-in example:
|
||||
|
||||
Reference in new issue
Block a user